TWI668632B - Control Method - Google Patents

Control Method Download PDF

Info

Publication number
TWI668632B
TWI668632B TW107135383A TW107135383A TWI668632B TW I668632 B TWI668632 B TW I668632B TW 107135383 A TW107135383 A TW 107135383A TW 107135383 A TW107135383 A TW 107135383A TW I668632 B TWI668632 B TW I668632B
Authority
TW
Taiwan
Prior art keywords
slave device
slave
master
command
control method
Prior art date
Application number
TW107135383A
Other languages
Chinese (zh)
Other versions
TW202014881A (en
Inventor
張生財
Original Assignee
新唐科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 新唐科技股份有限公司 filed Critical 新唐科技股份有限公司
Priority to TW107135383A priority Critical patent/TWI668632B/en
Priority to CN201811572385.3A priority patent/CN111008161B/en
Priority to US16/434,487 priority patent/US10776296B2/en
Application granted granted Critical
Publication of TWI668632B publication Critical patent/TWI668632B/en
Publication of TW202014881A publication Critical patent/TW202014881A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/368Handling requests for interconnection or transfer for access to common bus or bus system with decentralised access control
    • G06F13/37Handling requests for interconnection or transfer for access to common bus or bus system with decentralised access control using a physical-position-dependent priority, e.g. daisy chain, round robin or token passing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Selective Calling Equipment (AREA)

Abstract

一種控制方法,包括發出一第一偵測指令以及一第一識別編號予第一從屬裝置;接收第一從屬裝置產生的一第一回覆訊息,用以得知第一從屬裝置所儲存的一第一功能編號;判斷第一從屬裝置是否串接一第二從屬裝置;當第一從屬裝置未串接第二從屬裝置時,主控裝置根據第一功能編號執行一第一特定動作,或是命令第一從屬裝置執行第一特定動作;以及當第一從屬裝置串接第二從屬裝置時,主控裝置發出一第二偵測指令以及一第二識別編號予第二從屬裝置,並接收第二從屬裝置產生的一第二回覆訊息。 A control method includes issuing a first detection command and a first identification number to a first slave device; receiving a first reply message generated by the first slave device to learn a first message stored by the first slave device A function number; determine whether the first slave device is in series with a second slave device; when the first slave device is not in series with the second slave device, the master device performs a first specific action or command according to the first function number The first slave device performs a first specific action; and when the first slave device is serially connected to the second slave device, the master device sends a second detection command and a second identification number to the second slave device and receives the second A second reply message generated by the slave device.

Description

控制方法 Control Method

本發明係有關於一種控制方法,特別是有關於一種適用於主控裝置及從屬裝置的控制方法。 The invention relates to a control method, in particular to a control method suitable for a master control device and a slave device.

隨著科技的進步,電子裝置的種類及功能愈來愈多。為了減少電子裝置的體積,一般的電子裝置僅具有單一連接埠。因此,電子裝置只能與單一外部裝置溝通。當電子裝置想要連接多個外部裝置時,則需使用一集線器(hub),間接地連接多個外部裝置。 With the advancement of technology, there are more and more types and functions of electronic devices. In order to reduce the volume of the electronic device, the general electronic device only has a single port. Therefore, the electronic device can only communicate with a single external device. When the electronic device wants to connect multiple external devices, it needs to use a hub to indirectly connect the multiple external devices.

本發明提供一種控制方法,適用於一主控裝置。主控裝置耦接一第一從屬裝置。本發明之控制方法包括,發出一第一偵測指令以及一第一識別編號予第一從屬裝置;接收第一從屬裝置產生的一第一回覆訊息,用以得知第一從屬裝置所儲存的一第一功能編號;判斷第一從屬裝置是否串接一第二從屬裝置;當第一從屬裝置未串接第二從屬裝置時,主控裝置根據第一功能編號執行一第一特定動作,或是命令第一從屬裝置執行第一特定動作;以及當第一從屬裝置串接第二從屬裝置時,主控裝置發出一第二偵測指令以及一第二識別編號予第二從屬裝置,並接收第二從屬裝置產生的一第二回覆訊息,用以得 知第二從屬裝置所儲存的一第二功能編號。 The invention provides a control method, which is suitable for a main control device. The master control device is coupled to a first slave device. The control method of the present invention includes issuing a first detection command and a first identification number to the first slave device; receiving a first reply message generated by the first slave device to learn the stored information of the first slave device A first function number; determine whether the first slave device is connected to a second slave device; when the first slave device is not connected to the second slave device, the master device performs a first specific action according to the first function number, or Is to instruct the first slave device to perform the first specific action; and when the first slave device is serially connected to the second slave device, the master device sends a second detection command and a second identification number to the second slave device and receives A second reply message generated by the second slave device to obtain Know a second function number stored in the second slave device.

本發明另提供一種控制方法,適用於一第一從屬裝置,其耦接一主控裝置。本發明之控制方法,包括:接收一偵測指令以及一識別編號;判斷一第二從屬裝置是否存在,其中當第二從屬裝置存在時,第一從屬裝置忽略主控裝置所發出的命令,並提供一控制信號予第二從屬裝置;以及提供一第一回覆訊息予主控裝置。 The invention also provides a control method suitable for a first slave device, which is coupled to a master control device. The control method of the present invention includes: receiving a detection command and an identification number; determining whether a second slave device exists, wherein when the second slave device exists, the first slave device ignores the command issued by the master device, and Provide a control signal to the second slave device; and provide a first reply message to the master device.

本發明之控制方法可經由本發明之操作系統來實作,其為可執行特定功能之硬體或韌體,亦可以透過程式碼方式收錄於一紀錄媒體中,並結合特定硬體來實作。當程式碼被電子裝置、處理器、電腦或機器載入且執行時,電子裝置、處理器、電腦或機器變成用以實行本發明之裝置或系統。 The control method of the present invention can be implemented by the operating system of the present invention, which is hardware or firmware that can perform specific functions, and can also be included in a recording medium through program code and combined with specific hardware to implement . When the program code is loaded and executed by an electronic device, processor, computer, or machine, the electronic device, processor, computer, or machine becomes a device or system for implementing the present invention.

100‧‧‧操作系統 100‧‧‧operating system

MS‧‧‧主控裝置 MS‧‧‧Master control device

SL1~SLN‧‧‧從屬裝置 SL 1 ~ SL N ‧‧‧slave device

SC1~SCN‧‧‧控制信號 SC 1 ~ SC N ‧‧‧Control signal

WR1~WR3‧‧‧導線 WR1 ~ WR3‧‧‧Wire

INT‧‧‧指令 INT‧‧‧ instruction

RS1~RSN‧‧‧回覆訊息 RS 1 ~ RS N ‧‧‧Reply message

VDD、GND‧‧‧操作電壓 VDD, GND‧‧‧operating voltage

ID1~ID3‧‧‧識別編號 ID1 ~ ID3‧‧‧Identification number

CMD1~CMD3‧‧‧偵測指令 CMD1 ~ CMD3‧‧‧Detection command

TS1‧‧‧起始期間 T S1 ‧‧‧ Starting period

TC‧‧‧命令期間 T C ‧‧‧ Order period

TQ‧‧‧分配期間 T Q ‧‧‧ distribution period

TS2、TS3‧‧‧結束期間 T S2 , T S3 ‧‧‧ ending period

TR‧‧‧回覆期間 T R ‧‧‧ Reply period

511、522、532、542‧‧‧控制晶片 511,522,532,542 ‧‧‧ control chip

512、521、523、531、533、541、543‧‧‧連接介面 512, 521, 523, 531, 533, 541, 543

A1~A3、B1~B3、C1~C3、D1~D3、E1~E3‧‧‧輸入輸出墊 A1 ~ A3, B1 ~ B3, C1 ~ C3, D1 ~ D3, E1 ~ E3‧‧‧I / O pad

S211~S214、S221~S224、S231~S234、S240、S311~S314‧‧‧步驟 S211 ~ S214, S221 ~ S224, S231 ~ S234, S240, S311 ~ S314

第1圖為本發明之操作系統的示意圖。 Figure 1 is a schematic diagram of the operating system of the present invention.

第2圖為本發明之控制方法的流程示意圖。 FIG. 2 is a schematic flowchart of the control method of the present invention.

第3圖為本發明之控制方法的另一流程示意圖。 FIG. 3 is another schematic flowchart of the control method of the present invention.

第4A圖為本發明之操作系統的一可能控制時序圖。 FIG. 4A is a possible control timing chart of the operating system of the present invention.

第4B圖為本發明之偵測指令、識別編號及回覆訊息的示意圖。 FIG. 4B is a schematic diagram of the detection command, identification number and reply message of the present invention.

第5圖為本發明之主控裝置與從屬裝置之間的連接示意圖。 Figure 5 is a schematic diagram of the connection between the master device and the slave device of the present invention.

為讓本發明之目的、特徵和優點能更明顯易懂, 下文特舉出實施例,並配合所附圖式,做詳細之說明。本發明說明書提供不同的實施例來說明本發明不同實施方式的技術特徵。其中,實施例中的各元件之配置係為說明之用,並非用以限制本發明。另外,實施例中圖式標號之部分重覆,係為了簡化說明,並非意指不同實施例之間的關聯性。 In order to make the purpose, features and advantages of the present invention more obvious and understandable, In the following, the embodiments are specifically cited and described in detail in conjunction with the attached drawings. The description of the present invention provides different examples to illustrate the technical features of different embodiments of the present invention. Among them, the configuration of each element in the embodiment is for illustrative purposes, not for limiting the present invention. In addition, the overlapping of the reference numerals in the embodiments is to simplify the description, and does not mean the correlation between different embodiments.

第1圖為本發明之操作系統的示意圖。如圖所示,操作系統100包括一主控裝置MS以及從屬裝置SL1~SLN。主控裝置MS與從屬裝置SL1~SLN串接(cascaded)在一起。在本實施例中,主控裝置MS透過單一導線WR1發出指令INT予一特定從屬裝置。該特定從屬裝置根據指令INT而動作。在一可能實施例中,從屬裝置SL1~SLN根據指令INT,產生回覆訊息RS1~RSN,並透過導線WR1提供回覆訊息RS1~RSN予主控裝置MS。在此例中,主控裝置MS可能根據從屬裝置回覆的訊息而動作。 Figure 1 is a schematic diagram of the operating system of the present invention. As shown in the figure, the operating system 100 includes a master device MS and slave devices SL 1 ˜SL N. The master device MS and the slave devices SL 1 ˜SL N are cascaded together. In this embodiment, the master device MS issues a command INT to a specific slave device through a single wire WR1. The specific slave device operates according to the command INT. In one possible embodiment, the slave device SL 1 ~ SL N according to an instruction INT, generating the response message RS 1 ~ RS N, and to provide reply message RS via wire WR1 1 ~ RS N I master device MS. In this example, the master device MS may act according to the reply message from the slave device.

在一可能實施例中,從屬裝置SL1~SLN之每一者接收一控制信號。當控制信號被致能時,相對應的從屬裝置讀取指令INT。舉例而言,當主控裝置MS致能控制信號SC1時,從屬裝置SL1讀取指令INT。此時,由於控制信號SC2~SCN未被致能,故從屬裝置SL2~SLN不讀取指令INT。同樣地,當從屬裝置SL1致能控制信號SC2時,從屬裝置SL2讀取指令INT。此時,主控裝置MS可能不致能控制信號SC1。因此,從屬裝置SL1不再讀取指令INT。在另一可能實施例中,主控裝置MS仍致能控制信號SC1,故從屬裝置SL1讀取指令INT。在此例中,從屬裝置SL1判斷指令INT的種類。當指令INT係為一偵測指令時,從屬裝置SL1暫不動作。 In a possible embodiment, each of the slave devices SL 1 ˜SL N receives a control signal. When the control signal is enabled, the corresponding slave device reads the command INT. For example, when the master device MS enables the control signal SC 1 , the slave device SL 1 reads the command INT. At this time, since the control signals SC 2 ˜SC N are not enabled, the slave devices SL 2 ˜SL N do not read the command INT. Likewise, when the slave device SL 1 enables the control signal SC 2 , the slave device SL 2 reads the command INT. At this time, the master control device MS may not enable the control signal SC 1 . Therefore, the slave device SL 1 no longer reads the command INT. In another possible embodiment, the master device MS still enables the control signal SC 1 , so the slave device SL 1 reads the command INT. In this example, the slave device SL 1 determines the type of command INT. When the command INT is a detection command, the slave device SL 1 temporarily does not operate.

從屬裝置SL1~SLN根據不同的指令INT而動作。在一可能實施例中,指令INT係為一偵測指令,用以分配不同的識別編號予不同的從屬裝置,並要求從屬裝置SL1~SLN回報本身內建的功能編號。在此例中,從屬裝置SL1~SLN儲存主控裝置MS所提供的識別編號,並根據本身儲存的功能編號,產生回覆訊息RS1~RSN予主控裝置MS。主控裝置MS可能執行每一功能編號所對應的動作,或是命令至少一特定從屬裝置進行本身功能編號所對應的動作。 The slave devices SL 1 to SL N operate according to different commands INT. In a possible embodiment, the command INT is a detection command, used to assign different identification numbers to different slave devices, and requires the slave devices SL 1 ˜SL N to report the built-in function number. In this example, the slave devices SL 1 ˜SL N store the identification number provided by the master device MS, and generate reply messages RS 1 ˜RS N to the master device MS according to the function number stored in them. The master device MS may perform the action corresponding to each function number, or instruct at least one specific slave device to perform the action corresponding to its own function number.

以從屬裝置SL1~SL3為例,如果從屬裝置SL1的功能編號係對應一發光動作,從屬裝置SL2的功能編號係對應一播音樂動作,並且從屬裝置SL3的功能編號係對應一震動動作。在此例中,主控裝置MS可能從屬裝置SL1~SL3的功能編號,依序執行該發光動作、播音樂動作以及震動動作。在另一可能實施例中,從屬裝置SL1及SL3具有相同的功能編號。假設,從屬裝置SL1及SL3的功能編號是對應一發光動作。在此例中,主控裝置MS可能先執行發光動作,再播音樂,最後再次執行發光動作。在其它實施例中,主控裝置MS命令從屬裝置SL1~SL3執行本身內建的功能編號所對應的功能。舉例而言,從屬裝置SL1執行發光動作,從屬裝置SL2播放音樂,並從屬裝置SL3執行震動動作。 Taking the slave devices SL 1 to SL 3 as an example, if the function number of the slave device SL 1 corresponds to a light-emitting action, the function number of the slave device SL 2 corresponds to a music playing action, and the function number of the slave device SL 3 corresponds to a Shaking action. In this example, the master control device MS may perform the function numbers of the slave devices SL 1 -SL 3 in order to perform the light-emitting action, music play action, and vibration action in sequence. In another possible embodiment, the slave devices SL 1 and SL 3 have the same function number. It is assumed that the function numbers of the slave devices SL 1 and SL 3 correspond to a light-emitting action. In this example, the main control device MS may perform the light-emitting action first, then play music, and finally perform the light-emitting action again. In other embodiments, the master device MS commands the slave devices SL 1 ˜SL 3 to perform the functions corresponding to the built-in function numbers. For example, the slave device SL 1 performs a light-emitting action, the slave device SL 2 plays music, and the slave device SL 3 performs a vibration action.

在另一可能實施例中,指令INT係為一偵測結束指令,用以告知從屬裝置SL1~SLN偵測動作已結束。舉例而言,當從屬裝置SL1產生回覆訊息RS1予主控裝置MS後,從屬裝置SL1暫不根據指令INT而動作。然而,當指令INT係為一偵測結 束指令時,從屬裝置SL1開始根據指令INT而動作,如執行主控裝置MS所交代的工作,或是執行本身儲存的功能編號所對應的動作。 In another possible embodiment, the command INT is a detection end command to notify the slave devices SL 1 ˜SL N that the detection action has ended. For example, after the slave device SL 1 generates a reply message RS 1 to the master device MS, the slave device SL 1 does not temporarily act according to the command INT. However, when the command INT is a detection end command, the slave device SL 1 starts to act according to the command INT, such as performing the work assigned by the master device MS or performing the action corresponding to the function number stored in itself.

在一些實施例中,指令INT係為一詢問指令,用以詢問從屬裝置SL1~SLN目前的連接狀態。在此例中,連接狀態未改變的從屬裝置並不會產生回覆訊息予主控裝置MS。舉例而言,當從屬裝置SL3脫離從屬裝置SL2時,從屬裝置SL2透過回覆訊息RS2告知主控裝置MS。因此,主控裝置MS不再執行從屬裝置SL3的功能編號所對應的動作。在此例中,由於從屬裝置SL1的連接狀態未改變,故從屬裝置SL1不回應指令INT。 In some embodiments, the command INT is an inquiry command for inquiring the current connection status of the slave devices SL 1 ˜SL N. In this example, the slave device whose connection status has not changed will not generate a reply message to the master device MS. For example, when the slave device from the slave SL 3 SL 2, the slave SL 2 RS 2 to inform the master device MS via a response message. Therefore, the master device MS no longer performs the action corresponding to the function number of the slave device SL 3 . In this example, since the connection state of the slave device SL 1 has not changed, the slave device SL 1 does not respond to the command INT.

另外,假設主控裝置MS耦接從屬裝置SL1,並且從屬裝置SL1串接從屬裝置SL2。在此例中,當從屬裝置SL3連接從屬裝置SL2時,由於從屬裝置SL2的連接狀態改變,故從屬裝置SL2透過回覆訊息RS2告知主控裝置MS。因此,主控裝置MS分配一識別編號予從屬裝置SL3,並偵測從屬裝置SL3的功能編號。在此例中,主控裝置MS可能執行從屬裝置SL3的功能編號所對應的動作,或是命令從屬裝置SL3執行本身功能編號所對應的動作。 In addition, it is assumed that the master device MS is coupled to the slave device SL 1 , and the slave device SL 1 is serially connected to the slave device SL 2 . In this embodiment, when the slave device is connected slave SL SL 2. 3, since the connection state of the slave SL 2 is changed, so that the slave SL 2 inform the RS 2 via the master device MS replies. Therefore, the master device MS assigns an identification number to the slave device SL 3 and detects the function number of the slave device SL 3 . In this example, the MS may perform a master slave apparatus SL function number 3 corresponding to the action or command the slave SL 3 itself performs the function corresponding to the operation number.

在其它實施例中,當一觸發事件發生在從屬裝置SL2時,從屬裝置SL2告知主控裝置MS。因此,主控裝置MS執行該觸發事件所對應的動作,或是命令從屬裝置SL2執行該觸發事件所對應的動作。 In other embodiments, when a trigger event occurs in the slave device SL 2 , the slave device SL 2 informs the master device MS. Therefore, the master device MS performs the action corresponding to the trigger event, or commands the slave device SL 2 to perform the action corresponding to the trigger event.

主控裝置MS可能供電予從屬裝置SL1~SLN。如圖所示,主控裝置MS透過一導線WR2提供一操作電壓VDD予從 屬裝置SL1~SLN,並透過一導線WR3提供一操作電壓GND予從屬裝置SL1~SLN。在一些實施例中,從屬裝置SL1~SLN各自具有電池(未顯示)。在此例中,主控裝置MS不需供電予從屬裝置SL1~SLN,故可省略導線WR2及WR3。 The master device MS may supply power to the slave devices SL 1 ˜SL N. As shown, the master device MS provides an operating voltage through a wire WR2 VDD to the slave SL 1 ~ SL N, and WR3 to provide an operating voltage through a GND wire slave I SL 1 ~ SL N. In some embodiments, the slave devices SL 1 ˜SL N each have a battery (not shown). In this example, the master device MS does not need to supply power to the slave devices SL 1 ˜SL N , so the wires WR2 and WR3 can be omitted.

第2圖為本發明之控制方法的流程示意圖。第2圖的控制方法係適用於第1圖的主控裝置MS中。為方便說明,假設第1圖的主控裝置MS串接三從屬裝置(如SL1~SL3)。 FIG. 2 is a schematic flowchart of the control method of the present invention. The control method of FIG. 2 is applied to the main control device MS of FIG. 1. For convenience of explanation, it is assumed that the master device MS in FIG. 1 is connected in series with three slave devices (such as SL 1 ~ SL 3 ).

首先,主控裝置MS發出一第一指令以及一第一識別編號(步驟S211)。在本實施例中,第一指令係為一偵測指令,用以設定一特定從屬裝置的識別編號並要求該特定從屬裝置輸出本身內建的功能編號。在一可能實施例中,主控裝置MS發出第一指令前,主控裝置MS先致能控制信號SC1。因此從屬裝置SL1根據第一指令而動作。在此例中,從屬裝置SL1儲存第一識別編號,並根據本身的功能編號產生一回覆訊息RS1。由於控制信號SC2及SC3未被致能,故從屬裝置SL2及SL3暫不根據第一指令而動作。 First, the main control device MS issues a first command and a first identification number (step S211). In this embodiment, the first command is a detection command for setting the identification number of a specific slave device and requesting the specific slave device to output the built-in function number. In a possible embodiment, before the main control device MS issues the first command, the main control device MS first enables the control signal SC 1 . Therefore, the slave device SL 1 operates according to the first command. In this example, the slave device SL 1 stores the first identification number, and generates a reply message RS 1 according to its own function number. Since the control signals SC 2 and SC 3 are not enabled, the slave devices SL 2 and SL 3 temporarily do not operate according to the first command.

接著,主控裝置MS接收從屬裝置SL1產生的回覆訊息RS1(步驟S212)。由於從屬裝置SL1根據本身的功能編號產生回覆訊息RS1,故主控裝置MS解碼回覆訊息RS1後,便可得知從屬裝置SL1的功能編號。在一些實施例中,當從屬裝置SL1回覆本身內建的功能編號後,從屬裝置SL1不再根據主控裝置MS所發出的指令而動作,直到主控裝置MS發出的指令係為一偵測結束指令。在一可能實施例中,從屬裝置SL1接收並解碼主控裝置MS發出的指令,用以判斷主控裝置MS發出的指令是 否為一偵測指令。若是,從屬裝置SL1不理會主控裝置MS發出的指令。若主控裝置MS發出的指令並非偵測指令,則從屬裝置SL1根據主控裝置MS發出的指令而動作。另外,當從屬裝置SL1得知從屬裝置SL2的存在時,從屬裝置SL1致能控制信號SC2,用以命令從屬裝置SL2根據主控裝置MS發出的指令而動作。 Next, the master device MS receives the slave SL 1 reply message generated in RS 1 (step S212). Since the slave SL 1 is generated according to its own function ID reply message RS 1, it means the master MS decodes the reply message after 1 RS, SL will be aware of the slave function numbers 1. In some embodiments, after the slave device SL 1 responds to the built-in function number, the slave device SL 1 no longer acts according to the command issued by the master device MS until the command issued by the master device MS is a detection Test end instruction. In a possible embodiment, the slave device SL 1 receives and decodes the command issued by the master device MS to determine whether the command issued by the master device MS is a detection command. If so, the slave device SL 1 ignores the command issued by the master device MS. If the command issued by the master device MS is not a detection command, the slave device SL 1 operates according to the command issued by the master device MS. In addition, when the slave device SL 1 learns of the existence of the slave device SL 2 , the slave device SL 1 enables the control signal SC 2 to instruct the slave device SL 2 to operate according to an instruction issued by the master device MS.

主控裝置MS判斷從屬裝置SL1是否串接從屬裝置SL2(步驟S213)。本發明並不限定主控裝置MS如何判斷從屬裝置SL1是否串接從屬裝置SL2。在一可能實施例中,主控裝置MS係根據回覆訊息RS1的一特定位元的數值,得知從屬裝置SL1是否耦接從屬裝置SL2。舉例而言,當從屬裝置SL2串接從屬裝置SL1時,從屬裝置SL1設定該特定位元的數值等於一第一數值(如1)。當從屬裝置SL2未串接從屬裝置SL1時,從屬裝置SL1設定該特定位元的數值等於一第二數值(如0)。因此,主控裝置MS只要判斷該特定位元的數值是否等於一預設值(如1),便可得知從屬裝置SL2是否耦接從屬裝置SL1The master device MS judges whether the slave device SL 1 is connected in series to the slave device SL 2 (step S213). The present invention does not limit how the master device MS determines whether the slave device SL 1 is connected in series with the slave device SL 2 . In a possible embodiment, the master device MS knows whether the slave device SL 1 is coupled to the slave device SL 2 according to the value of a specific bit of the reply message RS 1 . For example, when the slave device SL 2 is serially connected to the slave device SL 1 , the slave device SL 1 sets the value of the specific bit equal to a first value (eg, 1). When the slave device SL 2 is not connected to the slave device SL 1 , the slave device SL 1 sets the value of the specific bit equal to a second value (eg, 0). Therefore, as long as the master device MS judges whether the value of the specific bit is equal to a predetermined value (such as 1), it can know whether the slave device SL 2 is coupled to the slave device SL 1 .

當從屬裝置SL2未串接從屬裝置SL1時,主控裝置MS根據回覆訊息RS1而動作(步驟S214)。在一可能實施例中,主控裝置MS解碼回覆訊息RS1,用以得知從屬裝置SL1的功能編號,再執行該功能編號所對應的一特定動作,或是命令從屬裝置SL1執行該功能編號所對應的特定動作。 When the slave device SL 2 is not serially connected to the slave device SL 1 , the master device MS operates according to the reply message RS 1 (step S214). In a possible embodiment, the master device MS decodes the reply message RS 1 to know the function number of the slave device SL 1 , and then executes a specific action corresponding to the function number, or commands the slave device SL 1 to execute the The specific action corresponding to the function number.

舉例而言,如果從屬裝置SL1回報的功能編號代表一發光動作時,則在步驟S214中,主控裝置MS執行發光動作。在另一可能實施例中,主控裝置MS要求從屬裝置SL1執行發光動作。在此例中,主控裝置MS先發出一偵測結束指令,用以 命令從屬裝置SL1準備根據指令INT而動作。因此,當主控裝置MS發出控制指令時,從屬裝置SL1便開始發光。在其它實施例中,主控裝置MS與從屬裝置SL1同時執行發光動作。在一些實施例中,主控裝置MS可能係為一火車頭,而從屬裝置SL1係為一車廂。如果從屬裝置SL1回報的功能編號係代表一前進動作時,則主控裝置MS帶著從屬裝置SL1一起前進。 For example, if the function number reported by the slave device SL 1 represents a light-emitting action, then in step S214, the master device MS performs the light-emitting action. In another possible embodiment, the master device MS requires the slave device SL 1 to perform a light-emitting action. In this example, the master device MS first issues a detection end command to command the slave device SL 1 to prepare to act according to the command INT. Therefore, when the master device MS issues a control command, the slave device SL 1 starts to emit light. In other embodiments, the master device MS and the slave device SL 1 simultaneously perform a light-emitting action. In some embodiments, the master device MS may be a locomotive, and the slave device SL 1 may be a car. If the function number reported by the slave device SL 1 represents a forward action, the master device MS advances with the slave device SL 1 .

當從屬裝置SL2串接從屬裝置SL1時,主控裝置MS繼續偵測從屬裝置SL2的功能編號(步驟S221)。在本實施例中,主控裝置MS發出第二指令以及一第二識別編號。第二指令係為一偵測指令。因此,從屬裝置SL2儲存第二識別編號,並根據本身內建的功能編號,產生一回覆訊息RS2When the slave device SL 2 is serially connected to the slave device SL 1 , the master device MS continues to detect the function number of the slave device SL 2 (step S221). In this embodiment, the main control device MS issues a second command and a second identification number. The second command is a detection command. Therefore, the slave device SL 2 stores the second identification number and generates a reply message RS 2 according to the built-in function number.

接著,主控裝置MS接收回覆訊息RS2(步驟S222)。主控裝置MS根據回覆訊息RS2,得知從屬裝置SL2的功能編號。在一些實施例中,當從屬裝置SL2提供回覆訊息RS2予主控裝置MS後,從屬裝置SL2不再根據主控裝置MS所發出的指令而動作,直到主控裝置MS發出的指令係為一偵測結束指令。由於從屬裝置SL2的動作與從屬裝置SL1的動作相似,故不再贅述。 Then, the master device MS receives the reply message RS 2 (step S222). The master device MS knows the function number of the slave device SL 2 based on the reply message RS 2 . In some embodiments, after the slave device SL 2 provides the reply message RS 2 to the master device MS, the slave device SL 2 no longer acts according to the command issued by the master device MS until the command issued by the master device MS is It is a detection end command. Since the operation of the slave SL 2 and SL operation of a slave device are similar, and therefore will not be repeated.

接著,主控裝置MS判斷從屬裝置SL2是否串接從屬裝置SL3(步驟S223)。本發明並不限定主控裝置MS如何判斷從屬裝置SL2是否串接從屬裝置SL3。在一可能實施例中,主控裝置MS係根據回覆訊息RS2的一特定位元的數值,得知從屬裝置SL2是否耦接從屬裝置SL3Next, the master device MS determines whether the slave device SL 2 is connected in series to the slave device SL 3 (step S223). The present invention does not limit how the master device MS determines whether the slave device SL 2 is connected in series with the slave device SL 3 . In a possible embodiment, the master device MS knows whether the slave device SL 2 is coupled to the slave device SL 3 according to the value of a specific bit of the reply message RS 2 .

當從屬裝置SL2未串接從屬裝置SL3時,主控裝置MS根據回覆訊息RS1及RS2而動作(步驟S224)。在一可能實施例 中,主控裝置MS執行從屬裝置SL1的功能編號所對應的一第一動作(如發光)以及從屬裝置SL2的功能編號所對應的一第二動作(播放音樂)。在另一可能實施例中,主控裝置MS命令從屬裝置SL1執行本身內建的功能編號所對應的一第一動作(如發光)以及命令從屬裝置SL2執行本身內建的功能編號所對應的一第二動作(播放音樂)。在此例中,主控裝置MS先發出一偵測結束指令,用以命令從屬裝置SL1及SL2根據指令INT而動作。在一些實施例中,主控裝置MS係為一火車頭,而從屬裝置SL1及SL2都是車廂時。在此例中,如果從屬裝置SL1的功能編號係代表一前進動作並且從屬裝置SL2的功能編號係代表一右轉動作時,則主控裝置MS帶著從屬裝置SL1及SL2一起前進再右轉。 When the slave device SL 2 is not connected to the slave device SL 3 , the master device MS operates according to the reply messages RS 1 and RS 2 (step S224). In a possible embodiment, the master device MS performs a first action (such as lighting) corresponding to the function number of the slave device SL 1 and a second action (playing music) corresponding to the function number of the slave device SL 2 . In another possible embodiment, the master device MS commands the slave device SL 1 to perform a first action (such as lighting) corresponding to the built-in function number and commands the slave device SL 2 to execute the corresponding built-in function number A second action (play music). In this example, the master device MS first issues a detection end command to command the slave devices SL 1 and SL 2 to act according to the command INT. In some embodiments, the master device MS is a locomotive, and the slave devices SL 1 and SL 2 are both cars. In this example, if the function number of the slave device SL 1 represents a forward motion and the function number of the slave device SL 2 represents a right-turn motion, the master device MS advances along with the slave devices SL 1 and SL 2 Turn right again.

當從屬裝置SL2串接從屬裝置SL3時,主控裝置MS發出第三指令以及一第三識別編號予從屬裝置SL3(步驟S231)。在本實施例中,第三指令仍為一偵測指令。在一可能實施例中,在步驟S231前,從屬裝置SL2致能控制信號SC3,用以命令從屬裝置SL3準備接收第三指令。在其它實施例中,由於從屬裝置SL1及SL2已回報本身的功能編號,故當主控裝置MS發出第三指令時,從屬裝置SL1及SL2不根據第三指令而動作。 When the slave device SL 2 is serially connected to the slave device SL 3 , the master device MS issues a third command and a third identification number to the slave device SL 3 (step S231). In this embodiment, the third command is still a detection command. In a possible embodiment, before step S231, the slave device SL 2 enables the control signal SC 3 to command the slave device SL 3 to prepare to receive the third instruction. In other embodiments, since the slave devices SL 1 and SL 2 have reported their own function numbers, when the master device MS issues the third command, the slave devices SL 1 and SL 2 do not act according to the third command.

接著,主控裝置MS接收從屬裝置SL3所產生的回覆訊息RS3(步驟S232)。主控裝置MS根據回覆訊息RS3,可得知從屬裝置SL3的功能編號。在一些實施例中,當從屬裝置SL3提供回覆訊息RS3予主控裝置MS後,從屬裝置SL3不再根據主控裝置MS所發出的指令INT而動作,直到主控裝置MS發出的指令INT係為一偵測結束指令。由於從屬裝置SL3的動作與從屬裝置 SL1的動作相似,故不再贅述。 Next, the master device MS receives the reply message the slave SL 3 generated RS 3 (step S232). Based on the reply message RS 3 , the master device MS can know the function number of the slave device SL 3 . In some embodiments, after the slave device SL 3 provides the reply message RS 3 to the master device MS, the slave device SL 3 no longer operates according to the command INT issued by the master device MS until the command issued by the master device MS INT is a detection end command. Since the operation of the slave SL 3 and SL operation of a slave device are similar, and therefore will not be repeated.

接著,主控裝置MS判斷從屬裝置SL3是否串接從屬裝置SL4(步驟S233)。本發明並不限定主控裝置MS如何判斷從屬裝置SL3是否串接從屬裝置SL4。在一可能實施例中,主控裝置MS係根據回覆訊息RS3的一特定位元的數值,得知從屬裝置SL3是否耦接從屬裝置SL4Next, the master device MS determines whether the slave device SL 3 is connected in series to the slave device SL 4 (step S233). The present invention does not limit how the master device MS determines whether the slave device SL 3 is serially connected to the slave device SL 4 . In a possible embodiment, the master device MS knows whether the slave device SL 3 is coupled to the slave device SL 4 according to the value of a specific bit of the reply message RS 3 .

當從屬裝置SL3未串接從屬裝置SL4時,主控裝置MS根據回覆訊息RS1~RS3而動作(步驟S234)。在一可能實施例中,主控裝置MS根據從屬裝置SL1~SL3的功能編號執行三動作。舉例而言,如果從屬裝置SL1的功能編號代表一發光動作,從屬裝置SL2的功能編號代表一播放音樂動作,從屬裝置SL3的功能編號代表一震動動作時,則在步驟S214中,主控裝置MS執行依序或同時進行發光、播放音樂及震動動作。在其它實施例中,主控裝置MS要求從屬裝置SL1~SL3分別進行發光、播放音樂及震動動作。在一些實施例中,如果從屬裝置SL1的功能編號係代表一前進動作,從屬裝置SL2的功能編號係代表一右轉動作,並且從屬裝置SL3的功能編號係代表一左轉動作時,則主控裝置MS帶著從屬裝置SL1~SL3一起前進、右轉再左轉。在其它實施例中,主控裝置MS先發出一偵測結束指令,用以命令從屬裝置SL1~SL3根據指令INT動作。 When the slave device SL 3 is not serially connected to the slave device SL 4 , the master device MS operates according to the reply messages RS 1 to RS 3 (step S234). In a possible embodiment, the master device MS performs three actions according to the function numbers of the slave devices SL 1 ˜SL 3 . For example, if the function number of the slave device SL 1 represents a light-emitting action, the function number of the slave device SL 2 represents a music playing action, and the function number of the slave device SL 3 represents a vibration action, then in step S214, the master The control device MS executes light emission, music playback and vibration actions sequentially or simultaneously. In other embodiments, the master device MS requires the slave devices SL 1 ˜SL 3 to perform light-emitting, music playing, and vibration actions, respectively. In some embodiments, if the function number of the slave device SL 1 represents a forward motion, the function number of the slave device SL 2 represents a right-turn motion, and the function number of the slave device SL 3 represents a left-turn motion, Then the master device MS advances with the slave devices SL 1 ˜SL 3 , turns right and then turns left. In other embodiments, the master device MS first issues a detection end command to command the slave devices SL 1 ˜SL 3 to act according to the command INT.

當從屬裝置SL3耦接從屬裝置SL4時,則主控裝置MS繼續發出一第四指令,用以設定從屬裝置SL4的識別編號並偵測從屬裝置SL4的功能編號(步驟S240)。由於從屬裝置SL4回報功能編號的方式與從屬裝置SL1回報功能編號的方式相似, 故不再贅述。另外,主控裝置MS控制從屬裝置SL4的方式相似於主控裝置MS控制從屬裝置SL1的方式,故不再贅述。 When the slave SL SL. 3 is coupled to the slave 4 when the master device MS continues to send a fourth instruction, for setting the identification number of the slave SL 4 and SL detecting slave function number (Step S240) 4. Since the way in which the slave device SL 4 reports the function number is similar to the way in which the slave device SL 1 reports the function number, it will not be repeated here. In addition, the manner in which the master control device MS controls the slave device SL 4 is similar to the manner in which the master control device MS controls the slave device SL 1 and will not be described in detail.

當每一從屬裝置儲存專屬的識別編號,並告知本身內建的功能編號後,主控裝置MS開始執行一特定動作。該特定動作可能是主控裝置MS執行每一從屬裝置的功能編號所對應的動作,或是主控裝置MS要求至少一特定從屬裝置執行本身內建的功能編號所對應的動作。在另一可能實施例中,主控裝置MS先發出一偵測結束命令,再命令每一從屬裝置執行本身功能編號所對應的動作。 After each slave device stores a unique identification number and informs itself of the built-in function number, the master device MS starts to perform a specific action. The specific action may be that the master device MS performs the action corresponding to the function number of each slave device, or the master device MS requires at least one specific slave device to perform the action corresponding to the built-in function number. In another possible embodiment, the master device MS first issues a detection end command, and then commands each slave device to perform the action corresponding to its own function number.

在其它實施例中,主控裝置MS每隔一固定時間,便發出一詢問指令,用以詢問從屬裝置的狀態,如從屬裝置被移除、從屬裝置被加入,或是發生一觸發事件。假設,主控裝置MS串接從屬裝置SL1~SL3。在此例中,如果從屬裝置SL4連接從屬裝置SL3時,從屬裝置SL3提供一回覆訊息RS3予主控裝置MS。在一可能實施例中,從屬裝置SL3所發出的回覆訊息RS3裡的複數第一位元用以表示從屬裝置SL3的識別編號,而回覆訊息RS3的複數第二位元用以表示新增一從屬裝置。因此,主控裝置MS設定從屬裝置SL4的識別編號,並偵測從屬裝置SL4的功能編號。 In other embodiments, the master device MS sends out an inquiry command every fixed time to inquire about the status of the slave device, such as the slave device is removed, the slave device is added, or a trigger event occurs. Assume that the master device MS is serially connected to the slave devices SL 1 ˜SL 3 . In this example, if the slave device SL 4 is connected to the slave device SL 3 , the slave device SL 3 provides a reply message RS 3 to the master device MS. In a possible embodiment, the plural first digits in the reply message RS 3 sent by the slave device SL 3 are used to indicate the identification number of the slave device SL 3 , and the plural second digits in the reply message RS 3 are used to indicate Add a slave device. Therefore, the master device MS identification number setting slave SL 4 and SL detecting slave function number 4.

在其它實施例中,當從屬裝置SL3不再連接從屬裝置SL2時,由於從屬裝置SL2的連接狀態改變,故從屬裝置SL2發出一回覆訊息RS2予主控裝置MS。在此例中,從屬裝置SL2所發出的回覆訊息RS2裡的複數第一位元的數值表示從屬裝置SL2的識別編號,而回覆訊息RS2裡的複數第二位元的數值表示 從屬裝置SL3是否被移除。因此,當主控裝置MS根據回覆訊息RS2裡的第二位元的數值得知從屬裝置SL3被移除時,主控裝置MS不再執行從屬裝置SL3的功能編號所對應的動作,如左轉動作。 In other embodiments, the slave when the slave SL SL 2 is no longer connected. 3, since the connection state of the slave SL 2 is changed, so that the slave SL 2 2 sends a reply to the RS message to the master device MS. In this embodiment, the slave SL reply message emitted by the RS 2 2 bits in the plurality of the first number indicates the identification number of the slave SL 2, and the second bit value in the reply message of the RS 2 complex representation subordinate Whether the device SL 3 has been removed. Therefore, when the master device MS knows that the slave device SL 3 is removed according to the value of the second bit in the reply message RS 2 , the master device MS no longer performs the action corresponding to the function number of the slave device SL 3 , Such as turning left.

在另一可能實施例中,當從屬裝置SL1的一開關被按下,或是使用者利用一遙控器觸發從屬裝置SL1的功能(如發光時)時,從屬裝置SL1透過回覆訊息RS1告知主控裝置MS。主控裝置MS根據回覆訊息RS1裡的複數第一位元的數值,得知一觸發事件發生在從屬裝置SL1,並根據回覆訊息RS1裡的複數第二位元的數值,得知一額外功能被啟動。因此,主控裝置MS不僅執行從屬裝置SL1~SL3的功能編號所對應的動作(如前進、右轉及左轉),主控裝置MS同時也執行該額外動作,或是要求從屬裝置SL1執行一額外的動作,如發光。 In another possible embodiment, when a switch of the slave device SL 1 is pressed, or when the user uses a remote control to trigger the function of the slave device SL 1 (such as lighting), the slave device SL 1 responds to the message RS 1 Inform the master control device MS. The value of the master device MS reply message RS 1 in the first plurality of bits, a triggering event that occurs in the slave SL 1, and according to the value of the second bit of the reply message RS 1 in the complex, that a The extra function is activated. Therefore, the master device MS not only performs the actions corresponding to the function numbers of the slave devices SL 1 ~ SL 3 (such as forward, right turn, and left turn), the master device MS also performs the additional action, or requests the slave device SL 1 Perform an additional action, such as glowing.

在其它實施例中,指令INT係為一控制指令,用以命令特定的從屬裝置執行本身的功能編號所對應的動作。舉例而言,主控裝置MS可能命令從屬裝置SL2播放音樂。在此例中,主控裝置MS發出一特定識別編號。從屬裝置SL1~SL3判斷該特定識別編號是否本身儲存的識別編相同。由於從屬裝置SL2的識別編號與特定識別編號相同,因此,只有從屬裝置SL2會動作。在一些實施例中,主控裝置MS可能要求多個從屬裝置執行相同的動作,如發光。在另一可能實施例中,主控裝置MS也可透過指令INT控制從屬裝置所發出的光線的顏色。舉例而言,主控裝置MS可能分別命令從屬裝置SL1~SL3呈現紅光、黃光及綠光。 In other embodiments, the command INT is a control command used to command a specific slave device to perform the action corresponding to its own function number. For example, the master device MS may command the slave device SL 2 to play music. In this example, the master control device MS sends out a specific identification number. The slave devices SL 1 ˜SL 3 determine whether the identification code stored in the specific identification number is the same. Since the identification number of the slave device SL 2 is the same as the specific identification number, only the slave device SL 2 will operate. In some embodiments, the master device MS may require multiple slave devices to perform the same action, such as lighting. In another possible embodiment, the master device MS can also control the color of the light emitted by the slave device through the command INT. For example, the master device MS may command the slave devices SL 1 ˜SL 3 to present red light, yellow light, and green light, respectively.

第3圖為本發明之控制方法的另一流程示意圖。第3圖的控制方法適用於第1圖的每一從屬裝置中。為方便說明,以下內容以第1圖的從屬裝置SL1為例。首先,從屬裝置SL1接收一指令INT(步驟S311)。在本實施例中,指令INT係為一偵測指令。從屬裝置SL1根據指令INT儲存一識別編號,並根據本身內建的功能編號,產生一回覆訊息RS1。在一可能實施例中,指令INT係由主控裝置MS所提供。 FIG. 3 is another schematic flowchart of the control method of the present invention. The control method of FIG. 3 is applied to each slave device of FIG. 1. For convenience of explanation, the following takes the slave device SL 1 in FIG. 1 as an example. First, the slave device SL 1 receives an instruction INT (step S311). In this embodiment, the instruction INT is a detection instruction. The slave device SL 1 stores an identification number according to the command INT, and generates a reply message RS 1 according to the built-in function number. In a possible embodiment, the command INT is provided by the master control device MS.

從屬裝置SL1判斷從屬裝置SL2是否存在(步驟S312)。本發明並不限定從屬裝置SL1如何判斷從屬裝置SL2是否存在。在一可能實施例中,當從屬裝置SL2耦接從屬裝置SL1時,從屬裝置SL1的一特定接腳的位準將發生變化。因此,從屬裝置SL1根據該特定接腳的位準,便可得知從屬裝置SL2是否存在。 The slave device SL 1 determines whether the slave device SL 2 exists (step S312). The present invention does not limit how the slave device SL 1 determines whether the slave device SL 2 exists. In a possible embodiment, when the slave device SL 2 is coupled to the slave device SL 1 , the level of a specific pin of the slave device SL 1 will change. Therefore, the slave device SL 1 can know whether the slave device SL 2 exists according to the level of the specific pin.

當從屬裝置SL2串接從屬裝置SL1時,從屬裝置SL1致能控制信號SC2,用以命令從屬裝置SL2準備接收指令INT(步驟S313)。從屬裝置SL1提供回覆訊息RS1予主控裝置MS(步驟S314)。本發明並不限定步驟S313與S314的順序。步驟S313可能早於步驟S314,或晚於步驟S314。主控裝置MS根據回覆訊息RS1,得知從屬裝置SL1的功能編號。 When the slave device SL 2 is serially connected to the slave device SL 1 , the slave device SL 1 enables the control signal SC 2 to instruct the slave device SL 2 to prepare to receive the command INT (step S313). The slave device SL 1 provides a reply message RS 1 to the master device MS (step S314). The present invention does not limit the order of steps S313 and S314. Step S313 may be earlier than step S314, or later than step S314. The master device MS knows the function number of the slave device SL 1 based on the reply message RS 1 .

在一可能實施例中,主控裝置MS根據回覆訊息RS1的一特定位元的數值,得知從屬裝置SL2是否串接從屬裝置SL1。當從屬裝置SL2串接從屬裝置SL1時,主控裝置MS再次發出指令INT。從屬裝置SL2根據指令INT儲存主控裝置MS所分配的識別編號,並告知根據本身內建的功能編號提供回覆訊息RS2予 主控裝置MS。由於從屬裝置SL1已提供回覆訊息RS1,故從屬裝置SL1不根據指令INT而動作,直到指令INT係為一偵測結束指令。在此例中,從屬裝置SL1仍接收主控裝置MS所發出的指令INT,用以判斷指令INT是否為一偵測結束指令。當指令INT並非一偵測結束指令時,從屬裝置SL1不根據指令INT而動作。當指令INT係為一偵測結束指令時,從屬裝置SL1根據指令INT而動作。 In one possible embodiment, the master device MS RS value of a specific bit according reply message, the slave device that the slave device connected in series whether SL 2 SL 1. When the slave device SL 2 is serially connected to the slave device SL 1 , the master device MS issues the command INT again. The slave device SL 2 stores the identification number assigned by the master device MS according to the instruction INT, and informs the master device MS to provide a reply message RS 2 according to the built-in function number. Since the slave device SL 1 has provided the reply message RS 1 , the slave device SL 1 does not act according to the command INT until the command INT is a detection end command. In this example, the slave device SL 1 still receives the command INT issued by the master device MS to determine whether the command INT is a detection end command. When the command INT is not a detection end command, the slave device SL 1 does not act according to the command INT. When the command INT is a detection end command, the slave device SL 1 operates according to the command INT.

在步驟S312中,當從屬裝置SL2未串接從屬裝置SL1時,從屬裝置SL1發出回覆訊息RS1予主控裝置MS(步驟S314)。當主控裝置MS根據回覆訊息RS1得知從屬裝置SL2未串接從屬裝置SL1時,主控裝置MS僅根據從屬裝置SL1的功能編號而動作。在其它實施例中,當多個從屬裝置串接在一起時,主控裝置MS根據不同從屬裝置所回報的功能編號,進行相對應的動作。 In step S312, when the slave device SL 2 is not serially connected to the slave device SL 1 , the slave device SL 1 sends a reply message RS 1 to the master device MS (step S314). When the master device MS learns from the reply message RS 1 that the slave device SL 2 is not connected to the slave device SL 1 , the master device MS only operates according to the function number of the slave device SL 1 . In other embodiments, when multiple slave devices are connected in series, the master device MS performs corresponding actions according to the function numbers reported by the different slave devices.

在其它實施例中,當從屬裝置SL1接收到一詢問指令時,從屬裝置SL1判斷一觸發事件是否發生。該觸發事件可能是從屬裝置SL1的一按鍵被按下,或是從屬裝置SL1被一遙控器所觸發。當觸發事件發生時,從屬裝置SL1利用回覆訊息RS1告知主控裝置MS。主控裝置MS根據回覆訊息RS1執行一特定動作,或是命令從屬裝置SL1執行該特定動作。舉例而言,當從屬裝置SL1的按鍵被按下時,主控裝置MS執行該按鍵所對應的動作(如一發光動作),或是要求從屬裝置SL1執行該按鍵所對應的動作。 In other embodiments, when the slave device SL 1 receives an inquiry command, the slave device SL 1 determines whether a trigger event occurs. The triggering event may be that a key of the slave device SL 1 is pressed, or the slave device SL 1 is triggered by a remote controller. When a trigger event occurs, the slave SL 1 RS 1 MS to inform the master device using the reply message. The master device MS performs a specific action according to the reply message RS 1 , or commands the slave device SL 1 to perform the specific action. For example, when the key of the slave device SL 1 is pressed, the master device MS performs the action corresponding to the key (such as a light-emitting action), or requests the slave device SL 1 to perform the action corresponding to the key.

第4A圖為本發明之操作系統的一可能控制時序圖。 在此例中,當從屬裝置SL1~SL3串接在一起時,主控裝置MS提供偵測指令CMD1~CMD3。偵測指令CMD1~CMD3用以分配識別編號予從屬裝置SL1~SL3,並偵測從屬裝置SL1~SL3的功能編號。 FIG. 4A is a possible control timing chart of the operating system of the present invention. In this example, when the slave devices SL 1 -SL 3 are connected in series, the master device MS provides the detection commands CMD1-CMD3. The detection commands CMD1 ~ CMD3 are used to assign identification numbers to the slave devices SL 1 ~ SL 3 and detect the function numbers of the slave devices SL 1 ~ SL 3 .

為了偵測從屬裝置SL1的功能編號,主控裝置MS致能控制信號SC1,用以命令從屬裝置SL1準備接收偵測指令CMD1。在本實施例中,當控制信號SC1為低位準時,表示控制信號SC1被致能,但並非用以限制本發明。在另一可能實施例中,當控制信號SC1為高位準時,表示控制信號SC1被致能。在其它實施例中,當控制信號SC1的頻率或佔空比(duty cycle)符合一預設值時,表示控制信號SC1被致能。 In order to detect the function number of the slave device SL 1 , the master device MS enables the control signal SC 1 to command the slave device SL 1 to prepare to receive the detection command CMD1. In this embodiment, when the control signal SC 1 is at a low level, it means that the control signal SC 1 is enabled, but it is not intended to limit the present invention. In another possible embodiment, when the control signal SC 1 is at a high level, it indicates that the control signal SC 1 is enabled. In other embodiments, when the control signal SC of a frequency or duty cycle (duty cycle) conforms to a predetermined value, a control signal SC 1 is enabled.

由於控制信號SC1為低位準,從屬裝置SL1根據偵測指令CMD1,接收並儲存一識別編號ID1(如01),並根據本身所儲存的功能編號(如A),產生回覆訊息RS1回報予主控裝置MS。在一可能實施例中,功能編號係事先儲存於從屬裝置SL1中。在其它實施例中,當從屬裝置SL1發現從屬裝置SL2的存在時,從屬裝置SL1利用回覆訊息RS1告知主控裝置MS,並致能一控制信號SC2,用以命令從屬裝置SL2準備接收偵測指令CMD2。在此例中,由於從屬裝置SL1已回應偵測指令CMD1,故從屬裝置SL1不再根據偵測指令CMD2及CMD3而動作。然而,當主控裝置MS發出一偵測結束指令時,從屬裝置SL1開始根據導線WR1上的指令而動作。 Since the control signal SC 1 is at a low level, the slave device SL 1 receives and stores an identification number ID1 (eg 01) according to the detection command CMD1, and generates a reply message RS 1 according to the function number (eg A) stored therein To the master control device MS. In a possible embodiment, the function number is stored in the slave device SL 1 in advance. In other embodiments, when the slave device. 1 found SL SL 2 of the slave device, the slave SL. 1 RS 1 using the reply message the MS to inform the master device, and enabling a control signal SC 2, a command to the slave device SL 2 Prepare to receive the detection command CMD2. In this example, since the slave device SL 1 has responded to the detection command CMD1, the slave device SL 1 no longer operates according to the detection commands CMD2 and CMD3. However, when the master device MS issues a detection end command, the slave device SL 1 starts to act according to the command on the wire WR1.

主控裝置MS根據回覆訊息RS1得知從屬裝置SL2的存在,故主控裝置MS發出偵測指令CMD2。由於從屬裝置SL1 致能控制信號SC2,故從屬裝置SL2根據偵測指令CMD2,記錄識別編號ID2(如02),並根據本身內存的功能編號(如B)產生一回覆訊息RS2予主控裝置MS。 The master device MS knows the existence of the slave device SL 2 according to the reply message RS 1 , so the master device MS issues a detection command CMD2. Since the slave device SL 1 enables the control signal SC 2 , the slave device SL 2 records the identification number ID2 (eg 02) according to the detection command CMD2 and generates a reply message RS 2 according to the function number (eg B) in its own memory Master control device MS.

由於從屬裝置SL3串接從屬裝置SL2,故從屬裝置SL2透過回覆訊息RS2告知主控裝置MS,並致能控制信號SC3。主控裝置MS根據回覆訊息RS2得知從屬裝置SL3的存在。因此,主控裝置MS發出偵測指令CMD3。從屬裝置SL3根據偵測指令CMD3儲存識別編號ID3(如03),並根據本身內存的功能編號(如A)產生一回覆訊息RS3予主控裝置MS。此時,由於從屬裝置SL2已告知本身的功能編號,故從屬裝置SL2不根據偵測指令CMD3而動作。 Since the slave SL 3 series slave SL 2, so that the slave SL 2 RS 2 through the MS to inform the master device reply to the message, and enabling the control signal SC 3. The master device MS knows the existence of the slave device SL 3 based on the reply message RS 2 . Therefore, the main control device MS issues a detection command CMD3. The slave device SL 3 stores the identification number ID3 (eg 03) according to the detection command CMD3, and generates a reply message RS 3 to the master device MS according to the function number (eg A) in its own memory. At this time, since the slave device SL 2 has notified its own function number, the slave device SL 2 does not operate according to the detection command CMD3.

由於從屬裝置SL3僅串接從屬裝置SL2,並且主控裝置MS已得知從屬裝置SL3的功能編號,故主控裝置MS不再發出偵測指令。在一可能實施例中,主控裝置MS發出一偵測結束指令,用以命令從屬裝置SL1~SL3根據導線WR1上的指令INT而動作。 Since the slave device SL 3 only serially connects the slave device SL 2 and the master device MS has learned the function number of the slave device SL 3 , the master device MS no longer issues a detection command. In a possible embodiment, the master device MS issues a detection end command to command the slave devices SL 1 ˜SL 3 to act according to the command INT on the wire WR1.

第4B圖為偵測指令CMD1、識別編號ID1及回覆訊息RS1的示意圖。如圖所示,偵測指令CMD1、識別編號ID1及回覆訊息RS1係由複數脈衝所構成。藉由控制脈衝的數量及/或佔空比,便可形成不同的指令、識別編號及回覆訊息。 FIG. 4B is a schematic diagram of the detection command CMD1, the identification number ID1, and the reply message RS 1 . As shown in the figure, the detection command CMD1, the identification number ID1 and the reply message RS 1 are composed of complex pulses. By controlling the number of pulses and / or the duty cycle, different commands, identification numbers and reply messages can be formed.

在本實施例中,偵測指令CMD1包括一起始期間TS1、一命令期間TC以及一結束期間TS2。在起始期間TS1與結束期間TS2,導線WR1的位準為低位準,並且導線WR1為低位準的持續時間達一預設時間。因此,從屬裝置SL1根據命令期間 TC裡的脈衝而動作。在一可能實施例中,從屬裝置SL1根據命令期間TC裡的脈衝數量或是佔空比,得知指令INT的種類。 In this embodiment, the detection command CMD1 includes a start period T S1 , a command period T C and an end period T S2 . During the start period T S1 and the end period T S2 , the level of the wire WR1 is a low level, and the duration of the wire WR1 is a low level for a preset time. Therefore, the slave device SL 1 operates according to the pulse in the command period T C. In a possible embodiment, the slave device SL 1 knows the type of the command INT according to the number of pulses or the duty cycle in the command period T C.

識別編號ID1包括一分配期間TQ以及一結束期間TS3。在分配期間TQ,主控裝置MS發出複數脈衝,該等脈衝用以表示一識別編號。在結束期間TS3,導線WR1的位準為低位準,並且導線WR1為低位準的持續時間達預設時間。因此,從屬裝置SL1根據分配期間TQ裡的脈衝,得知並儲存一識別編號。 The identification number ID1 includes an allocation period T Q and an end period T S3 . During the distribution period T Q , the master control device MS sends out multiple pulses, which are used to represent an identification number. During the end period T S3 , the level of the wire WR1 is a low level, and the duration of the wire WR1 is a low level for a preset time. Therefore, the slave device SL 1 knows and stores an identification number based on the pulse in the allocation period T Q.

在主控裝置MS發出識別編號ID1後,主控裝置MS等待一段時間,再接收從屬裝置SL1的回覆訊息RS1。在一可能實施例中,當主控裝置MS等待回覆訊息RS1時,導線WR1的位準為高位準。在其它實施例中,在結束期間TS3之前,回覆訊息RS1已就緒。因此,在結束期間TS3後,從屬裝置SL1立即提供回覆訊息RS1。在本實施例中,在一回覆期間TR,從屬裝置SL1根據本身的功能編號,產生複數脈衝予主控裝置MS。 After issuing the identification number ID1 master device MS, the MS waits a period of time the master device, the slave device and then receiving a reply message SL of RS 1. In a possible embodiment, when the main control device MS waits for the reply message RS 1 , the level of the wire WR1 is high. In other embodiments, before the end period T S3 , the reply message RS 1 is ready. Therefore, after the end period T S3 , the slave device SL 1 immediately provides the reply message RS 1 . In this embodiment, during a reply period TR , the slave device SL 1 generates a plurality of pulses to the master device MS according to its own function number.

第5圖為本發明之主控裝置與從屬裝置之間的連接示意圖。為方便說明,第5圖僅顯示從屬裝置SL1~SL3。如圖所示,主控裝置MS具有一控制晶片511以及一連接介面512。控制晶片511透過連接介面512輸出控制信號SC1、指令INT以及操作電壓VDD及GND。 Figure 5 is a schematic diagram of the connection between the master device and the slave device of the present invention. For convenience of explanation, FIG. 5 only shows the slave devices SL 1 ˜SL 3 . As shown in the figure, the main control device MS has a control chip 511 and a connection interface 512. The control chip 511 outputs the control signal SC 1 , the command INT, and the operating voltages VDD and GND through the connection interface 512.

從屬裝置SL1包括一控制晶片522以及連接介面521及523。連接介面521用以耦接主控裝置MS。連接介面523用以耦接從屬裝置SL2。在本實施例中,控制晶片522具有輸入輸出墊A1、B1、C1、D1及E1。輸入輸出墊A1用以接收控制信 號SC1。輸入輸出墊B1用以接收指令INT,並輸出回覆訊息RS1。輸入輸出墊C1用以接收操作電壓VDD。輸入輸出墊D1用以接收操作電壓GND。輸入輸出墊E1用以輸出控制信號SC2The slave device SL 1 includes a control chip 522 and connection interfaces 521 and 523. The connection interface 521 is used to couple the main control device MS. The connection interface 523 is used to couple the slave device SL 2 . In this embodiment, the control chip 522 has input and output pads A1, B1, C1, D1, and E1. The input-output pad A1 is used to receive the control signal SC 1 . The input / output pad B1 is used to receive the command INT and output a reply message RS 1 . The input-output pad C1 is used to receive the operating voltage VDD. The input / output pad D1 is used to receive the operating voltage GND. The input / output pad E1 is used to output the control signal SC 2 .

從屬裝置SL2包括一控制晶片532以及連接介面531及533。連接介面531用以耦接從屬裝置SL1。連接介面533用以耦接從屬裝置SL3。由於從屬裝置SL2的內部架構與從屬裝置SL1的內部架構相似,故不再贅述。 The slave device SL 2 includes a control chip 532 and connection interfaces 531 and 533. The connection interface 531 is used to couple the slave device SL 1 . The connection interface 533 is used to couple the slave device SL 3 . Since the internal architecture of the slave SL 2 and SL internal architecture of a slave device are similar, and therefore will not be repeated.

從屬裝置SL3包括一控制晶片542以及連接介面541及543。連接介面541用以耦接從屬裝置SL2。連接介面543用以耦接下一級的從屬裝置(如SL4)。由於從屬裝置SL3的內部架構與從屬裝置SL1的內部架構相似,故不再贅述。 The slave device SL 3 includes a control chip 542 and connection interfaces 541 and 543. The connection interface 541 is used to couple the slave device SL 2 . The connection interface 543 is used to couple the slave device of the next stage (such as SL 4 ). Since the internal architecture of the slave SL 3 and SL internal architecture of a slave device are similar, and therefore will not be repeated.

主控裝置MS根據串接的從屬裝置的功能編號,執相對應的動作。當不同功能編號的從屬裝置串接在一起時,主控裝置MS便可產生不同的行為。再者,主控裝置MS僅利用單一導線(如WR1)與多個串接的從屬裝置溝通,故可簡化主控裝置MS與從屬裝置之間的連接介面。 The master device MS performs the corresponding action according to the function numbers of the slave devices connected in series. When the slave devices with different function numbers are connected in series, the master control device MS can generate different behaviors. Furthermore, the master control device MS only uses a single wire (such as WR1) to communicate with multiple serially connected slave devices, so the connection interface between the master control device MS and the slave devices can be simplified.

本發明之方法,或特定型態或其部份,可以以程式碼的型態存在。程式碼可儲存於實體媒體,如軟碟、光碟片、硬碟、或是任何其他機器可讀取(如電腦可讀取)儲存媒體,亦或不限於外在形式之電腦程式產品,其中,當程式碼被機器,如電腦載入且執行時,此機器變成用以參與本發明之裝置。程式碼也可透過一些傳送媒體,如電線或電纜、光纖、或是任何傳輸型態進行傳送,其中,當程式碼被機器,如電腦接收、載入且執行時,此機器變成用以參與本發明之裝置。當在一般用 途處理單元實作時,程式碼結合處理單元提供一操作類似於應用特定邏輯電路之獨特裝置。 The method of the present invention, or a specific type or part thereof, may exist in the form of code. The program code may be stored on a physical medium, such as a floppy disk, a CD-ROM, a hard disk, or any other machine-readable (such as a computer-readable) storage medium, or it is not limited to an external form of computer program product. When the program code is loaded and executed by a machine, such as a computer, the machine becomes a device for participating in the present invention. The code can also be transmitted through some transmission media, such as wire or cable, optical fiber, or any type of transmission. When the code is received, loaded, and executed by a machine, such as a computer, the machine becomes Invented device. When used in general When the processing unit is implemented, the code combined with the processing unit provides a unique device that operates similar to the application of specific logic circuits.

除非另作定義,在此所有詞彙(包含技術與科學詞彙)均屬本發明所屬技術領域中具有通常知識者之一般理解。此外,除非明白表示,詞彙於一般字典中之定義應解釋為與其相關技術領域之文章中意義一致,而不應解釋為理想狀態或過分正式之語態。 Unless otherwise defined, all vocabulary (including technical and scientific vocabulary) herein belongs to the general understanding of those with ordinary knowledge in the technical field to which the present invention belongs. In addition, unless clearly stated, the definition of vocabulary in a general dictionary should be interpreted to be consistent with the meaning in articles in the related technical field, and should not be interpreted as an ideal state or an excessively formal voice.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾。舉例來,本發明實施例所系統、裝置或是方法可以硬體、軟體或硬體以及軟體的組合的實體實施例加以實現。因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Anyone who has ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. . For example, the system, device, or method in the embodiments of the present invention may be implemented by physical embodiments of hardware, software, or a combination of hardware and software. Therefore, the scope of protection of the present invention shall be subject to the scope defined in the appended patent application.

Claims (12)

一種控制方法,適用於一主控裝置,該主控裝置耦接一第一從屬裝置,該控制方法包括:發出一第一偵測指令以及一第一識別編號予該第一從屬裝置;接收該第一從屬裝置產生的一第一回覆訊息,用以得知該第一從屬裝置所儲存的一第一功能編號;判斷該第一從屬裝置是否串接一第二從屬裝置;當該第一從屬裝置未串接該第二從屬裝置時,該主控裝置根據該第一功能編號執行一第一特定動作,或是命令該第一從屬裝置執行該第一特定動作;以及當該第一從屬裝置串接該第二從屬裝置時,該主控裝置發出一第二偵測指令以及一第二識別編號予該第二從屬裝置,並接收該第二從屬裝置產生的一第二回覆訊息,用以得知該第二從屬裝置所儲存的一第二功能編號。A control method is suitable for a master control device. The master control device is coupled to a first slave device. The control method includes: issuing a first detection command and a first identification number to the first slave device; receiving the A first reply message generated by the first slave device to know a first function number stored by the first slave device; determine whether the first slave device is serially connected to a second slave device; when the first slave device When the device is not serially connected to the second slave device, the master device performs a first specific action according to the first function number, or commands the first slave device to perform the first specific action; and when the first slave device When the second slave device is connected in series, the master device sends a second detection command and a second identification number to the second slave device, and receives a second reply message generated by the second slave device for Learn a second function number stored in the second slave device. 如申請專利範圍第1項所述之控制方法,其中當該第一從屬裝置串接該第二從屬裝置時,該主控裝置根據該第一功能編號執行該第一特定動作,並根據該第二功能編號執行一第二特定動作。The control method as described in item 1 of the patent application scope, wherein when the first slave device is serially connected to the second slave device, the master control device performs the first specific action according to the first function number, and according to the first The two function numbers perform a second specific action. 如申請專利範圍第1項所述之控制方法,其中當該第一從屬裝置串接該第二從屬裝置時,該主控裝置命令要求該第一從屬裝置執行該第一特定動作,並且要求該第二從屬裝置執行一第二特定動作。The control method as described in item 1 of the patent application scope, wherein when the first slave device is serially connected to the second slave device, the master device command requests the first slave device to perform the first specific action, and requires the The second slave device performs a second specific action. 如申請專利範圍第1項所述之控制方法,其中該主控裝置係根據該第一回覆訊息的一特定位元的數值,判斷該第一從屬裝置是否串接該第二從屬裝置。The control method as described in item 1 of the patent application scope, wherein the master device determines whether the first slave device is connected in series with the second slave device according to the value of a specific bit of the first reply message. 如申請專利範圍第4項所述之控制方法,其中當該特定位元的數值等於一預設值時,表示該第一從屬裝置串接該第二從屬裝置,當該特定位元的數值不等於該預設值時,表示該第一從屬裝置未串接該第二從屬裝置。The control method as described in item 4 of the patent application scope, wherein when the value of the specific bit is equal to a preset value, it means that the first slave device is connected in series with the second slave device, when the value of the specific bit is not When it is equal to the preset value, it means that the first slave device is not connected in series with the second slave device. 如申請專利範圍第5項所述之控制方法,其中當第一從屬裝置提供該第一回覆訊息予該主控裝置後,該第一從屬裝置不根據該第二偵測指令而動作。The control method as described in item 5 of the patent application scope, wherein when the first slave device provides the first reply message to the master device, the first slave device does not act according to the second detection instruction. 如申請專利範圍第6項所述之控制方法,其中當該第二從屬裝置未串接一第三從屬裝置並且該主控裝置接收到該第二功能編號時,該主控裝置發出一偵測停止指令,使得該第一及第二從屬裝置根據該主控裝置所發出的指令而動作。The control method as described in item 6 of the patent application scope, wherein when the second slave device is not connected to a third slave device and the master control device receives the second function number, the master control device issues a detection The stop command causes the first and second slave devices to act according to the command issued by the master control device. 如申請專利範圍第7項所述之控制方法,更包括:該主控裝置發出一詢問指令,用以詢問該第一及第二從屬裝置的狀態。The control method described in item 7 of the patent application scope further includes: the master control device issues an inquiry command to inquire about the status of the first and second slave devices. 如申請專利範圍第8項所述之控制方法,其中當一觸發事件發生在該第一或第二從屬裝置上時,該主控裝置執行一第三特定動作,或是命令該第一或第二從屬裝置執行該第三特定動作。The control method as described in item 8 of the patent application scope, wherein when a trigger event occurs on the first or second slave device, the master device performs a third specific action, or commands the first or second The two slave devices perform the third specific action. 一種控制方法,適用於一第一從屬裝置,該第一從屬裝置耦接一主控裝置,該控制方法,包括:接收一偵測指令以及一識別編號;判斷一第二從屬裝置是否存在,其中當該第二從屬裝置存在時,該第一從屬裝置忽略該主控裝置所發出的命令,並提供一控制信號予該第二從屬裝置;以及提供一第一回覆訊息予該主控裝置。A control method is applicable to a first slave device. The first slave device is coupled to a master control device. The control method includes: receiving a detection command and an identification number; determining whether a second slave device exists, wherein When the second slave device exists, the first slave device ignores the command issued by the master device and provides a control signal to the second slave device; and provides a first reply message to the master device. 如申請專利範圍第10項所述之控制方法,其中當該第一從屬裝置接收到一偵測停止指令時,該第一從屬裝置根據該主控裝置所發出的命令而動作。The control method as described in item 10 of the patent application range, wherein when the first slave device receives a detection stop instruction, the first slave device acts according to the command issued by the master control device. 如申請專利範圍第11項所述之控制方法,其中當該第一從屬裝置接收到一詢問指令時,該第一從屬裝置判斷一觸發事件是否發生,當該觸發事件發生時,該第一從屬裝置產生一第二回覆訊息,該主控裝置根據該第二回覆訊息執行一特定動作,或是命令該第一從屬裝置執行該特定動作。The control method as described in item 11 of the patent application scope, wherein when the first slave device receives an inquiry command, the first slave device determines whether a trigger event occurs, and when the trigger event occurs, the first slave The device generates a second reply message, and the master device performs a specific action based on the second reply message, or instructs the first slave device to perform the specific action.
TW107135383A 2018-10-08 2018-10-08 Control Method TWI668632B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
TW107135383A TWI668632B (en) 2018-10-08 2018-10-08 Control Method
CN201811572385.3A CN111008161B (en) 2018-10-08 2018-12-21 Control method
US16/434,487 US10776296B2 (en) 2018-10-08 2019-06-07 Control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107135383A TWI668632B (en) 2018-10-08 2018-10-08 Control Method

Publications (2)

Publication Number Publication Date
TWI668632B true TWI668632B (en) 2019-08-11
TW202014881A TW202014881A (en) 2020-04-16

Family

ID=68316502

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107135383A TWI668632B (en) 2018-10-08 2018-10-08 Control Method

Country Status (3)

Country Link
US (1) US10776296B2 (en)
CN (1) CN111008161B (en)
TW (1) TWI668632B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114261307B (en) * 2021-12-31 2024-02-02 浙江吉利控股集团有限公司 Battery box identification method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090144471A1 (en) * 2007-12-04 2009-06-04 Holylite Microelectronics Corp. Serial bus device with address assignment by master device
TW201407359A (en) * 2012-08-06 2014-02-16 Acer Inc Daisy-chained apparatus and system thereof
TW201430568A (en) * 2006-05-23 2014-08-01 Mosaid Technologies Inc Apparatus and method for establishing device identifiers for serially interconnected devices
TWI582596B (en) * 2015-12-18 2017-05-11 視動自動化科技股份有限公司 Communication system with multiple serial ports for automatically identifying device types and communication protocols and method thereof

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6321282B1 (en) * 1999-10-19 2001-11-20 Rambus Inc. Apparatus and method for topography dependent signaling
JP4291505B2 (en) * 2000-10-30 2009-07-08 富士通マイクロエレクトロニクス株式会社 Semiconductor memory device
EP2183676A1 (en) * 2007-07-20 2010-05-12 Nxp B.V. Automatic address assignment for communication bus
CN102110068B (en) * 2009-12-29 2014-03-19 财团法人工业技术研究院 Serially connectable sequence bus device and management method and serial connection method thereof
JP5593931B2 (en) * 2010-07-30 2014-09-24 セイコーエプソン株式会社 Printing control apparatus, printing apparatus, and information providing method in printing apparatus
CN104038565A (en) * 2013-03-05 2014-09-10 中怡(苏州)科技有限公司 Multi-device series system and operation method thereof
CN103454996B (en) * 2013-08-23 2016-01-27 广州视睿电子科技有限公司 Host slave system and control method thereof
JP6388816B2 (en) * 2014-10-28 2018-09-12 富士通コンポーネント株式会社 KVM switch
CN104553850B (en) * 2014-12-25 2017-04-05 郑州精益达汽车零部件有限公司 A kind of data acquisition unit of battery management system
CN105262170A (en) * 2015-10-29 2016-01-20 杭州电子科技大学 Distributed power battery pack monitoring device
TWI567561B (en) * 2015-11-26 2017-01-21 新唐科技股份有限公司 Bus system
JP2017111729A (en) * 2015-12-18 2017-06-22 ルネサスエレクトロニクス株式会社 Host controller and program to be run by host controller
CN105701038B (en) * 2016-01-11 2019-02-05 华为技术有限公司 A kind of cascade chip starting method and relevant apparatus
CN207070089U (en) * 2017-06-05 2018-03-02 艾普斯电源(天津)有限公司 A kind of distributed monitoring system based on SCPI agreements

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201430568A (en) * 2006-05-23 2014-08-01 Mosaid Technologies Inc Apparatus and method for establishing device identifiers for serially interconnected devices
US20090144471A1 (en) * 2007-12-04 2009-06-04 Holylite Microelectronics Corp. Serial bus device with address assignment by master device
TW201407359A (en) * 2012-08-06 2014-02-16 Acer Inc Daisy-chained apparatus and system thereof
TWI582596B (en) * 2015-12-18 2017-05-11 視動自動化科技股份有限公司 Communication system with multiple serial ports for automatically identifying device types and communication protocols and method thereof

Also Published As

Publication number Publication date
CN111008161B (en) 2021-04-27
TW202014881A (en) 2020-04-16
US10776296B2 (en) 2020-09-15
US20200110719A1 (en) 2020-04-09
CN111008161A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
WO2017084400A1 (en) Nvme networked storage implementation method, terminal, server, and system
TWI668632B (en) Control Method
JPS62186697A (en) Oscillator driver for programmable and reconstructable remote control transmitter
US20190361833A1 (en) Bus system
KR20100081829A (en) Hybrid storage device and resource sharing method thereof
TWI659302B (en) Hdd monitoring system
JP5054106B2 (en) Test equipment and circuit equipment
TW201627868A (en) Bidirectional communication method between a master terminal and a slave terminal on a single transmission line
EP2817724B1 (en) Input decoder
JP2000293485A (en) Communication interface
US6854027B2 (en) Hard disk device capable of detecting channels of a host to which hard disk controllers belong
TW201932716A (en) System and method for controlling fan
US9622313B2 (en) Driver circuit device
TWI725786B (en) Slave device, master device and data transfer method
TWI662412B (en) Light bar recognition system and recognition method
US8127108B2 (en) Apparatus, system and method for prefetching data in bus system
TWI772069B (en) Illumination control system and method of gaming peripherals
KR20160043378A (en) Apparatus and method for updating vehicle device having multiple modules
CN110043496A (en) Fan control system and method
CN101609405A (en) Computer starting-up selection device, computer starting-up selection method and computer system
JP3244732B2 (en) Image recording apparatus, printer engine unit of image recording apparatus, and electronic apparatus
TWI582587B (en) HDD Interface Device
KR101832168B1 (en) Method for distinguishing operation of ir remote control employing time sequential change information of power consumption, apparatus and computer-readable recording medium using the same
TW584839B (en) Improved encoding method for an optical recorder
JP2023093253A (en) lighting control system and slave