TWI494026B - One wire transmission device with error report and one wire cascade transmission device with error report - Google Patents

One wire transmission device with error report and one wire cascade transmission device with error report Download PDF

Info

Publication number
TWI494026B
TWI494026B TW101146228A TW101146228A TWI494026B TW I494026 B TWI494026 B TW I494026B TW 101146228 A TW101146228 A TW 101146228A TW 101146228 A TW101146228 A TW 101146228A TW I494026 B TWI494026 B TW I494026B
Authority
TW
Taiwan
Prior art keywords
error
mode
line transmission
transmission device
switch
Prior art date
Application number
TW101146228A
Other languages
Chinese (zh)
Other versions
TW201424461A (en
Inventor
Rong Tsung Lin
Shun Ching Hsieh
Original Assignee
Macroblock Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Macroblock Inc filed Critical Macroblock Inc
Priority to TW101146228A priority Critical patent/TWI494026B/en
Publication of TW201424461A publication Critical patent/TW201424461A/en
Application granted granted Critical
Publication of TWI494026B publication Critical patent/TWI494026B/en

Links

Description

具錯誤回報單線傳輸裝置與串聯具錯誤回報單線傳輸裝置Single-line transmission device with error return and single-line transmission device with error return

一種訊號單線傳輸裝置,特別有關於一種適於單線堆疊串列之運用具錯誤回報單線傳輸裝置與串聯具錯誤回報單線傳輸裝置。The invention relates to a signal single-line transmission device, and particularly relates to a single-line transmission device with error return and a single-line transmission device with error return suitable for single-line stacking.

近年來,利用發光二極體作為建築物的外觀照明、裝置照明或情境照明等照明設備之趨勢亦愈加明顯。舉例來說,由於紅、藍、綠三色之發光二極體所形成之像素叢集(RGB cluster),具有相當多樣性的光影變化效果。因此,像素叢集多被用來針對不同的照明體進行串接,以形成多級串列燈點之條狀屏、窗簾屏、或洗牆燈等,應用於長距離燈串之用途。In recent years, the trend of using light-emitting diodes as lighting devices for exterior lighting, device lighting or situation lighting of buildings has become more apparent. For example, due to the RGB cluster formed by the red, blue, and green LEDs, there is a considerable diversity of light and shadow effects. Therefore, the pixel clusters are often used to serially connect different illuminating bodies to form a strip screen of a multi-level tandem lamp point, a curtain screen, or a wall washer, etc., and are used for long-distance light strings.

由於此類照明設備,大都根據建築物的外觀而設計,因此當所需照明的建築物外觀範圍越大,或照明體設計的複雜度越高的時候,則必須串接較多數量的燈點、發光二極體,以形成較長串之像素叢集,進而達到較佳的照明效果。Since such lighting equipment is mostly designed according to the appearance of the building, when the appearance of the building to be illuminated is larger, or the complexity of the lighting design is higher, a larger number of lighting points must be connected in series. Light-emitting diodes are formed to form a long string of pixel clusters to achieve better illumination.

然而,在此種長距離串列像素叢集中,用來驅動各級燈點之控制訊號並非單一總體訊號(Global signal)。也就是說,各級燈點之控制訊號來源並不是相同訊號源,皆是根據前一級燈點輸出之控制訊號而來,因此,串聯第二級輸入的控制訊號由串聯第一級輸出產生,串聯第三級輸入的控制訊號由串聯第二級輸出產生,其餘以此類推。However, in such long-distance tandem pixel clusters, the control signals used to drive the lamp points at each level are not a single global signal. That is to say, the control signal sources of the lamp points of the various levels are not the same signal source, and are all based on the control signals outputted by the previous stage lamp points. Therefore, the control signals of the series second stage input are generated by the series first stage output. The control signal of the serial input of the third stage is generated by the second stage output of the series, and so on.

然而,為了可以得知各級燈點的控制電路的狀態資訊,則在控制訊號對各級燈點進行資料更新達預設次數後,不論是否有控制電路發生錯誤,都會要求各級燈點的控制電路回傳各自的狀態資訊,且這些狀態資訊會依序組成串列封包回傳,以得知這些控制電路的運作狀態。然而,對單線半雙工傳輸而言,若串聯的控制電路數量越多,則狀態資訊所回傳的時間也會增加,相對的單線半雙工傳輸通路就會被回傳動作佔據相當長的時間,也因此間接使得對各級燈點的資料更新上所能花的時間勢必會相對減少,因而造成各級燈點的資料更新率下降。However, in order to know the status information of the control circuit of the lamp points at all levels, after the control signal updates the data points of the lamp points for a preset number of times, whether there is an error in the control circuit or not, the lamp points of each level are required. The control circuit returns the respective status information, and the status information is sequentially composed of the serial packet back-transmission to know the operational status of the control circuits. However, for single-line half-duplex transmission, if the number of control circuits connected in series increases, the time of returning status information will also increase, and the relative single-line half-duplex transmission path will be occupied by the returning operation for a long time. Time, and indirectly, inevitably, the time spent on updating the data of the lamp points at all levels will inevitably decrease, resulting in a decrease in the rate of data update at all levels.

鑒於以上的問題,本發明在於提供一種具錯誤回報單線傳輸裝置與串聯具錯誤回報單線傳輸裝置,藉以避免大量降低資料更新率。In view of the above problems, the present invention provides a single-line transmission device with error return and a single-line transmission device with error return in order to avoid a large reduction in data update rate.

本發明所揭露之一種具錯誤回報單線傳輸裝置,此具錯誤回報單線傳輸裝置適於單線半雙工堆疊(Cascade)串聯的架構。其中具錯誤回報單線傳輸裝置具有第一端與第二端,當具錯誤回報單線傳輸裝置處於第一模式時,第一端接收具有第一切換訊號的第一串列封包,具錯誤回報單線傳輸裝置由第一串列封包中取得對應的更新資料,再將串列封包經由第二端輸出,並在具錯誤回報單線傳輸裝置接收完第一串列封包後,依據第一切換訊號,具錯誤回報單線傳輸裝置由第一模式切換至第二模式,當具錯誤回報單線傳輸裝置處於第二模式時,若具錯誤回報單線傳輸裝置發 生錯誤狀態,具錯誤回報單線傳輸裝置產生第一錯誤旗標符號,且第一錯誤旗標符號經由第一端輸出。當具錯誤回報單線傳輸裝置處於第二模式時,若具錯誤回報單線傳輸裝置沒有發生錯誤狀態,具錯誤回報單線傳輸裝置不產生任何第一錯誤旗標符號。The invention discloses a false-return single-line transmission device, which is suitable for a single-line half-duplex stacking (Cascade) series architecture. The single-line transmission device with error return has a first end and a second end. When the error-returning single-line transmission device is in the first mode, the first end receives the first serial packet with the first switching signal, and has a false return single-line transmission. The device obtains the corresponding update data from the first serial packet, and then outputs the serial packet through the second end, and after receiving the first serial packet in the error return single line transmission device, according to the first switching signal, having an error Returning the single-line transmission device to switch from the first mode to the second mode, and when the error-returning single-line transmission device is in the second mode, if the error is returned to the single-line transmission device The error state, the error return single line transmission device generates a first error flag symbol, and the first error flag symbol is output via the first end. When the erroneous return single line transmission device is in the second mode, if the erroneous return single line transmission device does not have an error state, the erroneous return single line transmission device does not generate any first error flag symbol.

在一實施例中,前述當具錯誤回報單線傳輸裝置處於第二模式時,若具錯誤回報單線傳輸裝置由第二端有接收到第二錯誤旗標符號,具錯誤回報單線傳輸裝置將第二錯誤旗標符號轉為第一錯誤旗標符號再由第一端輸出,其中第二錯誤旗標符號為與第二端耦接之下一級之具錯誤回報單線傳輸裝置產生的第一錯誤旗標符號。In an embodiment, when the error reporting single line transmission device is in the second mode, if the error reporting single line transmission device receives the second error flag symbol from the second end, the error reporting single line transmission device will be the second The error flag symbol is converted into a first error flag symbol and then output by the first end, wherein the second error flag symbol is a first error flag generated by the error reporting single line transmission device coupled to the second end. symbol.

在一實施例中,前述具錯誤回報單線傳輸裝置由第一端輸出第一錯誤旗標符號後會停止操作,直到具錯誤回報單線傳輸裝置進行重置並回到第一模式為止。In an embodiment, the error reporting single line transmission device stops operating after outputting the first error flag symbol by the first end until the error reporting single line transmission device resets and returns to the first mode.

在一實施例中,前述具錯誤回報單線傳輸裝置回到第一模式時,具錯誤回報單線傳輸裝置更接收具有第二切換訊號的第二串列封包,且在接收完第二串列封包後,依據第二切換訊號,以由第一模式切換至第三模式,當具錯誤回報單線傳輸裝置處於第三模式時,具錯誤回報單線傳輸裝置產生第一狀態資訊,且將由第二端接收到的編碼訊號作為第二狀態資訊,具錯誤回報單線傳輸裝置將第一狀態資訊與第二狀態資訊編碼後,以產生編碼訊號,且將編碼訊號由第一端輸出,其中第二狀態資訊為與第二端耦接之下一級之具錯誤回報單線傳輸裝置之第一端輸出的編碼訊號。In an embodiment, when the error reporting single-line transmission device returns to the first mode, the error-returning single-line transmission device further receives the second serial packet with the second switching signal, and after receiving the second serial packet According to the second switching signal, to switch from the first mode to the third mode, when the error reporting single line transmission device is in the third mode, the error reporting single line transmission device generates the first state information, and is received by the second end. The encoded signal is used as the second status information, and the error reporting unit transmits the first status information and the second status information to generate the encoded signal, and outputs the encoded signal from the first end, wherein the second status information is The second end is coupled to the coded signal outputted by the first end of the faulty single line transmission device.

在一實施例中,前述第一錯誤旗標符號的資料量小於第一狀態資訊與第二狀態資訊的資料量。In an embodiment, the data amount of the first error flag symbol is smaller than the data amount of the first status information and the second status information.

在一實施例中,前述具錯誤回報單線傳輸裝置由第一端輸出完編碼訊號後會停止操作,直到具錯誤回報單線傳輸裝置進行重置並回到第一模式為止。In an embodiment, the erroneous-return single-line transmission device stops operating after outputting the encoded signal by the first end until the erroneous return single-line transmission device resets and returns to the first mode.

在一實施例中,前述錯誤狀態包括溫度異常、電流異常、電壓源開路、電壓源短路或斷路偵測異常。In an embodiment, the error state includes a temperature abnormality, a current abnormality, a voltage source open circuit, a voltage source short circuit, or an open circuit detection abnormality.

在一實施例中,前述第一狀態資訊與第二狀態資訊包括溫度、電流、電壓源的狀態資訊。In an embodiment, the first state information and the second state information include state information of temperature, current, and voltage source.

在一實施例中,前述具錯誤回報單線傳輸裝置的第一端與第二端於預設時間內沒有任何訊號傳輸,具錯誤回報單線傳輸裝置會進行重置。In an embodiment, the first end and the second end of the erroneously-reported single-line transmission device do not transmit any signal within a preset time, and the erroneous-return single-line transmission device resets.

在一實施例中,前述具錯誤回報單線傳輸裝置包括資料處理器、第一開關、第二開關、偵測器、錯誤旗標產生器、第三開關與第四開關。資料處理器耦接第一端與第二端,用以在具錯誤回報單線傳輸裝置處於第一模式時,資料處理器經由第一端接收具有第一切換訊號的第一串列封包,並由第一串列封包中取得對應的更新資料以及擷取出第一切換訊號,且將第一串列封包經由第二端輸出,且資料處理器在接收完第一串列封包後,依據第一切換訊號,以由第一模式切換至第二模式。第一開關耦接於資料處理器與第一端之間,且第一開關依據第一切換訊號進行切換,第一開關只於第一模式時導通,第一開關於第二模式時斷開。第二 開關耦接於資料處理器與第二端之間,且第二開關依據第一切換訊號進行切換,第二開關只於第一模式時導通,第二開關於第二模式時斷開。In an embodiment, the foregoing error-reward single-line transmission device includes a data processor, a first switch, a second switch, a detector, an error flag generator, a third switch, and a fourth switch. The data processor is coupled to the first end and the second end, and when the error reporting linear transmission device is in the first mode, the data processor receives the first serial packet having the first switching signal via the first end, and is configured by Obtaining the corresponding update data in the first serial packet and extracting the first switching signal, and outputting the first serial packet through the second end, and after receiving the first serial packet, the data processor is switched according to the first Signal to switch from the first mode to the second mode. The first switch is coupled between the data processor and the first end, and the first switch is switched according to the first switching signal, the first switch is turned on only in the first mode, and the first switch is turned off in the second mode. second The switch is coupled between the data processor and the second end, and the second switch is switched according to the first switching signal, the second switch is turned on only in the first mode, and the second switch is turned off in the second mode.

偵測器用以偵測具錯誤回報單線傳輸裝置是否發生錯誤狀態,而據以產生偵測訊號。錯誤旗標產生器耦接第一端、第二端與偵測器,用以依據偵測訊號,而決定是否產生第一錯誤旗標符號,且第一錯誤旗標符號由第一端輸出。或是,若錯誤旗標產生器由第二端有接收到第二錯誤旗標符號,則將第二錯誤旗標符號轉為第一錯誤旗標符號再由第一端輸出。錯誤旗標產生器在產生完任一第一錯誤旗標符號後會停止由第一端輸出任何訊號,直到該具錯誤回報單線傳輸裝置被重置為止,其中第二錯誤旗標符號由第二端耦接之下一級之具錯誤回報單線傳輸裝置之第一端產生的第一錯誤旗標符號。第三開關耦接於錯誤旗標產生器與第一端之間,且第三開關依據第一切換訊號進行切換,第三開關只於第二模式時導通,第三開關於第一模式時斷開。第四開關耦接於錯誤旗標產生器與第二端之間,且第四開關依據第一切換訊號進行切換,第四開關只於第二模式時導通,第四開關於第一模式時斷開。The detector is configured to detect whether an error state has occurred in the single-line transmission device with a false return, and accordingly generate a detection signal. The error flag generator is coupled to the first end, the second end, and the detector, and is configured to determine whether to generate the first error flag symbol according to the detection signal, and the first error flag symbol is output by the first end. Alternatively, if the error flag generator receives the second error flag symbol from the second end, the second error flag symbol is converted to the first error flag symbol and then output by the first end. The error flag generator stops outputting any signal from the first end after generating any first error flag symbol until the error reporting single line transmission device is reset, wherein the second error flag symbol is second The first error flag of the first end of the single-line transmission device with the wrong return is coupled to the next stage. The third switch is coupled between the error flag generator and the first end, and the third switch is switched according to the first switching signal, the third switch is only turned on in the second mode, and the third switch is off in the first mode open. The fourth switch is coupled between the error flag generator and the second end, and the fourth switch is switched according to the first switching signal, the fourth switch is only turned on in the second mode, and the fourth switch is off in the first mode. open.

在一實施例中,前述具錯誤回報單線傳輸裝置更包括狀態資訊產生器、狀態處理器、第五開關與第六開關。狀態資訊產生器用以產生第一狀態資訊,第一狀態資訊為具錯誤回報單線傳輸裝置的詳細狀態資訊。狀態處理器耦接第一端、第二端與狀態資訊 產生器,狀態處理器接收第一狀態資訊,並由第二端接收第二狀態資訊,且狀態處理器將第一狀態資訊與第二狀態資訊編碼後,以產生編碼訊號,且編碼訊號由第一端輸出,其中第二狀態資訊由下一級之具錯誤回報單線傳輸裝置之第一端輸出的編碼訊號。In an embodiment, the foregoing error-reward single-line transmission device further includes a status information generator, a status processor, a fifth switch, and a sixth switch. The status information generator is configured to generate first status information, and the first status information is detailed status information of the single-line transmission device with error reporting. The state processor is coupled to the first end, the second end, and status information a generator, the state processor receives the first state information, and the second state receives the second state information, and the state processor encodes the first state information and the second state information to generate the encoded signal, and the encoded signal is encoded by One end outputs, wherein the second status information is encoded by the first stage of the next stage of the error signal that is output by the first end of the single line transmission device.

第五開關耦接於狀態處理器與第一端之間,第五開關依據第二切換訊號進行切換,第五開關只於第三模式時導通,第五開關於第一模式、第二模式時斷開。第六開關耦接於狀態處理器與第二端之間,第六開關依據第二切換訊號進行切換,第六開關只於第三模式時導通,第六開關於第一模式、第二模式時斷開。其中,第二切換訊號包括在第二串列封包中,而資料處理器於第一模式接收第二串列封包,並擷取出第二切換訊號,且將第二串列封包經由該第二端輸出,資料處理器在接收完第二串列封包後,依據第二切換訊號,以由第一模式切換至第三模式,且第一開關、第二開關、第三開關與第四開關更於第三模式斷開。The fifth switch is coupled between the state processor and the first end, the fifth switch is switched according to the second switching signal, the fifth switch is turned on only in the third mode, and the fifth switch is in the first mode and the second mode. disconnect. The sixth switch is coupled between the state processor and the second end, the sixth switch is switched according to the second switching signal, the sixth switch is turned on only in the third mode, and the sixth switch is in the first mode and the second mode. disconnect. The second switching signal is included in the second serial packet, and the data processor receives the second serial packet in the first mode, and extracts the second switching signal, and sends the second serial packet to the second end. Output, after receiving the second serial packet, the data processor switches from the first mode to the third mode according to the second switching signal, and the first switch, the second switch, the third switch, and the fourth switch are further The third mode is disconnected.

在一實施例中,前述狀態處理器包括解碼器、緩衝器與編碼器。解碼器耦接第二端,用以接收第二狀態資訊,並將第二狀態資訊進行解碼,以產生解碼訊號。緩衝器耦接解碼器,用以接收解碼訊號,並將解碼訊號進行緩衝,以產生緩衝訊號。編碼器耦接狀態資訊產生器、緩衝器與第一端,用以接收第一狀態資訊與緩衝訊號,並將第一狀態資訊與緩衝訊號進行編碼,以產生編碼訊號,且編碼訊號由第一端輸出。In an embodiment, the aforementioned state processor includes a decoder, a buffer, and an encoder. The decoder is coupled to the second end for receiving the second state information, and decoding the second state information to generate the decoded signal. The buffer is coupled to the decoder for receiving the decoded signal and buffering the decoded signal to generate a buffered signal. The encoder is coupled to the state information generator, the buffer, and the first end, and configured to receive the first state information and the buffer signal, and encode the first state information and the buffer signal to generate the encoded signal, and the encoded signal is first. End output.

在一實施例中,前述具錯誤回報單線傳輸裝置會依據第三切 換訊號從第一模式切換到第四模式,且具錯誤回報單線傳輸裝置更能包括第七開關。此第七開關耦接偵測器與錯誤旗標產生器之間,且依據第三切換訊號進行切換,第七開關於第四模式時斷開,第七開關於第一模式、第二模式、第三模式導通。其中,第三切換訊號包括在第三串列封包中。In an embodiment, the foregoing error-return single-line transmission device is based on the third cut. The changeover signal is switched from the first mode to the fourth mode, and the error return single line transmission device can further include the seventh switch. The seventh switch is coupled between the detector and the error flag generator, and is switched according to the third switching signal. The seventh switch is turned off in the fourth mode, and the seventh switch is in the first mode, the second mode, The third mode is turned on. The third switching signal is included in the third serial packet.

並且,第三串列封包帶有多個模式切換資訊,這些模式切換資訊其中之一會對應到具錯誤回報單線傳輸裝置。這些模式切換資訊各自包含的可能是第一切換訊號或第三切換訊號。具錯誤回報單線傳輸裝置的資料處理器可於第一模式從第一端接收到第三串列封包,並從第三串列封包找到屬於此具錯誤回報單線傳輸裝置對應的模式切換資訊,且將第三串列封包經由第二端輸出。Moreover, the third serial packet has a plurality of mode switching information, and one of the mode switching information corresponds to the single-line transmission device with the error return. Each of the mode switching information may include a first switching signal or a third switching signal. The data processor with the error return single line transmission device can receive the third serial packet from the first end in the first mode, and find the mode switching information corresponding to the error return single line transmission device from the third serial packet, and The third serial packet is output via the second end.

若具錯誤回報單線傳輸裝置從第三串列封包中找到的模式切換資訊是第一切換訊號,則具錯誤回報單線傳輸裝置從第一模式切換為第二模式。若具錯誤回報單線傳輸裝置從第三串列封包中找到的模式切換資訊是第三切換訊號,則具錯誤回報單線傳輸裝置從第一模式切換為第四模式。具錯誤回報單線傳輸裝置在第四模式時,第三開關與第四開關導通,且只有錯誤旗標產生器由第二端有接收到第二錯誤旗標符號時,才會將第二錯誤旗標符號轉為第一錯誤旗標符號,再由第一端輸出,否則錯誤旗標產生器不會從第一端輸出任何第一錯誤旗標符號。錯誤旗標產生器在產生完任一第一錯誤旗標符號後,具錯誤回報單線傳輸裝置會停止操作,直到具錯誤回報單線傳輸裝置被重置回第一模式為止,其中 第二錯誤旗標符號由第二端耦接之下一級之具錯誤回報單線傳輸裝置之第一端產生的第一錯誤旗標符號。If the mode switching information found by the erroneous return single line transmission device from the third serial packet is the first switching signal, the erroneous return single line transmission device switches from the first mode to the second mode. If the mode switching information found by the erroneous return single line transmission device from the third serial packet is the third switching signal, the erroneous return single line transmission device switches from the first mode to the fourth mode. When the single-line transmission device is in error, the third switch and the fourth switch are turned on, and only the error flag generator receives the second error flag symbol from the second end, and then the second error flag is The symbol is converted to the first error flag symbol, and then output by the first end, otherwise the error flag generator will not output any first error flag symbol from the first end. After the error flag generator generates any of the first error flag symbols, the error return single line transmission device stops operating until the error return single line transmission device is reset back to the first mode, wherein The second error flag symbol is coupled by the second end to the first error flag symbol generated by the first end of the faulty single line transmission device of the lower level.

在一實施例中,前述具錯誤回報單線傳輸裝置更包括模式控制器。模式控制器耦接資料處理器、第一開關、第二開關、第三開關、第四開關、第五開關、第六開關與第七開關,用以依據資料處理器所擷取出之第一切換訊號、第二切換訊號、或第三切換訊號,控制第一開關、第二開關、第三開關、第四開關、第五開關、第六開關與第七開關切換,以將具錯誤回報單線傳輸裝置由第一模式切換至第二模式、第一模式切換至第三模式或第一模式切換至第四模式。In an embodiment, the aforementioned error-return single-line transmission device further includes a mode controller. The mode controller is coupled to the data processor, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the seventh switch, and is configured to perform the first switching according to the data processor The signal, the second switching signal, or the third switching signal controls the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the seventh switch to switch to transmit a single line with error return The device switches from the first mode to the second mode, the first mode switches to the third mode, or the first mode switches to the fourth mode.

在一實施例中,前述第一錯誤旗標符號的資料量小於第一狀態資訊與第二狀態資訊的資料量。In an embodiment, the data amount of the first error flag symbol is smaller than the data amount of the first status information and the second status information.

在一實施例中,前述錯誤旗標產生器包括檢測器與脈波產生器。檢測器耦接第二端,用以檢測是否有接收第二錯誤旗標符號,以產生檢測訊號。脈波產生器在第二模式時耦接第一端、檢測器與偵測器,依據偵測訊號,以產生第一錯誤旗標符號,或是依據檢測訊號,判斷檢測訊號是否具有第二錯誤旗標符號,並將檢測訊號轉換成第一錯誤旗標符號,再經由第一端輸出。脈波產生器在第四模式時耦接第一端與檢測器,依據檢測訊號,以將檢測訊號轉換成第一錯誤旗標符號,再經由第一端輸出。當脈波產生器產生第一錯誤旗標符號後,該具錯誤回報單線傳輸裝置被重置會停止操作,直到具錯誤回報單線傳輸裝置被重置為止。其中,第 二錯誤旗標符號由第二端耦接之下一級之具錯誤回報單線傳輸裝置第一端產生的第一錯誤旗標符號。In an embodiment, the aforementioned error flag generator includes a detector and a pulse generator. The detector is coupled to the second end for detecting whether the second error flag is received to generate the detection signal. The pulse generator is coupled to the first end, the detector and the detector in the second mode, according to the detection signal, to generate the first error flag symbol, or to determine whether the detection signal has the second error according to the detection signal. The flag symbol is converted into a first error flag symbol and then output through the first end. The pulse generator is coupled to the first end and the detector in the fourth mode, according to the detection signal, to convert the detection signal into the first error flag symbol, and then output through the first end. When the pulse generator generates the first error flag, the error return single line transmission device is reset to stop operation until the error return single line transmission device is reset. Among them, the first The second error flag symbol is coupled by the second end to the first error flag symbol generated by the first end of the faulty single line transmission device.

在一實施例中,前述具錯誤回報單線傳輸裝置更包括重置器。重置器耦接第一端與第二端,用以偵測第一端與第二端的訊號傳輸狀態,且當訊號傳輸狀態為第一端與第二端於預設時間內沒有接收或傳輸任何訊號時,則重置具錯誤回報單線傳輸裝置回到第一模式。In an embodiment, the aforementioned error-returning single-line transmission device further includes a resetter. The resetter is coupled to the first end and the second end, and is configured to detect a signal transmission state of the first end and the second end, and when the signal transmission state is that the first end and the second end are not received or transmitted within a preset time When any signal is received, the error return single-line transmission device is returned to the first mode.

在一實施例中,前述具錯誤回報單線傳輸裝置可在第一模式下接收第四串列封包,且此第四串列封包包括前述更新資料,但不帶有第一切換訊號、第二切換訊號、或第三切換訊號,並將此第四串列封包經由第二端輸出。In an embodiment, the error reporting single line transmission device may receive the fourth serial packet in the first mode, and the fourth serial packet includes the foregoing update data, but without the first switching signal and the second switching. a signal, or a third switching signal, and outputting the fourth serial packet via the second end.

本發明另揭露之一種串聯具錯誤回報單線傳輸裝置,包括前述之具錯誤回報單線傳輸裝置,且這些具錯誤回報單線傳輸裝置以串聯方式連接,其中這些具錯誤回報單線傳輸裝置處於第一模式時,具錯誤回報單線傳輸裝置依序分別由第一端接收具有第一切換訊號的第一串列封包,且由第一串列封包中取得對應的更新資料,再將第一串列封包經由第二端輸出,且在所有串聯的具錯誤回報單線傳輸裝置接收完第一串列封包後,依據第一切換訊號,所有串聯具錯誤回報單線傳輸裝置由第一模式切換至第二模式,所有串聯當具錯誤回報單線傳輸裝置處於第二模式時,若串聯的具錯誤回報單線傳輸裝置其中之一發生錯誤狀態,發生錯誤狀態之具錯誤回報單線傳輸裝置產生第一錯誤旗標符號並由其第 一端輸出,且串聯上一級之具錯誤回報單線傳輸裝置將第一錯誤旗標符號作為第二錯誤旗標符號,以由第二端接收第二錯誤旗標符號並轉為第一錯誤旗標符號再由其第一端輸出,直到串聯第一個之具錯誤回報單線傳輸裝置的第一端輸出第一錯誤旗標符號為止。The invention further discloses a tandem error-reporting single-line transmission device, comprising the foregoing error-reporting single-line transmission device, and the error-rejected single-line transmission devices are connected in series, wherein the error-rejected single-line transmission devices are in the first mode The error reporting single-line transmission device sequentially receives the first serial packet having the first switching signal by the first end, and obtains the corresponding updated data from the first serial packet, and then passes the first serial packet through the first The two-terminal output, and after all the series-connected error-rejected single-line transmission devices receive the first serial packet, according to the first switching signal, all the serial error transmission single-line transmission devices are switched from the first mode to the second mode, all connected in series When the single-line transmission device with the error return is in the second mode, if one of the error-returned single-line transmission devices in the series has an error state, the error state of the error-generating single-line transmission device generates the first error flag symbol and is The first error output single-line transmission device uses the first error flag symbol as the second error flag symbol to receive the second error flag symbol by the second end and converts to the first error flag symbol. It is then output by its first end until the first error end of the first single-line transmission device in the series is outputted to output the first error flag.

在一實施例中,前述具錯誤回報單線傳輸裝置由第一端輸出第一錯誤旗標符號後會停止操作,直到具錯誤回報單線傳輸裝置進行重置並回到第一模式為止。In an embodiment, the error reporting single line transmission device stops operating after outputting the first error flag symbol by the first end until the error reporting single line transmission device resets and returns to the first mode.

在一實施例中,前述所有串聯的具錯誤回報單線傳輸裝置回到第一模式時,所有串聯的具錯誤回報單線傳輸裝置更接收具有第二切換訊號的第二串列封包,且在接收完第二串列封包後,依據第二切換訊號,以由第一模式切換至第三模式,當所有串聯的具錯誤回報單線傳輸裝置切換至第三模式時,串聯最後一級之具錯誤回報單線傳輸裝置將第一狀態資訊轉為編碼訊號,並由第一端輸出,而串聯上一級之具錯誤回報單線傳輸裝置將串聯下一級之具錯誤回報單線傳輸裝置所產生的編碼訊號作為第二狀態資訊,且由第二端接收,而串聯上一級之具錯誤回報單線傳輸裝置的將自己的第一狀態資訊與第二端接收的第二狀態資訊編碼後,以產生編碼訊號,且編碼訊號由第一端輸出,直到串聯第一個之具錯誤回報單線傳輸裝置的第一端輸出編碼訊號為止。In an embodiment, when all of the serially connected error-rejected single-line transmission devices return to the first mode, all of the serially error-returned single-line transmission devices in series receive the second serialized packet having the second switching signal, and after receiving After the second serial packet is switched, according to the second switching signal, to switch from the first mode to the third mode, when all the series of error reporting single-line transmission devices are switched to the third mode, the last stage of the serial connection has a false return single line transmission. The device converts the first status information into an encoded signal and outputs it by the first end, and the error reporting single line transmission device of the upper level in series connects the encoded signal generated by the error reporting single line transmission device of the next level in series as the second status information. And receiving by the second end, and connecting the first state information of the faulty single-line transmission device of the first stage in series with the second state information received by the second end to generate the coded signal, and the coded signal is One end outputs until the first one of the series returns the encoded signal of the first end of the single-line transmission device.

在一實施例中,前述所有串聯的具錯誤回報單線傳輸裝置回到第一模式時,所有串聯的具錯誤回報單線傳輸裝置更接收第三 串列封包。第三串列封包帶有多個模式切換資訊,且每一模式切換資訊會對應到某一串聯的具錯誤回報單線傳輸裝置。每一個模式切換資訊包含的可能是第一切換訊號或第三切換訊號。當所有串聯的具錯誤回報單線傳輸裝置從第一端接收到第三串列封包時,每一串聯的具錯誤回報單線傳輸裝置會從第三串列封包找到屬於具錯誤回報單線傳輸裝置各自對應的模式切換資訊,再依據找到的模式切換資訊來決定切換成第二模式或第四模式。所有串聯的具錯誤回報單線傳輸裝置可能部分處於第二模式,另一部分處於第四模式,或可能所有串聯的具錯誤回報單線傳輸裝置都是處於第二模式,或可能所有具錯誤回報單線傳輸裝置都是處於第四模式。In an embodiment, all of the serially connected error-return single-line transmission devices return to the first mode, and all of the serially-transmitted single-line transmission devices in series receive the third Serial packet. The third serial packet has multiple mode switching information, and each mode switching information corresponds to a serially connected error transmission single line transmission device. Each mode switching information may include a first switching signal or a third switching signal. When all the serially-transmitted single-line transmission devices in series receive the third serial packet from the first end, each serialized error-return single-line transmission device finds the corresponding one of the single-line transmission devices with the error return from the third serial packet. The mode switch information, and then according to the found mode switching information to decide to switch to the second mode or the fourth mode. All series of error-returned single-line transmissions may be partially in the second mode, and the other part in the fourth mode, or possibly all of the serially-returned single-line transmissions in the second mode, or possibly all false-reported single-line transmissions They are all in the fourth mode.

前述當某一個串聯的具錯誤回報單線傳輸裝置處於第二模式時,若處於第二模式的具錯誤回報單線傳輸裝置發生錯誤狀態,具錯誤回報單線傳輸裝置產生第一錯誤旗標符號並由其第一端輸出,且串聯上一級之具錯誤回報單線傳輸裝置不論是處於第二模式或第四模式都會將第一錯誤旗標符號作為第二錯誤旗標符號,以由第二端接收第二錯誤旗標符號並轉為第一錯誤旗標符號再由其第一端輸出,直到串聯第一個之具錯誤回報單線傳輸裝置的第一端輸出第一錯誤旗標符號為止。In the foregoing, when a serially connected error-reported single-line transmission device is in the second mode, if the error-returning single-line transmission device in the second mode is in an error state, the error-returning single-line transmission device generates the first error flag symbol and The first-end output, and the error-returning single-line transmission device of the upper-level serial connection, whether in the second mode or the fourth mode, will use the first error flag symbol as the second error flag symbol to receive the second error by the second end. The error flag symbol is converted to the first error flag symbol and output by the first end thereof until the first error output of the first one of the error reporting single line transmission devices in series is output.

前述當某一個串聯的具錯誤回報單線傳輸裝置處於第四模式時,若處於第四模式的具錯誤回報單線傳輸裝置發生錯誤狀態,錯誤回報單線傳輸裝置不會產生第一錯誤旗標符號並由其第一端 輸出,除非錯誤回報單線傳輸裝置之第二端接收第二錯誤旗標符號後才會將接收的第二錯誤旗標符號轉為第一錯誤旗標符號再由其第一端輸出,直到串聯第一個之具錯誤回報單線傳輸裝置的第一端輸出第一錯誤旗標符號為止。In the foregoing, when one of the series-connected error-rejected single-line transmission devices is in the fourth mode, if the error-returning single-line transmission device in the fourth mode is in an error state, the error-returning single-line transmission device does not generate the first error flag symbol and is Its first end Output, unless the second end of the error returning single line transmission device receives the second error flag symbol, the received second error flag symbol is converted into the first error flag symbol and then output by the first end until the serial number A wrong end of the single-line transmission device outputs a first error flag symbol.

在一實施例中,前述錯誤狀態包括溫度異常、電流異常、電壓源開路、電壓源短路或斷路偵測異常。In an embodiment, the error state includes a temperature abnormality, a current abnormality, a voltage source open circuit, a voltage source short circuit, or an open circuit detection abnormality.

在一實施例中,前述第一狀態資訊與第二狀態資訊包括溫度、電流、電壓源的狀態資訊。In an embodiment, the first state information and the second state information include state information of temperature, current, and voltage source.

在一實施例中,前述所有串聯具錯誤回報單線傳輸裝置的第一端與第二端於預設時間內任何訊號傳輸,具錯誤回報單線傳輸裝置會重置回到第一模式。In one embodiment, all of the aforementioned first and second ends of the erroneously-reported single-line transmission device are transmitted by any signal within a preset time, and the erroneous-return single-line transmission device is reset back to the first mode.

在一實施例中,前述第一錯誤旗標符號的資料量小於第一狀態資訊與第二狀態資訊的資料量。In an embodiment, the data amount of the first error flag symbol is smaller than the data amount of the first status information and the second status information.

在一實施例中,前述所有串聯的具錯誤回報單線傳輸裝置可只在第一模式下接收第四串列封包,此第四串列封包包括更新資料,但不帶有第一切換訊號、第二切換訊號、或第三切換訊號。In an embodiment, all of the foregoing series of error-reported single-line transmission devices can receive the fourth serial packet only in the first mode, and the fourth serial packet includes the updated data, but without the first switching signal, Second switching signal, or third switching signal.

另外,當得知串聯第一個之具錯誤回報單線傳輸裝置的第一端輸出第一錯誤旗標符號時,可能無法確切得知是哪一個具錯誤回報單線傳輸裝置發生錯誤,此時可在將具錯誤回報單線傳輸裝置重置後,具錯誤回報單線傳輸裝置重置於第一模式下接收具有第二切換訊號的第二串列封包,以回傳資料量較大之具有第一資訊狀態與第二資訊狀態的編碼訊號,而得知哪一個串聯的具錯誤 回報單線傳輸裝置發生錯誤。In addition, when it is known that the first end of the first error transmission single-line transmission device in series outputs the first error flag symbol, it may not be possible to know exactly which error has occurred in the single-line transmission device. After resetting the error-returning single-line transmission device, the error-returning single-line transmission device is reset in the first mode to receive the second serial packet with the second switching signal, so as to return the first information state with a large amount of data. Encoding signal with the second information state, and knowing which one is connected in error An error occurred in returning the single line transmission device.

此外,還可進一步在將具錯誤回報單線傳輸裝置重置後,具錯誤回報單線傳輸裝置重置於第一模式下依序接收具有多個模式切換資訊的第三串列封包,每一個模式切換資訊包含的可能是第一切換訊號或第三切換訊號,且利用第三串列封包讓串聯某一指定的具錯誤回報單線傳輸裝置切換成第二模式,其他的具錯誤回報單線傳輸裝置切換成第四模式,若從串聯第一個之具錯誤回報單線傳輸裝置的第一端有輸出第一錯誤旗標符號,則就能得知是該被切換成第二模式的具錯誤回報單線傳輸裝置有發生錯誤狀態,以得知哪一個串聯的具錯誤回報單線傳輸裝置發生錯誤。In addition, after resetting the error-returning single-line transmission device, the error-returning single-line transmission device is reset in the first mode to sequentially receive the third serial packet with multiple mode switching information, and each mode is switched. The information may include the first switching signal or the third switching signal, and the third serial packet is used to switch a specified error-return single-line transmission device into the second mode, and the other error-returning single-line transmission device is switched to In the fourth mode, if the first error flag is output from the first end of the first error transmission single-line transmission device in series, it can be known that the single-line transmission device with the error return is switched to the second mode. An error condition has occurred to determine which of the series of faulty single-line transmission devices has an error.

如此一來,具錯誤回報單線傳輸裝置在平時監控時,因第一錯誤旗標符號的資料量小於第一狀態資訊與第二狀態資訊的資料量,故平時監控由省時的第二模式執行,一旦得知有錯誤狀態發生,再利用耗時的第三模式或是第四模式,來得知是哪一個具錯誤回報單線傳輸裝置發生錯誤,因此可節省平時裝置監控時所花的時間,進而避免大量降低資料更新率。In this way, when the single-line transmission device with error reporting is normally monitored, since the data amount of the first error flag symbol is smaller than the data amount of the first state information and the second state information, the usual monitoring is performed by the second mode of saving time. Once it is known that an error condition has occurred, the time-consuming third mode or the fourth mode is used to know which one of the faulty single-line transmission devices has an error, thereby saving the time spent on the usual device monitoring, and thus Avoid greatly reducing the data update rate.

有關本發明特徵與實作,茲配合圖式作實施例詳細說明如下。The features and implementations of the present invention are described in detail below with reference to the drawings.

請參考「第1圖」所示,其為本發明之具錯誤回報單線傳輸裝置的示意圖。本實施例之具錯誤回報單線傳輸裝置100適於應用於單線堆疊串列的架構。具錯誤回報單線傳輸裝置100(以下簡稱裝置100)具有第一端101與第二端102。其中,當裝置100處 於第一模式時,第一端101作為輸入端,第二端作為輸出端,而第一端101例如接收具有第一切換訊號的第一串列封包。Please refer to FIG. 1 , which is a schematic diagram of a single-line transmission device with error reporting according to the present invention. The erroneous-report single-line transmission apparatus 100 of the present embodiment is adapted to be applied to the architecture of a single-line stack. The erroneous-return single-line transmission device 100 (hereinafter referred to as the device 100) has a first end 101 and a second end 102. Where, when the device 100 In the first mode, the first end 101 serves as an input and the second end serves as an output, and the first end 101 receives, for example, a first serial packet having a first switching signal.

並且,裝置100對所接收的第一串列封包進行處理,以由第一串列封包中取得對應的更新資料,使裝置100可據以進行資料更新的操作。接著,裝置100再將第一串列封包經由第二端102輸出,例如輸出至後端的裝置(例如與第二端102耦接之下一級之具錯誤回報單線傳輸裝置),以進行相應的處理。Moreover, the device 100 processes the received first serial packet to obtain corresponding update data from the first serial packet, so that the device 100 can perform the data update operation. Then, the device 100 outputs the first serial packet via the second end 102, for example, the device that is output to the back end (for example, coupled with the second end 102 with a faulty single-line transmission device) for corresponding processing. .

在裝置100接收完第一串列封包後,依據第一串列封包中的第一切換訊號,裝置100會由第一模式切換至第二模式。當裝置100處於第二模式時,第一端101作為輸出端,第二端102作為輸入端,若裝置100本身發生錯誤狀態,則裝置100會產生第一錯誤旗標符號(Error Flag Symbol),並將此第一錯誤旗標符號會經由第一端101輸出,例如輸出至前端的裝置(例如與第一端101耦接之上一級之具錯誤回報單線傳輸裝置或是產生串列封包的控制器),以告知裝置100發生錯誤。After the device 100 receives the first serial packet, the device 100 switches from the first mode to the second mode according to the first switching signal in the first serial packet. When the device 100 is in the second mode, the first end 101 serves as an output and the second end 102 serves as an input. If the device 100 itself has an error state, the device 100 generates a first error flag symbol (Error Flag Symbol). And outputting the first error flag symbol via the first end 101, for example, outputting to the front end device (for example, coupling with the first end 101 to the upper level with a false return single line transmission device or generating a serial packet control) In order to inform the device 100 that an error has occurred.

另一方面,當裝置100處於第二模式時,若裝置100本身未發生錯誤狀態,裝置100不會產生任何的第一錯誤旗標符號。在此同時,裝置100會由第二端102等待是否有接收到第二錯誤旗標符號,其中此第二錯誤旗標符號例如為後端的裝置(亦即與第二端102耦接之下一級之具錯誤回報單線傳輸裝置)發生錯誤狀態而產生的第一錯誤旗標符號。On the other hand, when the device 100 is in the second mode, if the device 100 itself does not have an error condition, the device 100 does not generate any first error flag symbols. At the same time, the device 100 will wait for the second error flag to be received by the second end 102, wherein the second error flag is, for example, a device at the back end (ie, coupled to the second end 102. The first error flag symbol generated by the error state of the single-line transmission device.

若第二端102有接收到第二錯誤旗標符號,則裝置100會將 此第二錯誤旗標符號轉為第一錯誤旗標符號,再經由第一端101輸出,例如輸出至前端的裝置(即與第一端101耦接之上一級之具錯誤回報單線傳輸裝置或是產生串列封包的控制器),以告知有錯誤狀態發生。If the second end 102 has received the second error flag, the device 100 will The second error flag symbol is converted into the first error flag symbol, and then outputted through the first end 101, for example, the device outputted to the front end (ie, coupled with the first end 101 with a faulty single-line transmission device or Is the controller that generates the serial packet) to inform that an error condition has occurred.

進一步來說,裝置100包括資料處理器110、第一開關SW1、第二開關SW2、偵測器120、錯誤旗標產生器130、第三開關SW3與第四開關SW4。Further, the device 100 includes a data processor 110, a first switch SW1, a second switch SW2, a detector 120, an error flag generator 130, a third switch SW3, and a fourth switch SW4.

資料處理器110耦接第一端101與第二端102,用以在裝置100處於第一模式時,資料處理器110經由第一端101接收具有第一切換訊號的第一串列封包,並由第一串列封包中取得更新資料以及擷取出第一切換訊號,並將第一串列封包經由第二端102輸出。The data processor 110 is coupled to the first end 101 and the second end 102, and when the device 100 is in the first mode, the data processor 110 receives the first serial packet having the first switching signal via the first end 101, and The update data is obtained from the first serial packet and the first switching signal is extracted, and the first serial packet is output via the second end 102.

第一開關SW1耦接於資料處理器110與第一端101之間,且第一開關SW1可依據第一切換訊號進行切換。其中,第一開關SW1於第一模式時導通,第一開關SW1於第二模式時斷開。第二開關SW2耦接於資料處理器110與第二端102之間,且第二開關SW2可依據第一切換訊號進行切換。其中,第二開關SW2於第一模式時導通,第二開關SW2於第二模式時斷開。The first switch SW1 is coupled between the data processor 110 and the first end 101, and the first switch SW1 can be switched according to the first switching signal. The first switch SW1 is turned on in the first mode, and the first switch SW1 is turned off in the second mode. The second switch SW2 is coupled between the data processor 110 and the second end 102, and the second switch SW2 can be switched according to the first switching signal. The second switch SW2 is turned on in the first mode, and the second switch SW2 is turned off in the second mode.

偵測器120用以偵測裝置100是否發生錯誤狀態,而據以產生偵測訊號。其中,前述錯誤狀態例如包括溫度異常、電流異常、電壓源開路、電壓源短路或斷路偵測異常。舉例來說,當偵測器120偵測到這些錯誤狀態時,例如產生高準位的偵測訊號。當偵測 器120未偵測到這些錯誤狀態時,例如產生低準位的偵測訊號。The detector 120 is configured to detect whether the device 100 has an error state, and accordingly generate a detection signal. The foregoing error state includes, for example, a temperature abnormality, a current abnormality, a voltage source open circuit, a voltage source short circuit, or an open circuit detection abnormality. For example, when the detector 120 detects these error states, for example, a high level detection signal is generated. When detecting When the error state is not detected by the device 120, for example, a low level detection signal is generated.

錯誤旗標產生器130耦接第一端101、第二端102與偵測器120,錯誤旗標產生器130用以依據偵測訊號,而決定是否產生第一錯誤旗標符號,且第一錯誤旗標符號由第一端101輸出。或是,若錯誤旗標產生器130由第二端102有接收到第二錯誤旗標符號,則將所接收到的第二錯誤旗標符號轉為第一錯誤旗標符號,再由第一端101輸出。舉例來說,當偵測訊號為高準位時,錯誤旗標產生器130產生第一錯誤旗標符號。當偵測訊號為低準位時,錯誤旗標產生器130不會產生第一錯誤旗標符號。The error flag generator 130 is coupled to the first end 101, the second end 102, and the detector 120. The error flag generator 130 is configured to determine whether to generate the first error flag according to the detection signal, and first The error flag symbol is output by the first terminal 101. Or, if the error flag generator 130 receives the second error flag symbol from the second end 102, the received second error flag symbol is converted into the first error flag symbol, and then the first End 101 output. For example, when the detection signal is at a high level, the error flag generator 130 generates a first error flag symbol. When the detection signal is at a low level, the error flag generator 130 does not generate the first error flag symbol.

接著,錯誤旗標產生器130會等待經由第二端102所接收第二錯誤旗標符號(例如由下一級之具錯誤回報單線傳輸裝置的第一端101產生的第一錯誤旗標符號)。之後,當錯誤旗標產生器130有接收到第二錯誤旗標符號時,錯誤旗標產生器130會將第二錯誤旗標符號轉為第一錯誤旗標符號,再經由第一端101輸出。Next, the error flag generator 130 will wait for the second error flag symbol received via the second end 102 (e.g., the first error flag symbol generated by the first end 101 of the next-level error reporting single line transmission device). Thereafter, when the error flag generator 130 receives the second error flag symbol, the error flag generator 130 converts the second error flag symbol into the first error flag symbol, and then outputs the first error signal through the first end 101. .

另外,錯誤旗標產生器130在產生完第一錯誤旗標符號後,裝置100會停止操作(亦即裝置100會停止由第一端101輸出任何訊號),直到裝置100被重置回到第一模式為止。其中,第二錯誤旗標符號例如由與第二端102耦接之下一級具錯誤回報單線傳輸裝置之第一端產生的第一錯誤旗標符號。In addition, after the error flag generator 130 generates the first error flag, the device 100 stops operating (ie, the device 100 stops outputting any signal by the first terminal 101) until the device 100 is reset back to the first Until a mode. The second error flag symbol is, for example, a first error flag symbol generated by the first end of the lower-order single-line transmission device coupled to the second end 102.

第三開關SW3耦接於錯誤旗標產生器130與第一端101之間,且第三開關SW3依據第一切換訊號進行切換。其中,第三開關SW3於第二模式時導通,第三開關SW3於第一模式時斷開。 第四開關SW4耦接於錯誤旗標產生器130與第二端102之間,且第四開關SW4依據第一切換訊號進行切換。其中,第四開關SW4於第二模式時導通,第四開關SW4於第一模式時斷開。The third switch SW3 is coupled between the error flag generator 130 and the first terminal 101, and the third switch SW3 is switched according to the first switching signal. The third switch SW3 is turned on in the second mode, and the third switch SW3 is turned off in the first mode. The fourth switch SW4 is coupled between the error flag generator 130 and the second terminal 102, and the fourth switch SW4 is switched according to the first switching signal. The fourth switch SW4 is turned on in the second mode, and the fourth switch SW4 is turned off in the first mode.

當裝置100處於第一模式(例如資料更新)時,裝置100由第一串列封包中取得所需的更新資料。當裝置100處於第二模式時,裝置100由錯誤旗標的傳遞,以進行錯誤回報的監控操作。When the device 100 is in the first mode (e.g., data update), the device 100 obtains the required update data from the first serial packet. When the device 100 is in the second mode, the device 100 is relayed by an error flag to perform a false return monitoring operation.

在本實施例中,當裝置100發生錯誤狀態時,藉由回傳資料量小的第一錯誤旗標符號,告知控制器有錯誤狀態發生。如此一來,在具錯誤回報單線傳輸裝置平時進行錯誤狀態監控時,可利用省時的第二模式來得知是否有錯誤狀態發生,以避免大量降低資料更新率。In this embodiment, when the device 100 has an error state, the controller is notified of an error state by returning a first error flag symbol having a small amount of data. In this way, when the faulty single-line transmission device normally performs error state monitoring, the second mode of saving time can be used to know whether an error state occurs to avoid a large reduction in the data update rate.

請參考「第2圖」所示,其為本發明之具錯誤回報單線傳輸裝置的詳細示意圖。本實施例之具錯誤回報單線傳輸裝置200適於應用於單線堆疊(Cascade)串列的架構。具錯誤回報單線傳輸裝置200(以下簡稱裝置200)具有第一端201與第二端202,並且裝置200包括資料處理器210、第一開關SW1、第二開關SW2、偵測器220、錯誤旗標產生器230、第三開關SW3、第四開關SW4、模式控制器240、狀態資訊產生器250、狀態處理器260、第五開關SW5、第六開關SW6、第七開關SW7與重置器270。Please refer to "Fig. 2", which is a detailed schematic diagram of the single-line transmission device with error return of the present invention. The error-rejected single-line transmission device 200 of the present embodiment is adapted to be applied to a single-line stacked (Cascade) serial architecture. The error return single line transmission device 200 (hereinafter referred to as the device 200) has a first end 201 and a second end 202, and the device 200 includes a data processor 210, a first switch SW1, a second switch SW2, a detector 220, and an error flag. The target generator 230, the third switch SW3, the fourth switch SW4, the mode controller 240, the state information generator 250, the state processor 260, the fifth switch SW5, the sixth switch SW6, the seventh switch SW7 and the resetter 270 .

資料處理器210耦接第一端201與第二端202,用以在裝置200處於第一模式時,資料處理器210可經由第一端201接收具有第一切換訊號的第一串列封包、具有第二切換訊號的第二串列封 包、具有多個模式切換資訊的第三串列封包、或只具有更新資料的第四串列封包。The data processor 210 is coupled to the first end 201 and the second end 202. The data processor 210 can receive the first serial packet with the first switching signal via the first end 201 when the device 200 is in the first mode. Second string seal with second switching signal A packet, a third serial packet with multiple mode switching information, or a fourth serial packet with only updated data.

舉例來說,當裝置200的資料處理器210於第一模式接收第一串列封包時,資料處理器210會由第一串列封包中取得對應的更新資料以及擷取出第一切換訊號,並將第一串列封包經由第二端202輸出。接著,在裝置200接收完第一串列封包後,依據第一串列封包中的第一切換訊號,裝置200會由第一模式切換至第二模式。For example, when the data processor 210 of the device 200 receives the first serial packet in the first mode, the data processor 210 obtains the corresponding update data from the first serial packet and extracts the first switching signal, and The first serial packet is output via the second end 202. Then, after the device 200 receives the first serial packet, the device 200 switches from the first mode to the second mode according to the first switching signal in the first serial packet.

當裝置200的資料處理器210於第一模式接收第二串列封包時,資料處理器210會由第二串列封包中取得對應的更新資料以及擷取出第二切換訊號,並將第二串列封包經由第二端202輸出。並且,在裝置200接收完第二串列封包後,依據第二串列封包中的第二切換訊號,裝置200會由第一模式切換至第三模式。When the data processor 210 of the device 200 receives the second serial packet in the first mode, the data processor 210 obtains the corresponding update data from the second serial packet and extracts the second switching signal, and the second string is obtained. The column packet is output via the second end 202. Moreover, after the device 200 receives the second serial packet, the device 200 switches from the first mode to the third mode according to the second switching signal in the second serial packet.

當裝置200的資料處理器210於第一模式接收第三串列封包時,資料處理器210會由第三串列封包中取得對應的模式切換資訊,並將第三串列封包經由第二端202輸出。其中,前述第三串列封包例如帶有多個模式切換資訊,而這些模式切換資訊其中之一會對應到裝置200,且這些模式切換資訊各自例如包括可能的第一切換訊號或第三切換訊號。When the data processor 210 of the device 200 receives the third serial packet in the first mode, the data processor 210 obtains the corresponding mode switching information from the third serial packet, and the third serial packet is sent to the second end. 202 output. The third serial packet includes, for example, a plurality of mode switching information, and one of the mode switching information corresponds to the device 200, and each of the mode switching information includes, for example, a possible first switching signal or a third switching signal. .

並且,在裝置200接收完第三串列封包後,若裝置200的資料處理器210取得的模式切換資訊是第三切換訊號,裝置200會由第一模式切換至第四模式。另一方面,在裝置200接收完第三 串列封包後,若裝置200的資料處理器210取得的模式切換資訊是第一切換訊號,裝置200會由第一模式切換至第二模式。Moreover, after the device 200 receives the third serial packet, if the mode switching information acquired by the data processor 210 of the device 200 is the third switching signal, the device 200 switches from the first mode to the fourth mode. On the other hand, the device 200 receives the third After the serial packet, if the mode switching information obtained by the data processor 210 of the device 200 is the first switching signal, the device 200 switches from the first mode to the second mode.

重置器270耦接第一端201與第二端202,用以偵測第一端201與第二端202的訊號傳輸狀態,以決定是否對裝置200進行重置而回到第一模式。舉例來說,當訊號傳輸狀態為第一端201與第二端202於預設時間內沒有接收或傳輸任何訊號時,重置器270會產生重置訊號RST,以重置裝置200回到第一模式。The resetter 270 is coupled to the first end 201 and the second end 202 for detecting the signal transmission state of the first end 201 and the second end 202 to determine whether to reset the device 200 to return to the first mode. For example, when the signal transmission state is that the first end 201 and the second end 202 do not receive or transmit any signal within a preset time, the resetter 270 generates a reset signal RST to reset the device 200 back to the first A mode.

模式控制器240耦接資料處理器210、第一開關SW1、第二開關SW2、第三開關SW3、第四開關SW4、第五開關SW5、第六開關SW6與第七開關SW7。若模式控制器240從資料處理器210得知裝置200已接收完任一串列封包,模式控制器240會依據第一切換訊號、第二切換訊號與第三切換訊號,提供對應的控制訊號CS1、CS2、CS3、CS4,以控制第一開關到第七開關SW1~SW7的切換。The mode controller 240 is coupled to the data processor 210, the first switch SW1, the second switch SW2, the third switch SW3, the fourth switch SW4, the fifth switch SW5, the sixth switch SW6, and the seventh switch SW7. If the mode controller 240 knows from the data processor 210 that the device 200 has received any of the serial packets, the mode controller 240 provides the corresponding control signal CS1 according to the first switching signal, the second switching signal and the third switching signal. , CS2, CS3, CS4, to control the switching of the first switch to the seventh switch SW1~SW7.

其中,控制訊號CS1用以控制第一開關SW1與第二開關SW2導通及斷開;控制訊號CS2用以控制第三開關SW3與第四開關SW4導通及斷開;控制訊號CS3用以控制第五開關SW5與第六開關SW6導通及斷開;控制訊號CS4用以控制第七開關SW7導通及斷開。The control signal CS1 is used to control the first switch SW1 and the second switch SW2 to be turned on and off; the control signal CS2 is used to control the third switch SW3 and the fourth switch SW4 to be turned on and off; the control signal CS3 is used to control the fifth The switch SW5 and the sixth switch SW6 are turned on and off; the control signal CS4 is used to control the seventh switch SW7 to be turned on and off.

舉例來說,當模式控制器240未接收到任何切換訊號時,模式控制器240會產生高準位的控制訊號CS1以及低準位的控制訊號CS2、CS3與CS4,控制第一開關SW1及第二開關SW2導通, 其他開關SW3~SW7斷開,使得裝置200處於第一模式,以進行資料更新的操作。For example, when the mode controller 240 does not receive any switching signal, the mode controller 240 generates a high-level control signal CS1 and low-level control signals CS2, CS3, and CS4 to control the first switch SW1 and the first The second switch SW2 is turned on, The other switches SW3~SW7 are turned off, so that the device 200 is in the first mode to perform the data update operation.

當模式控制器240接收到第一切換訊號時,模式控制器240會產生低準位的控制訊號CS1與CS3以及高準位的控制訊號CS2與CS4,控制第三開關SW3、第四開關SW4及第七開關SW7導通,其他開關SW1、SW2、SW5、SW6斷開,使得裝置200進入第二模式。When the mode controller 240 receives the first switching signal, the mode controller 240 generates the low level control signals CS1 and CS3 and the high level control signals CS2 and CS4, and controls the third switch SW3 and the fourth switch SW4. The seventh switch SW7 is turned on, and the other switches SW1, SW2, SW5, and SW6 are turned off, so that the device 200 enters the second mode.

當模式控制器240接收到第二切換訊號時,模式控制器240產生低準位的控制訊號CS1、CS2與CS4以及高準位的控制訊號CS3,控制第五開關SW5及第六開關SW6導通,其他開關SW1~SW4、SW7斷開,使得裝置200進入第三模式。When the mode controller 240 receives the second switching signal, the mode controller 240 generates the low level control signals CS1, CS2 and CS4 and the high level control signal CS3, and controls the fifth switch SW5 and the sixth switch SW6 to be turned on. The other switches SW1~SW4, SW7 are turned off, causing the device 200 to enter the third mode.

當模式控制器240接收到第三切換訊號時,模式控制器240產生低準位的控制訊號CS1、CS3與CS4以及高準位的控制訊號CS2,控制第三開關SW3及第四開關SW4導通,其他開關SW1、SW2、SW5~SW7斷開,使得裝置200進入第四模式。並且,當裝置200處於第四模式時,模式控制器240會將第七開關SW7斷開,此與裝置200於第二模式時有所差異,亦即當裝置200處於第四模式時,模式控制器240會將第七開關SW7導通。When the mode controller 240 receives the third switching signal, the mode controller 240 generates the low level control signals CS1, CS3 and CS4 and the high level control signal CS2, and controls the third switch SW3 and the fourth switch SW4 to be turned on. The other switches SW1, SW2, SW5~SW7 are turned off, causing the device 200 to enter the fourth mode. Moreover, when the device 200 is in the fourth mode, the mode controller 240 turns off the seventh switch SW7, which is different from the device 200 in the second mode, that is, when the device 200 is in the fourth mode, mode control The device 240 turns on the seventh switch SW7.

第一開關SW1耦接於資料處理器210與第一端201之間,第二開關SW2耦接於資料處理器210與第二端202之間,且第一開關SW1與第二開關SW2會依據控制訊號CS1而進行切換。The first switch SW1 is coupled between the data processor 210 and the first end 201, and the second switch SW2 is coupled between the data processor 210 and the second end 202, and the first switch SW1 and the second switch SW2 are The signal CS1 is controlled to switch.

第三開關SW3耦接於錯誤旗標產生器230與第一端201之 間,第四開關SW4耦接於錯誤旗標產生器230與第二端202之間,第七開關SW7耦接於錯誤旗標產生器230與偵測器220之間,且第三開關SW3與第四開關SW4與第七開關SW7會依據控制訊號CS2與CS4而進行切換。The third switch SW3 is coupled to the error flag generator 230 and the first end 201 The fourth switch SW4 is coupled between the error flag generator 230 and the second terminal 202. The seventh switch SW7 is coupled between the error flag generator 230 and the detector 220, and the third switch SW3 is coupled to The fourth switch SW4 and the seventh switch SW7 are switched according to the control signals CS2 and CS4.

偵測器220用以於第二模式時偵測裝置200是否發生錯誤狀態,而據以產生偵測訊號。舉例來說,當偵測器220偵測到裝置200發生錯誤狀態時,偵測器220例如產生高準位的偵測訊號。當偵測器220偵測到裝置200未發生錯誤狀態時,偵測器220例如產生低準位的偵測訊號。The detector 220 is configured to detect whether the device 200 has an error state in the second mode, and accordingly generate a detection signal. For example, when the detector 220 detects that the device 200 has an error state, the detector 220 generates, for example, a high-level detection signal. When the detector 220 detects that the device 200 has not been in an error state, the detector 220 generates, for example, a low level detection signal.

錯誤旗標產生器230於第二模式時耦接第一端201、第二端202與偵測器220,錯誤旗標產生器230用以依據偵測訊號,而決定是否產生第一錯誤旗標符號,且第一錯誤旗標符號由第一端201輸出。或是,若具錯誤旗標產生器230由第二端202有接到收第二錯誤旗標符號,則將所接收到的第二錯誤旗標符號轉為第一錯誤旗標符號後,再經由第一端201輸出。舉例來說,當偵測訊號為高準位時,錯誤旗標產生器230產生第一錯誤旗標符號。當偵測訊號為低準位時,錯誤旗標產生器230不會產生任何第一錯誤旗標符號。The error flag generator 230 is coupled to the first end 201, the second end 202, and the detector 220 in the second mode, and the error flag generator 230 is configured to determine whether to generate the first error flag according to the detection signal. The symbol, and the first error flag symbol is output by the first end 201. Or, if the error flag generator 230 receives the second error flag symbol from the second end 202, the received second error flag symbol is converted into the first error flag symbol, and then Outputted via the first end 201. For example, when the detection signal is at a high level, the error flag generator 230 generates a first error flag symbol. When the detection signal is at a low level, the error flag generator 230 does not generate any first error flag symbols.

接著,錯誤旗標產生器230會等待經由第二端202所接收第二錯誤旗標符號(例如由下一級之具錯誤回報單線傳輸裝置的第一端201產生的第一錯誤旗標符號)。之後,當錯誤旗標產生器230有接收到第二錯誤旗標符號時,錯誤旗標產生器230會將第二錯 誤旗標符號轉為第一錯誤旗標符號,再經由第一端201輸出。Next, the error flag generator 230 will wait for the second error flag symbol received via the second end 202 (e.g., the first error flag symbol generated by the first end 201 of the next-level error-reported single-line transmission device). Thereafter, when the error flag generator 230 has received the second error flag, the error flag generator 230 will cause the second error. The error flag symbol is converted to the first error flag symbol and then output through the first end 201.

另外,錯誤旗標產生器230於第二模式且在產生完第一錯誤旗標符號後,裝置200會停止操作(亦即裝置200會停止由第一端201輸出任何訊號),直到裝置200被重置回到第一模式為止。第二錯誤旗標符號例如由與第二端202耦接之下一級具錯誤回報單線傳輸裝置之第一端產生的第一錯誤旗標符號。In addition, the error flag generator 230 is in the second mode and after the first error flag is generated, the device 200 stops operating (ie, the device 200 stops outputting any signal by the first terminal 201) until the device 200 is Reset back to the first mode. The second error flag symbol is, for example, a first error flag symbol generated by the first end of the lower-order single-line transmission device coupled to the second end 202.

錯誤旗標產生器230進一步包括檢測器231與脈波產生器232。檢測器231於第二模式時耦接第二端202,用以接收並檢測第二錯誤旗標符號,以產生檢測訊號。舉例來說,當檢測器231檢測出有接收到第二錯誤旗標符號時,檢測器231例如產生高準位檢測訊號。當檢測器231檢測出未有接收到第二錯誤旗標符號時,檢測器231例如產生低準位檢測訊號。在本實施例中,第二錯誤旗標符號可為高脈波訊號、低脈波訊號、高準位訊號與低準位訊號其中之一。The error flag generator 230 further includes a detector 231 and a pulse generator 232. The detector 231 is coupled to the second end 202 in the second mode for receiving and detecting the second error flag symbol to generate a detection signal. For example, when the detector 231 detects that the second error flag is received, the detector 231 generates, for example, a high level detection signal. When the detector 231 detects that the second error flag symbol has not been received, the detector 231 generates, for example, a low level detection signal. In this embodiment, the second error flag symbol may be one of a high pulse signal, a low pulse signal, a high level signal, and a low level signal.

脈波產生器232在第二模式時耦接第一端201、檢測器231與偵測器220,依據偵測訊號,以產生第一錯誤旗標符號。舉例來說,當偵測訊號為高準位時,脈波產生器232產生第一錯誤旗標符號,且第一錯誤旗標符號可由第一端201輸出。當偵測訊號為低準位時,脈波產生器232不會產生第一錯誤旗標符號。在本實施例中,第一錯誤旗標符號可為高脈波訊號、低脈波訊號、高準位訊號與低準位訊號其中之一。The pulse generator 232 is coupled to the first end 201, the detector 231 and the detector 220 in the second mode to generate a first error flag according to the detection signal. For example, when the detection signal is at a high level, the pulse generator 232 generates a first error flag symbol, and the first error flag symbol can be output by the first end 201. When the detection signal is at a low level, the pulse generator 232 does not generate the first error flag symbol. In this embodiment, the first error flag symbol may be one of a high pulse signal, a low pulse signal, a high level signal, and a low level signal.

或是,脈波產生器232在第二模式時可依據檢測訊號,判斷 檢測訊號是否具有第二錯誤旗標符號,並進一步將具有第二錯誤旗標符號的檢測訊號轉為第一錯誤旗標符號,再經由第一端201輸出。舉例來說,當檢測訊號為高準位時,脈波產生器232將具有第二錯誤旗標符號的檢測訊號轉為第一錯誤旗標符號,且此第一誤旗標符號再經由第一端201輸出。當檢測訊號為低準位時,脈波產生器232並不會有任何動作。Alternatively, the pulse generator 232 can determine the detection signal according to the detection signal in the second mode. The detection signal has a second error flag symbol, and further the detection signal having the second error flag symbol is converted into the first error flag symbol, and then output through the first end 201. For example, when the detection signal is at a high level, the pulse generator 232 converts the detection signal having the second error flag symbol into a first error flag symbol, and the first error flag symbol is again passed through the first End 201 outputs. When the detection signal is at a low level, the pulse generator 232 does not have any action.

另外,脈波產生器232在第四模式時與在第二模式時很相似。也就是說,脈波產生器232在第四模式時耦接第一端201與檢測器231,但脈波產生器232在第四模式時,會因第七開關SW7斷開而不與偵測器220耦接。脈波產生器232在第四模式時,依據檢測訊號,以將檢測訊號轉換成第一錯誤旗標符號,再經由第一端201輸出。並且,當脈波產生器232產生第一錯誤旗標符號後,裝置200會停止操作(亦即脈波產生器232會停止輸出任何訊號),直到裝置200被重置為止。其中,第二錯誤旗標符號例如由第二端耦接之下一級之具錯誤回報單線傳輸裝置之第一端產生的第一錯誤旗標符號。In addition, the pulse generator 232 is very similar in the fourth mode as in the second mode. That is, the pulse generator 232 is coupled to the first end 201 and the detector 231 in the fourth mode, but when the pulse generator 232 is in the fourth mode, the seventh switch SW7 is disconnected and not detected. The device 220 is coupled. In the fourth mode, the pulse generator 232 converts the detection signal into a first error flag symbol according to the detection signal, and then outputs the signal through the first end 201. Moreover, when the pulse generator 232 generates the first error flag, the device 200 stops operating (ie, the pulse generator 232 stops outputting any signals) until the device 200 is reset. The second error flag symbol is coupled, for example, by the second end to a first error flag symbol generated by the first end of the faulty single-line transmission device.

第五開關SW5耦接於狀態處理器260與第一端201之間,第六開關SW6耦接於狀態處理器260與第二端202之間,且第五開關SW5與第六開關SW6會依據控制訊號CS3而進行切換。The fifth switch SW5 is coupled between the state processor 260 and the first end 201, the sixth switch SW6 is coupled between the state processor 260 and the second end 202, and the fifth switch SW5 and the sixth switch SW6 are The signal CS3 is controlled to switch.

狀態資訊產生器250用以在第三模式時,產生第一狀態資訊,此第一狀態資訊例如為裝置200的詳細狀態資訊。狀態處理器260在第三模式時耦接第一端201、第二端202與狀態資訊產生器 250,狀態處理器260接收第一狀態資訊,並由第二端202接收第二狀態資訊,且狀態處理器260將第一狀態資訊與第二狀態資訊編碼後,以產生編碼訊號並由第一端201輸出。其中,第二狀態資訊例如由與第二端202耦接之下一級之具錯誤回報單線傳輸裝置之第一端所輸出的編碼訊號。並且,第一狀態資訊與第二狀態資訊例如包括溫度、電流、電壓源等的狀態資訊。The status information generator 250 is configured to generate first status information when the third mode is used. The first status information is, for example, detailed status information of the device 200. The state processor 260 is coupled to the first end 201, the second end 202, and the state information generator in the third mode. 250, the state processor 260 receives the first state information, and receives the second state information by the second end 202, and the state processor 260 encodes the first state information and the second state information to generate the encoded signal and is first End 201 outputs. The second status information is, for example, coupled to the encoded signal output by the first end of the faulty single-line transmission device of the lower stage coupled to the second end 202. Moreover, the first status information and the second status information include, for example, status information of temperature, current, voltage source, and the like.

狀態處理器260進一步包括解碼器261、緩衝器262與編碼器263。解碼器261在第三模式時耦接第二端202,用以接收第二狀態資訊,並將第二狀態資訊進行解碼,以產生解碼訊號。緩衝器262耦接解碼器261,用以接收解碼訊號,並將解碼訊號進行緩衝,以產生緩衝訊號。編碼器263在第三模式時耦接狀態資訊產生器250、緩衝器262與第一端201,用以接收第一狀態資訊與緩衝訊號,並將第一狀態資訊與緩衝訊號進行編碼,以產生編碼訊號,再將此編碼訊號由第一端201輸出。The state processor 260 further includes a decoder 261, a buffer 262, and an encoder 263. The decoder 261 is coupled to the second end 202 in the third mode for receiving the second state information and decoding the second state information to generate a decoded signal. The buffer 262 is coupled to the decoder 261 for receiving the decoded signal and buffering the decoded signal to generate a buffered signal. In the third mode, the encoder 263 is coupled to the state information generator 250, the buffer 262, and the first end 201 for receiving the first state information and the buffer signal, and encoding the first state information and the buffer signal to generate The coded signal is output from the first end 201.

進一步來說,裝置200還包括下拉(Pull Down)電阻R1與R2。其中,下拉電阻R1的第一端耦接裝置200的第一端201,下拉電阻R1的第二端耦接接地端,下拉電阻R2的第一端耦接裝置200的第二端202,下拉電阻R2的第二端耦接接地端。Further, the device 200 further includes pull-down resistors R1 and R2. The first end of the pull-down resistor R1 is coupled to the first end 201 of the device 200, the second end of the pull-down resistor R1 is coupled to the ground end, and the first end of the pull-down resistor R2 is coupled to the second end 202 of the device 200, and the pull-down resistor The second end of the R2 is coupled to the ground.

當裝置200沒有接收或傳輸訊號時,下拉電阻R1與R2能將裝置200的第一端201與二端202維持在壓降趨於零,當重置器270偵測到下拉電阻R1與R2於預設時間內沒有任何壓降的變化或是壓降為零時,產生重置訊號RST,以重置裝置200回到第一 模式。When the device 200 does not receive or transmit signals, the pull-down resistors R1 and R2 can maintain the first end 201 and the two ends 202 of the device 200 at a voltage drop that tends to zero, when the resetter 270 detects the pull-down resistors R1 and R2. When there is no change in voltage drop or the voltage drop is zero within the preset time, a reset signal RST is generated to reset the device 200 back to the first mode.

另外,裝置200在第一模式下可接收第四串列封包,此第四串列封包只包括更新資料,但不包含前述任何的切換訊號及模式切換資訊,且裝置200可將第四串列封包經由第二端202輸出。In addition, the device 200 can receive the fourth serial packet in the first mode, where the fourth serial packet includes only the update data, but does not include any of the foregoing switching signals and mode switching information, and the device 200 can set the fourth serial The packet is output via the second end 202.

在本實施例中,當裝置200重置後,裝置200能回復為第一模式,等接收第一串列封包、第二串列封包或第三串列封包後,再切換到對應的第二模式、第三模式或第四模式。在裝置200由第一模式切換至第二模式、第三模式或第四模式(亦即裝置200切離第一模式)後,當裝置200再次發生重置時,裝置200又會回復至第一模式。In this embodiment, after the device 200 is reset, the device 200 can return to the first mode, and after receiving the first serial packet, the second serial packet, or the third serial packet, switch to the corresponding second. Mode, third mode or fourth mode. After the device 200 is switched from the first mode to the second mode, the third mode, or the fourth mode (ie, the device 200 is disconnected from the first mode), when the device 200 is reset again, the device 200 returns to the first mode.

由此可知,當裝置200發生錯誤狀態時,藉由回傳資料量小的第一錯誤旗標符號,告知控制器有錯誤狀態發生。如此一來,在裝置200平時進行錯誤狀態監控時,可利用省時的第二模式來得知是否有錯誤狀態發生,以避免大量降低資料更新率。It can be seen that when the device 200 has an error state, the controller is notified of an error state by returning a first error flag symbol having a small amount of data. In this way, when the device 200 performs error state monitoring in peacetime, the second mode of saving time can be used to know whether an error state occurs, so as to avoid a large reduction in the data update rate.

當裝置200處於第三模式時,回傳資料量大的第一狀態資訊或是第二狀態資訊,進而告知裝置200以及下一級之具錯誤回報單線傳輸裝置的運作狀態。When the device 200 is in the third mode, the first state information or the second state information with a large amount of data is returned, thereby informing the device 200 and the operating state of the faulty single-line transmission device of the next stage.

當裝置200處於第四模式時,再經由第一端201回傳資料量小的第一錯誤旗標符號,進而告知裝置200發生錯誤。When the device 200 is in the fourth mode, the first error flag symbol with a small amount of data is returned via the first end 201, thereby informing the device 200 that an error has occurred.

請參考「第3圖」所示,其為本發明之串聯(Cascade)具錯誤回報單線傳輸裝置的示意圖。其中,串聯具錯誤回報單線傳輸裝置例如以單線半雙工進行資料傳輸。串聯具錯誤回報單線傳輸 裝置300(以下簡稱串聯裝置300)包括具錯誤回報單線傳輸裝置310、320、330(以下簡稱裝置310、320、330)。並且,裝置310、320、330以串聯方式連接,裝置310、320、330各自具有第一端311、321、331與第二端312、322、332。而裝置310、320、330的內部元件及其耦接關係與操作流程可參考「第1圖」、「第2圖」之實施例的說明,故在此不再贅述。本實施例僅以3個具錯誤回報單線傳輸裝置為例,但本發明不限於此,使用者亦可視需求自行調整具錯誤回報單線傳輸裝置的數量。Please refer to FIG. 3, which is a schematic diagram of a Cascade faulty single-line transmission device of the present invention. Among them, the tandem error reporting single line transmission device performs data transmission by, for example, single line half duplex. Tandem with error return single line transmission The device 300 (hereinafter referred to as the serial device 300) includes a single-line transmission device 310, 320, 330 (hereinafter referred to as the devices 310, 320, 330) with error reports. Also, the devices 310, 320, 330 are connected in series, and the devices 310, 320, 330 each have a first end 311, 321, 331 and a second end 312, 322, 332. For the internal components of the devices 310, 320, and 330, and their coupling relationships and operational procedures, reference may be made to the description of the embodiments of "FIG. 1" and "FIG. 2", and therefore no further description is provided herein. In this embodiment, only three erroneous-return single-line transmission devices are taken as an example, but the present invention is not limited thereto, and the user can adjust the number of erroneous-return single-line transmission devices by themselves.

首先,當裝置310、320、330處於第一模式時,串聯裝置300由裝置310(例如第一級裝置)的第一端311分別接收具有第一切換訊號的第一串列封包。接著,裝置310由第一串列封包取得對應的更新資料,以進行相關的更新操作。之後,裝置310將第一串列封包由第二端312輸出。First, when the devices 310, 320, 330 are in the first mode, the serial device 300 receives the first serial packet having the first switching signal by the first end 311 of the device 310 (eg, the first level device). Next, the device 310 obtains the corresponding update data from the first serial packet to perform the related update operation. Thereafter, device 310 outputs the first serial packet from second end 312.

接著,裝置320(例如第二級裝置)由第一端321接收裝置310的第二端312所輸出的第一串列封包,且由第一串列封包中取得對應的更新資料與第一切換訊號。之後,裝置320將第一串列封包由第二端322輸出。Next, the device 320 (for example, the second-level device) receives the first serial packet output by the second end 312 of the device 310 by the first end 321 , and obtains the corresponding update data and the first switch from the first serial packet. Signal. Thereafter, device 320 outputs the first series of packets from second end 322.

接著,裝置330(例如第三級裝置)由第一端331接收裝置320的第二端322所輸出的第一串列封包,且由第一串列封包中取得對應的更新資料與第一切換訊號。之後,裝置330將第一串列封包由第二端332輸出。Next, the device 330 (for example, the third-level device) receives the first serial packet output by the second end 322 of the device 320 by the first end 331, and obtains the corresponding update data and the first switch from the first serial packet. Signal. Thereafter, device 330 outputs the first serial packet by second end 332.

接著,在裝置310、320、330接收完第一串列封包後,會依 據取得的第一切換訊號以由第一模式切換至第二模式,使得串聯裝置300進入錯誤狀態的監控操作。Then, after the devices 310, 320, and 330 receive the first serial packet, they will follow The first switching signal is obtained to switch from the first mode to the second mode, so that the serial device 300 enters the monitoring operation of the error state.

當串聯裝置300在第二模式時,假設裝置310發生錯誤狀態,則裝置310會產生第一錯誤旗標符號,並由第一端311輸出至控制器(即前一級裝置),因此控制器便會得知串聯裝置300有錯誤狀態的情況發生。When the serial device 300 is in the second mode, assuming that the device 310 has an error state, the device 310 generates a first error flag symbol and is output by the first terminal 311 to the controller (ie, the previous device), so the controller It will be known that the series device 300 has an error state.

假設裝置320發生錯誤狀態,則裝置320會產生第一錯旗標符號且由第一端321輸出,而裝置310(即前一級裝置)會將裝置320所產生的第一錯誤旗標符號作為第二錯誤旗標符號,並由第二端312接收。接著,裝置310將此第二錯誤旗標符號轉為第一錯誤旗標,再經由第一端311輸出至控制器(即前一級裝置),因此控制器便會得知串聯裝置300有錯誤狀態的情況發生。假設裝置330發生錯誤狀態,則裝置330會產生第一錯旗標符號且由第一端331輸出,再經過裝置320並傳遞到裝置310,最後經由裝置310的第一端311輸出至控制器(即前一級裝置),因此控制器便會得知串聯裝置300有錯誤狀態的情況發生。Assuming that the device 320 has an error state, the device 320 generates a first error flag symbol and is output by the first terminal 321 , and the device 310 (ie, the previous device) uses the first error flag symbol generated by the device 320 as the first The second error flag is received by the second end 312. Then, the device 310 converts the second error flag symbol into a first error flag, and then outputs the signal to the controller (ie, the previous device) via the first end 311, so the controller knows that the serial device 300 has an error state. The situation happened. Assuming that the device 330 is in an error state, the device 330 generates a first flag error flag and is output by the first terminal 331, passes through the device 320 and transmits to the device 310, and finally outputs to the controller via the first end 311 of the device 310 ( That is, the former device), so the controller will know that the serial device 300 has an error state.

之後,串聯裝置300進行重置,以回復成第一模式,以能再次接收任何串列封包。串聯裝置300在第二模式僅傳遞一個資料量小的第一錯誤旗標符號號,亦即控制器平時可利用省時的第二模式來做監控,以得知是否有錯誤狀態發生。此方式可有效減少控制器接收資料的時間,以避免大量降低資料更新率。另外,控制器接收到第一錯誤旗標符號能得知串聯裝置300發生錯誤狀 態,但控制器無法確切得知是哪一個具錯誤回報單線傳輸裝置發生錯誤。因此,在裝置310、320、330進行重置而回到第一模式後,控制器可進一步提供具有第二切換訊號的第二串列封包,使得裝置310、320、330在接收完第二串列封包後依據第二切換訊號而由第一模式進入第三模式。Thereafter, the serial device 300 resets to return to the first mode to be able to receive any of the serial packets again. The serial device 300 transmits only a first error flag symbol number with a small amount of data in the second mode, that is, the controller can normally perform monitoring by using the second mode of saving time to know whether an error state occurs. This method can effectively reduce the time for the controller to receive data, so as to avoid a large reduction in data update rate. In addition, the controller receives the first error flag symbol to know that the serial device 300 has an error. State, but the controller cannot know exactly which error has occurred in the single-line transmission device. Therefore, after the device 310, 320, 330 is reset and returned to the first mode, the controller may further provide a second serial packet with the second switching signal, so that the device 310, 320, 330 receives the second string. After the packet is encapsulated, the third mode is entered from the first mode according to the second switching signal.

接著,裝置330產生第一狀態資訊並將其轉為編碼訊號由第一端331輸出,而裝置320(即前一級裝置)將裝置330所產生的編碼訊號作為第二狀態資訊,並由第二端322接收。之後,裝置320會產生第一狀態資訊,且將此第一狀態資訊與前述第二端322接收的第二狀態資訊進行編碼,以產生一編碼訊號(即包括裝置330與320的狀態資訊)。接著,裝置320將此編碼訊號經由第一端321輸出,而裝置310(即前一級裝置)會將裝置320所產生的編碼訊號作為第二狀態資訊,並由第二端312接收。Then, the device 330 generates the first state information and converts it into an encoded signal, which is output by the first end 331, and the device 320 (ie, the previous device) uses the encoded signal generated by the device 330 as the second state information, and is second. End 322 receives. Then, the device 320 generates the first status information, and encodes the first status information and the second status information received by the second end 322 to generate an encoded signal (ie, including status information of the devices 330 and 320). Then, the device 320 outputs the encoded signal via the first end 321 , and the device 310 (ie, the previous device) uses the encoded signal generated by the device 320 as the second status information and is received by the second end 312 .

接著,裝置310會產生第一狀態資訊,且將此第一狀態資訊與第二端312接收的第二狀態資訊進行編碼,以產生一編碼訊號(即包括裝置330、320與310的狀態資訊),此編碼訊號會經由第一端311輸出至控制器(即前一級裝置)。Then, the device 310 generates the first status information, and encodes the first status information and the second status information received by the second end 312 to generate an encoded signal (ie, including status information of the devices 330, 320, and 310). The coded signal is output to the controller (ie, the previous stage device) via the first end 311.

在本實施例中,當串聯裝置300發生錯誤狀態時,藉由回傳資料量較小的第一錯誤旗標符號,告知控制器有錯誤狀態發生,再藉由回傳資料量較大之具有第一資訊狀態與第二資訊狀態的編碼訊號,以告知控制器哪一個具錯誤回報單線傳輸裝置發生錯誤。如此一來,在平時監控時利用回傳資料量較小的第二模式, 等到有監控到錯誤狀態發生,再用回傳資料量較大的第三模式來確認詳細資訊,以降低平時監控錯誤回報的資料量,來增加資料更新率。In this embodiment, when the serial device 300 has an error state, the first error flag symbol with a small amount of data is returned, and the controller is notified that an error state occurs, and the data amount is large by returning the data. The first information state and the second information state of the encoded signal to inform the controller which error has occurred in the single-line transmission device. In this way, in the usual monitoring, the second mode with a small amount of returned data is used. Wait until the monitored error state occurs, and then use the third mode with a large amount of returned data to confirm the detailed information, so as to reduce the amount of data of the usual monitoring error return, to increase the data update rate.

前述實施例中,以回傳所有具錯誤回報單線傳輸裝置的完整資訊狀態,以得知哪一個具錯誤回報單線傳輸裝置發生錯誤。但本發明不限於此,以下將另具一例來說明。In the foregoing embodiment, the complete information state of all the single-line transmission devices with error reports is returned to know which one of the error-returning single-line transmission devices has an error. However, the present invention is not limited to this, and an example will be described below.

在所有串聯的裝置310、320、330進行重置而回到第一模式時,所有串聯的裝置310、320、330更接收第三串列封包。其中,第三串列封包帶有多個模式切換資訊,且每一模式切換資訊會對應某一串聯的裝置310、320、330,而每一模式切換資訊例如包括第一切換訊號或第三切換訊號。When all of the series connected devices 310, 320, 330 are reset to return to the first mode, all of the series connected devices 310, 320, 330 further receive the third serial packet. The third serial packet has multiple mode switching information, and each mode switching information corresponds to a serially connected device 310, 320, 330, and each mode switching information includes, for example, a first switching signal or a third switching. Signal.

當所有串聯的裝置310、320、330從第一端311、321、331接收到第三串列封包時,每一串聯的裝置310、320、330會從第三串列封包找到屬於裝置310、320、330各自對應的模式切換資訊,再依據找到對應的模式切換資訊來決定切換成第二模式或第四模式。When all of the series connected devices 310, 320, 330 receive the third serial packet from the first end 311, 321, 331, each serially connected device 310, 320, 330 finds the belonging device 310 from the third serial packet. 320, 330 respectively corresponding mode switching information, and then according to finding the corresponding mode switching information to decide to switch to the second mode or the fourth mode.

也就是說,所有串聯的裝置310、320、330的部分處於第二模式,另一部分處於第四模式,或所有串聯的裝置310、320、330都是處於第二模式,或所有串聯的裝置310、320、330都是處於第四模式。That is, all of the devices 310, 320, 330 in series are in the second mode, the other portion is in the fourth mode, or all of the devices 310, 320, 330 in series are in the second mode, or all of the devices 310 in series 320 and 330 are all in the fourth mode.

舉例來說,假設裝置330(所有串聯的裝置310、320、330的部分)處於第二模式,裝置310、320(所有串聯的裝置310、 320、330的另一部分)處於第四模式,若處於第二模式的裝置330發生錯誤狀態,裝置330會產生第一錯誤旗標符號,處於第四模式的裝置310與裝置320會將裝置330產生的第一錯誤旗標符號經過轉換與傳遞最後由裝置310(亦即串聯第一個之裝置)的第一端311輸出至控制器,以進行錯誤狀態的回報。For example, assume that device 330 (part of all devices 310, 320, 330 in series) is in a second mode, devices 310, 320 (all devices 310 in series, The other part of 320, 330 is in the fourth mode. If the device 330 in the second mode has an error state, the device 330 generates a first error flag symbol, and the device 310 and the device 320 in the fourth mode generate the device 330. The first error flag symbol is converted and transmitted and finally output to the controller by the first end 311 of the device 310 (i.e., the device in series) to perform a return of the error state.

如此一來,因控制器能事前得知此時只有裝置330是處於第二模式,因此便可得知裝置330發生錯誤。相反的,若控制器在此時沒有接收到任何第一錯誤旗標符號,也能因控制器能事前得知此時只有裝置330是處於第二模式,因此便可得知裝置330沒有發生錯誤。In this way, since the controller can know in advance that only the device 330 is in the second mode at this time, it can be known that the device 330 has an error. Conversely, if the controller does not receive any first error flag at this time, the controller can know that the device 330 is in the second mode at this time, so that the device 330 can be notified that no error has occurred. .

假設裝置320(所有串聯的裝置310、320、330的部分)處於第二模式,裝置310、330(所有串聯的裝置310、320、330的另一部分)處於第四模式。若處於第二模式的裝置320發生錯誤狀態,裝置320會產生第一錯誤旗標符號,而處於第四模式的裝置310會將裝置320產生的第一錯誤旗標符號經過轉換與傳遞,最後由裝置310(亦即串聯第一個之裝置)的第一端311輸出至控制器,以進行錯誤狀態的回報。It is assumed that device 320 (part of all devices 310, 320, 330 in series) is in the second mode, and devices 310, 330 (other portions of all devices 310, 320, 330 in series) are in the fourth mode. If the device 320 in the second mode has an error state, the device 320 generates a first error flag symbol, and the device 310 in the fourth mode converts and transmits the first error flag symbol generated by the device 320, and finally The first end 311 of the device 310 (i.e., the first device in series) is output to the controller for a return on the error condition.

如此,因控制器能事前得知此時只有裝置320是處於第二模式,因此便可得知裝置320發生錯誤。相反的,若控制器在此時沒有接收到任何第一錯誤旗標符號,也能因控制器能事前得知此時只有裝置320是第二模式,因此便可得知裝置320沒有發生錯誤。其餘則類推。如此一來,控制器便可得知哪一個具錯誤回報 單線傳輸裝置發生錯誤。In this way, since the controller can know in advance that only the device 320 is in the second mode at this time, it can be known that the device 320 has an error. Conversely, if the controller does not receive any first error flag at this time, it can be known by the controller that only the device 320 is in the second mode at this time, so that it is known that the device 320 has not generated an error. The rest is analogous. In this way, the controller can know which one has the wrong return. An error occurred in the single line transmission device.

本發明之實施例所揭露的具錯誤回報單線傳輸裝置與串聯具錯誤回報單線傳輸裝置,若在第一模式接收具有第一切換訊號的第一串列封包,其於具錯誤回報單線傳輸裝置取得更新資料後,由第一模式切換至第二模式,當具錯誤回報單線傳輸裝置處於第二模式時,若任一具錯誤回報單線傳輸裝置發生錯誤狀態,則回傳資料量小的一個第一錯誤旗標符號,以告知有錯誤狀態發生。The error-rejected single-line transmission device and the erroneous-return single-line transmission device disclosed in the embodiment of the present invention receive the first serial packet with the first switching signal in the first mode, and obtain the first serial transmission device with the error return After updating the data, the first mode is switched to the second mode. When the single-line transmission device with the error report is in the second mode, if any error reporting single-line transmission device has an error state, the amount of returned data is small. Error flag symbol to indicate that an error condition has occurred.

另外,當得知串聯第一個之具錯誤回報單線傳輸裝置的第一端輸出第一錯誤旗標符號時,無法確切得知是哪一個具錯誤回報單線傳輸裝置發生錯誤,可在將具錯誤回報單線傳輸裝置重置回第一模式後,再接收具有第二切換訊號的第二串列封包,以回傳資料量較大之具有第一資訊狀態與第二資訊狀態的編碼訊號,而得知哪一個具錯誤回報單線傳輸裝置發生錯誤。In addition, when it is known that the first end of the first error transmission single-line transmission device in series outputs the first error flag symbol, it is impossible to know exactly which error has occurred in the single-line transmission device, and the error may be After returning the single-line transmission device to return to the first mode, receiving the second serial packet with the second switching signal to return the encoded signal having the first information state and the second information state with a larger amount of data, Know which one has the wrong return single-line transmission device error.

此外,還可進一步在將具錯誤回報單線傳輸裝置重置後,具錯誤回報單線傳輸裝置重置於第一模式下依序接收具有多個模式切換資訊號的第三串列封包,而每一模式切換資訊包含第一切換訊號或第三切換訊號,且利用第三串列封包讓串聯之某一指定的具錯誤回報單線傳輸裝置切換成第二模式,其他的具錯誤回報單線傳輸裝置切換成第四模式,若從串聯第一個之具錯誤回報單線傳輸裝置的第一端有輸出第一錯誤旗標符號,就能得知是被切換成第二模式的具錯誤回報單線傳輸裝置有發生錯誤狀態,以得知哪一個具錯誤回報單線傳輸裝置發生錯誤。In addition, after resetting the error-returning single-line transmission device, the error-returning single-line transmission device resets the first serial mode to sequentially receive the third serial packet with multiple mode switching information numbers, and each The mode switching information includes a first switching signal or a third switching signal, and the third serial packet is used to switch a specified one of the serialized faulty single-line transmission devices into the second mode, and the other error-returning single-line transmission device is switched to In the fourth mode, if the first error flag is output from the first end of the first error transmission single-line transmission device in series, it can be known that the error-return single-line transmission device that is switched to the second mode has occurred. Error status to know which one has an error returning a single line transmission device error.

如此一來,具錯誤回報單線傳輸裝置在平時監控時,由省時的第二模式執行,一旦得知有錯誤狀態發生,再利用耗時的第三模式或是第四模式,來得知是哪一個具錯誤回報單線傳輸裝置發生錯,因此可節省平時裝置監控時所花的時間,進而避免大量降低資料更新率。另外,在具錯誤回報單線傳輸裝置的串聯級數越大,前述避免大量降低資料更新率的效果越明顯。In this way, when the single-line transmission device with error reporting is normally monitored, it is executed by the second mode of saving time. Once it is known that an error state occurs, the time-consuming third mode or the fourth mode is used to know which one is. A faulty single-line transmission device is faulty, so it saves time spent on normal device monitoring, thereby avoiding a large reduction in data update rate. In addition, the greater the number of series stages of the single-line transmission device with the error return, the more obvious the effect of avoiding a large reduction in the data update rate.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。While the present invention has been described above in the foregoing embodiments, it is not intended to limit the invention, and the invention may be modified and modified without departing from the spirit and scope of the invention. The scope of patent protection shall be subject to the definition of the scope of the patent application attached to this specification.

100、200、310、320、330‧‧‧具錯誤回報單線傳輸裝置100, 200, 310, 320, 330‧‧‧ error return single line transmission device

101、201、311、321、331‧‧‧第一端101, 201, 311, 321, 331‧‧‧ first end

102、202、321、322、332‧‧‧第二端102, 202, 321, 322, 332‧‧‧ second end

110、210‧‧‧資料處理器110, 210‧‧‧ data processor

120、220‧‧‧偵測器120, 220‧‧‧Detector

130、230‧‧‧錯誤旗標產生器130, 230‧‧‧ error flag generator

231‧‧‧檢測器231‧‧‧Detector

232‧‧‧脈波產生器232‧‧‧ Pulse Generator

240‧‧‧模式控制器240‧‧‧Mode Controller

250‧‧‧狀態資訊產生器250‧‧‧Status Information Generator

260‧‧‧狀態處理器260‧‧‧ State Processor

261‧‧‧解碼器261‧‧‧Decoder

262‧‧‧緩衝器262‧‧‧ buffer

263‧‧‧編碼器263‧‧‧Encoder

270‧‧‧重置器270‧‧‧Reset

300‧‧‧串聯具錯誤回報單線傳輸裝置300‧‧‧ tandem with error return single line transmission

R1、R2‧‧‧下拉電阻R1, R2‧‧‧ pull-down resistor

SW1‧‧‧第一開關SW1‧‧‧ first switch

SW2‧‧‧第二開關SW2‧‧‧second switch

SW3‧‧‧第三開關SW3‧‧‧ third switch

SW4‧‧‧第四開關SW4‧‧‧fourth switch

SW5‧‧‧第五開關SW5‧‧‧ fifth switch

SW6‧‧‧第六開關SW6‧‧‧ sixth switch

SW7‧‧‧第七開關SW7‧‧‧ seventh switch

CS1、CS2、CS3、CS4‧‧‧控制訊號CS1, CS2, CS3, CS4‧‧‧ control signals

RST‧‧‧重置訊號RST‧‧‧Reset signal

第1圖為本發明之具錯誤回報單線傳輸裝置的示意圖。Figure 1 is a schematic illustration of a single-line transmission device with error reporting in accordance with the present invention.

第2圖為本發明之具錯誤回報單線傳輸裝置的詳細示意圖。Figure 2 is a detailed schematic view of the single-line transmission device with error return of the present invention.

第3圖為本發明之串聯具錯誤回報單線傳輸裝置的示意圖。Figure 3 is a schematic view of a tandem faulty single line transmission device of the present invention.

100‧‧‧具錯誤回報單線傳輸裝置100‧‧‧Wrong return single line transmission

101‧‧‧第一端101‧‧‧ first end

102‧‧‧第二端102‧‧‧ second end

110‧‧‧資料處理器110‧‧‧ data processor

120‧‧‧偵測器120‧‧‧Detector

130‧‧‧錯誤旗標產生器130‧‧‧Error flag generator

SW1‧‧‧第一開關SW1‧‧‧ first switch

SW2‧‧‧第二開關SW2‧‧‧second switch

SW3‧‧‧第三開關SW3‧‧‧ third switch

SW4‧‧‧第四開關SW4‧‧‧fourth switch

Claims (26)

一種具錯誤回報單線傳輸裝置,包含一第一端;一第二端;一資料處理器,耦接於該第一端及該第二端,用以在當該具錯誤回報單線傳輸裝置處於一第一模式時,該第一端接收具有一第一切換訊號的一第一串列封包,該資料處理器由該第一串列封包中取得一更新資料,再將該第一串列封包經由該第二端輸出,並在該具錯誤回報單線傳輸裝置接收完該第一串列封包後,依據該第一切換訊號,該具錯誤回報單線傳輸裝置由該第一模式切換至一第二模式;一偵測器,用以當該具錯誤回報單線傳輸裝置處於該第二模式時偵測該具錯誤回報單線傳輸裝置是否發生一錯誤狀態,並據以產生一偵測訊號;以及一錯誤旗標產生器,用以當該具錯誤回報單線傳輸裝置處於該第二模式時,依據該偵測訊號決定是否產生一第一錯誤旗標符號,其中當該具錯誤回報單線傳輸裝置發生該錯誤狀態時,該錯誤旗標產生器產生該第一錯誤旗標符號,且該第一錯誤旗標符號經由該第一端輸出,當該具錯誤回報單線傳輸裝置沒有發生該錯誤狀態時,該錯誤旗標產生器不產生該第一錯誤旗標符號。 A single-line transmission device with error return includes a first end; a second end; a data processor coupled to the first end and the second end for when the single-line transmission device with error reporting is in a In the first mode, the first end receives a first serial packet having a first switching signal, and the data processor obtains an update data from the first serial packet, and then the first serial packet is sent through the first serial packet. The second end outputs, and after the error reporting single line transmission device receives the first serial packet, the error reporting single line transmission device switches from the first mode to the second mode according to the first switching signal a detector for detecting whether an error state occurs in the single-line transmission device with the error returning single-line transmission device, and generating a detection signal; and an error flag; a flag generator, configured to determine whether to generate a first error flag symbol according to the detection signal when the error reporting single line transmission device is in the second mode, wherein the error flag is transmitted by the single line When the error state occurs, the error flag generator generates the first error flag symbol, and the first error flag symbol is output via the first end, and the error state does not occur when the error reporting single line transmission device does not occur. The error flag generator does not generate the first error flag symbol. 如請求項1所述之具錯誤回報單線傳輸裝置,其中當該具錯誤 回報單線傳輸裝置處於該第二模式時,當該錯誤旗標產生器由該第二端接收到一第二錯誤旗標符號時,該錯誤旗標產生器將該第二錯誤旗標符號轉為該第一錯誤旗標符號,再由該第一端輸出,其中該第二錯誤旗標符號為與該第二端耦接之下一級之具錯誤回報單線傳輸裝置產生的該第一錯誤旗標符號。 The error return single line transmission device as claimed in claim 1, wherein the error is When the single-line transmission device is in the second mode, when the error flag generator receives a second error flag symbol from the second end, the error flag generator converts the second error flag symbol to The first error flag symbol is further output by the first end, wherein the second error flag symbol is the first error flag generated by the error reporting single line transmission device coupled to the second end symbol. 如請求項2所述之具錯誤回報單線傳輸裝置,其中該具錯誤回報單線傳輸裝置由該第一端輸出該第一錯誤旗標符號後會停止操作,直到該具錯誤回報單線傳輸裝置進行重置並回到該第一模式為止。 The faulty single-line transmission device of claim 2, wherein the error-returning single-line transmission device stops operating after outputting the first error flag symbol by the first end until the error reporting single-line transmission device performs heavy Set and return to the first mode. 如請求項3所述之具錯誤回報單線傳輸裝置,更包含:一狀態資訊產生器,用以當該具錯誤回報單線傳輸裝置回到該第一模式時,該具錯誤回報單線傳輸裝置更接收具有一第二切換訊號的一第二串列封包,該具錯誤回報單線傳輸裝置接收完該第二串列封包後,依據該第二切換訊號,該具錯誤回報單線傳輸裝置由該第一模式切換至一第三模式,當該具錯誤回報單線傳輸裝置處於該第三模式時,該狀態資訊產生器產生一第一狀態資訊,該第一狀態資訊為該具錯誤回報單線傳輸裝置的詳細狀態資訊;以及一狀態處理器,耦接該狀態資訊產生器,接收該第一狀態資訊,並且將由該第二端接收到的一編碼訊號作為一第二狀態資訊,該狀態處理器將該第一狀態資訊與該第二狀態資訊編碼後,產生該編碼訊號,該編碼訊號由該第一端輸出,其中該第 二狀態資訊為與該第二端耦接之下一級之具錯誤回報單線傳輸裝置之該第一端輸出的該編碼訊號。 The error reporting single line transmission device of claim 3, further comprising: a status information generator, wherein the error reporting single line transmission device receives further when the error reporting single line transmission device returns to the first mode a second serial packet having a second switching signal, wherein the error reporting single line transmission device receives the second serial packet, and according to the second switching signal, the error reporting single line transmission device is configured by the first mode Switching to a third mode, when the error reporting single line transmission device is in the third mode, the status information generator generates a first status information, where the first status information is a detailed status of the error reporting single line transmission device And a state processor coupled to the state information generator, receiving the first state information, and using a coded signal received by the second terminal as a second state information, the state processor first After the status information is encoded and the second status information is encoded, the encoded signal is generated, and the encoded signal is output by the first end, where the first The two-state information is the coded signal output by the first end of the faulty single-line transmission device of the lower stage coupled to the second end. 如請求項4所述之具錯誤回報單線傳輸裝置,其中該第一錯誤旗標符號的資料量小於該第一狀態資訊與該第二狀態資訊的資料量。 The error return single line transmission device of claim 4, wherein the data amount of the first error flag symbol is smaller than the data amount of the first status information and the second status information. 如請求項4所述之具錯誤回報單線傳輸裝置,其中該具錯誤回報單線傳輸裝置由該第一端輸出完該編碼訊號後會停止操作,直到該具錯誤回報單線傳輸裝置進行重置並回到該第一模式為止。 The faulty single-line transmission device according to claim 4, wherein the error-returning single-line transmission device stops operating after outputting the encoded signal by the first end, until the error-returning single-line transmission device resets and returns Until the first mode. 如請求項4所述之具錯誤回報單線傳輸裝置,其中該錯誤狀態包括溫度異常、電流異常、電壓源開路、電壓源短路或斷路偵測異常。 The faulty single-line transmission device according to claim 4, wherein the error state includes temperature abnormality, current abnormality, voltage source open circuit, voltage source short circuit or open circuit detection abnormality. 如請求項4所述之具錯誤回報單線傳輸裝置,其中該第一狀態資訊與該第二狀態資訊包括溫度、電流、電壓源的狀態資訊。 The error reporting single line transmission device of claim 4, wherein the first status information and the second status information comprise status information of temperature, current, and voltage source. 如請求項4所述之具錯誤回報單線傳輸裝置,其中該狀態處理器包括:一解碼器,在該第三模式時耦接該第二端,用以接收該第二狀態資訊,並將該第二狀態資訊進行解碼,以產生一解碼訊號;一緩衝器,耦接該解碼器,用以接收該解碼訊號,並將該解碼訊號進行緩衝,以產生一緩衝訊號;以及一編碼器,在該第三模式時耦接該狀態資訊產生器、該緩 衝器與該第一端,用以接收該第一狀態資訊與該緩衝訊號,並將該第一狀態資訊與該緩衝訊號進行編碼,以產生該編碼訊號,且該編碼訊號由該第一端輸出。 The error reporting single-line transmission device of claim 4, wherein the state processor comprises: a decoder coupled to the second end for receiving the second state information in the third mode, and The second state information is decoded to generate a decoded signal; a buffer coupled to the decoder for receiving the decoded signal, and buffering the decoded signal to generate a buffered signal; and an encoder The third mode is coupled to the state information generator, and the And the first end is configured to receive the first state information and the buffer signal, and encode the first state information and the buffer signal to generate the encoded signal, and the coded signal is used by the first end Output. 如請求項4所述之具錯誤回報單線傳輸裝置,其中該具錯誤回報單線傳輸裝置的該第一端與該第二端於一預設時間內沒有任何訊號傳輸,該具錯誤回報單線傳輸裝置會進行重置。 The error reporting single-line transmission device of claim 4, wherein the first end and the second end of the error-rejected single-line transmission device do not transmit any signal within a predetermined time, the error-returning single-line transmission device Will be reset. 如請求項4所述之具錯誤回報單線傳輸裝置,其中該具錯誤回報單線傳輸裝置包括:一第一開關,耦接於該資料處理器與該第一端之間,且該第一開關依據該第一切換訊號進行切換,該第一開關於該第一模式時導通,該第一開關於該第二模式與一第三模式時斷開;一第二開關,耦接於該資料處理器與該第二端之間,且該第二開關依據該第一切換訊號進行切換,該第二開關於該第一模式時導通,該第二開關於該第二模式與該第三模式時斷開;一第三開關,耦接於該錯誤旗標產生器與該第一端之間,且該第三開關依據該第一切換訊號進行切換,該第三開關於該第二模式時導通,該第三開關於該第一模式與該第三模式時斷開;以及一第四開關,耦接於該錯誤旗標產生器與該第二端之間,且該第四開關依據該第一切換訊號進行切換,該第四開關於該第二模式時導通,該第四開關於該第一模式與該第三模式時斷開。 The faulty single-line transmission device of claim 4, wherein the error-returning single-line transmission device comprises: a first switch coupled between the data processor and the first end, and the first switch is based on The first switch is switched, the first switch is turned on in the first mode, the first switch is turned off in the second mode and a third mode, and a second switch is coupled to the data processor And the second switch is switched according to the first switching signal, the second switch is turned on in the first mode, and the second switch is interrupted in the second mode and the third mode a third switch is coupled between the error flag generator and the first end, and the third switch is switched according to the first switching signal, and the third switch is turned on in the second mode, The third switch is disconnected between the first mode and the third mode; and a fourth switch is coupled between the error flag generator and the second end, and the fourth switch is according to the first Switching signals to switch, the fourth switch is in the second mode When the current is turned on, the fourth switch is disconnected when the first mode is in the third mode. 如請求項11所述之具錯誤回報單線傳輸裝置,其中該具錯誤回報單線傳輸裝置更包括:一第五開關,耦接於該狀態處理器與該第一端之間,該第五開關依據一第二切換訊號進行切換,該第五開關於於該第三模式時導通,該第五開關於該第一模式與該第二模式時斷開;以及一第六開關,耦接於該狀態處理器與該第二端之間,該第六開關依據該第二切換訊號進行切換,該第六開關於該第三模式時導通,該第六開關於該第一模式與該第二模式時斷開;其中,該第二切換訊號包括在該第二串列封包中,而該資料處理器於該第一模式接收該第二串列封包,並擷取出該第二切換訊號,且將該第二串列封包經由該第二端輸出,該資料處理器在接收完該第二串列封包後,依據該第二切換訊號,由該第一模式切換至該第三模式,且該第一開關、該第二開關、該第三開關與該第四開關更於該第三模式斷開。 The faulty single-line transmission device of claim 11, wherein the error-returning single-line transmission device further includes: a fifth switch coupled between the state processor and the first end, the fifth switch is a second switching signal is switched, the fifth switch is turned on in the third mode, the fifth switch is turned off in the first mode and the second mode; and a sixth switch is coupled to the state Between the processor and the second end, the sixth switch is switched according to the second switching signal, the sixth switch is turned on in the third mode, and the sixth switch is in the first mode and the second mode Disconnecting; wherein the second switching signal is included in the second serial packet, and the data processor receives the second serial packet in the first mode, and extracts the second switching signal, and the The second serial packet is outputted through the second end, and after receiving the second serial packet, the data processor switches from the first mode to the third mode according to the second switching signal, and the first a switch, the second switch, the third opening More to the third mode and the fourth disconnecting switch. 如請求項12所述之具錯誤回報單線傳輸裝置,其中該具錯誤回報單線傳輸裝置會依據一第三切換訊號從該第一模式切換到一第四模式,且該具錯誤回報單線傳輸裝置更包括:一第七開關,耦接該偵測器及該錯誤旗標產生器之間,該第七開關依據該第三切換訊號進行切換,該第七開關於該第四模式時斷開,該第七開關於該第一模式、該第二模式、該第三模式導通; 其中該第三切換訊號包括在一第三串列封包中,且該第三串列封包帶有多個模式切換資訊,該些模式切換資訊其中之一會對應到該具錯誤回報單線傳輸裝置,該些模式切換資訊各自包括該第一切換訊號或該第三切換訊號,該具錯誤回報單線傳輸裝置的該資料處理器於該第一模式從該第一端接收到該第三串列封包,並從該第三串列封包找到屬於該具錯誤回報單線傳輸裝置對應的該模式切換資訊,且將該第三串列封包經由該第二端輸出;當該具錯誤回報單線傳輸裝置從該第三串列封包中找到的該模式切換資訊是該第一切換訊號,則該具錯誤回報單線傳輸裝置從該第一模式切換為該第二模式;當該具錯誤回報單線傳輸裝置從該第三串列封包中找到的該模式切換資訊是該第三切換訊號,則該具錯誤回報單線傳輸裝置從該第一模式切換為該第四模式,該具錯誤回報單線傳輸裝置在該第四模式時,該第三開關與該第四開關導通,且在該錯誤旗標產生器由該第二端有接收到該第二錯誤旗標符號時,才會將該第二錯誤旗標符號轉為該第一錯誤旗標符號,再由該第一端輸出,否則該錯誤旗標產生器不會從該第一端輸出該第一錯誤旗標符號,且在該錯誤旗標產生器在產生完該第一錯誤旗標符號後,該具錯誤回報單線傳輸裝置會停止操作,直到該具錯誤回報單線傳輸裝置被重置回該第一模式為止,而該第二錯誤旗標符號由該第二端耦接之下一級之具錯誤回報單 線傳輸裝置之該第一端產生的該第一錯誤旗標符號。 The error reporting single-line transmission device of claim 12, wherein the error-returning single-line transmission device switches from the first mode to a fourth mode according to a third switching signal, and the error-returning single-line transmission device further The seventh switch is coupled between the detector and the error flag generator, and the seventh switch is switched according to the third switching signal, and the seventh switch is turned off in the fourth mode, where The seventh switch is turned on in the first mode, the second mode, and the third mode; The third switching signal is included in a third serial packet, and the third serial packet has multiple mode switching information, and one of the mode switching information corresponds to the error reporting single line transmission device. Each of the mode switching information includes the first switching signal or the third switching signal, and the data processor of the error reporting single line transmission device receives the third serial packet from the first end in the first mode, And finding, by the third serial packet, the mode switching information corresponding to the error reporting single line transmission device, and outputting the third serial packet through the second end; when the error reporting single line transmission device is from the first The mode switching information found in the three series of packets is the first switching signal, and the error reporting single line transmission device switches from the first mode to the second mode; when the error reporting single line transmission device is from the third The mode switching information found in the serial packet is the third switching signal, and the error reporting single line transmission device switches from the first mode to the fourth mode, the error is When the single-line transmission device is returned in the fourth mode, the third switch is turned on and the fourth switch is turned on, and when the error flag generator receives the second error flag symbol from the second end, The second error flag symbol is converted into the first error flag symbol, and then output by the first end, otherwise the error flag generator does not output the first error flag symbol from the first end, and After the error flag generator generates the first error flag symbol, the error reporting single line transmission device stops operating until the error reporting single line transmission device is reset back to the first mode, and the The second error flag symbol is coupled by the second end to the next level with a false return The first error flag symbol generated by the first end of the line transmission device. 如請求項13所述之具錯誤回報單線傳輸裝置,其中該具錯誤回報單線傳輸裝置更包括:一模式控制器,耦接該資料處理器、該第一開關、該第二開關、該第三開關、該第四開關、該第五開關、該第六開關與該第七開關,用以依據該資料處理器所擷取出之該第一切換訊號、該第二切換訊號或該第三切換訊號,控制該第一開關、該第二開關、該第三開關、該第四開關、該第五開關、該第六開關與該第七開關切換,以將該具錯誤回報單線傳輸裝置由該第一模式切換至該第二模式、該第一模式切換至該第三模式或該第一模式切換至該第四模式。 The error reporting single-line transmission device of claim 13, wherein the error-returning single-line transmission device further comprises: a mode controller coupled to the data processor, the first switch, the second switch, and the third The switch, the fourth switch, the fifth switch, the sixth switch, and the seventh switch are configured to receive the first switching signal, the second switching signal, or the third switching signal according to the data processor Controlling the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the seventh switch to switch the error return single line transmission device by the first A mode switches to the second mode, the first mode switches to the third mode, or the first mode switches to the fourth mode. 如請求項14所述之具錯誤回報單線傳輸裝置,其中該錯誤旗標產生器包括:一檢測器,在該第二模式時耦接該第二端,用以檢測是否有接收該第二錯誤旗標符號,以產生一檢測訊號;以及一脈波產生器,在該第二模式時耦接該第一端、該檢測器與該偵測器,依據該偵測訊號,以產生該第一錯誤旗標符號,或是依據該檢測訊號,判斷該檢測訊號是否具有第二錯誤旗標符號,並將該檢測訊號轉換成該第一錯誤旗標符號,再經由該第一端輸出;該脈波產生器在該第四模式時,該脈波產生器耦接該第一端與該檢測器,且依據該檢測訊號,以將該檢測訊號轉換成該第一錯誤旗標符號,再經由該第一端輸出,而當該脈 波產生器產生該第一錯誤旗標符號後,該具錯誤回報單線傳輸裝置會停止操作,直到該具錯誤回報單線傳輸裝置被重置為止,其中該第二錯誤旗標符號由該第二端耦接之下一級之具錯誤回報單線傳輸裝置之第一端產生的該第一錯誤旗標符號。 The faulty single-line transmission device of claim 14, wherein the error flag generator comprises: a detector coupled to the second end for detecting whether the second error is received a flag symbol for generating a detection signal; and a pulse wave generator coupled to the first end, the detector and the detector in the second mode, according to the detection signal, to generate the first The error flag symbol, or according to the detection signal, determining whether the detection signal has a second error flag symbol, and converting the detection signal into the first error flag symbol, and outputting through the first end; When the wave generator is in the fourth mode, the pulse generator is coupled to the first end and the detector, and according to the detection signal, the detection signal is converted into the first error flag symbol, and then First end output, and when the pulse After the wave generator generates the first error flag symbol, the error reporting single line transmission device stops operating until the error reporting single line transmission device is reset, wherein the second error flag symbol is from the second end The first error flag symbol generated by the first end of the faulty single-line transmission device is coupled to the lower level. 如請求項10所述之具錯誤回報單線傳輸裝置,其中該具錯誤回報單線傳輸裝置更包括:一重置器,耦接該第一端與該第二端,用以偵測該第一端與該第二端的一訊號傳輸狀態,且該訊號傳輸狀態為該第一端與該第二端於一預設時間內沒有接收或傳輸任何訊號,則重置該具錯誤回報單線傳輸裝置回到該第一模式。 The error reporting single-line transmission device of claim 10, wherein the error-returning single-line transmission device further comprises: a resetter coupled to the first end and the second end for detecting the first end And a signal transmission state of the second end, and the signal transmission state is that the first end and the second end do not receive or transmit any signal within a predetermined time, then resetting the error return single line transmission device to return The first mode. 如請求項1所述之具錯誤回報單線傳輸裝置,其中該具錯誤回報單線傳輸裝置在該第一模式下接收一第四串列封包,該第四串列封包包括該更新資料,且將該第四串列封包經由該第二端輸出。 The error reporting single line transmission device of claim 1, wherein the error reporting single line transmission device receives a fourth serial packet in the first mode, the fourth serial packet includes the update data, and The fourth serial packet is output via the second end. 一種串聯具錯誤回報單線傳輸裝置,包括多個如請求項1所述之具錯誤回報單線傳輸裝置,且該些具錯誤回報單線傳輸裝置以串聯方式連接,其中當該些具錯誤回報單線傳輸裝置處於該第一模式時,該些具錯誤回報單線傳輸裝置依序分別由該些第一端接收具有該第一切換訊號的該第一串列封包,且由該第一串列封包中取得對應的該更新資料,再將該第一串列封包經由該第二端輸出,且在所有串聯的該些具錯誤回報單線傳輸裝置接收完該第一串列封包後,依據該第一切換訊號,所有串聯的 該些具錯誤回報單線傳輸裝置由該第一模式切換至該第二模式,當該些具錯誤回報單線傳輸裝置處於該第二模式時,當串聯的該些具錯誤回報單線傳輸裝置其中之一發生該錯誤狀態,發生該錯誤狀態之該具錯誤回報單線傳輸裝置產生該第一錯誤旗標符號並由其該第一端輸出,且串聯上一級之該具錯誤回報單線傳輸裝置將該第一錯誤旗標符號作為一第二錯誤旗標符號,以由該第二端接收該第二錯誤旗標符號並轉為該第一錯誤旗標符號再由其該第一端輸出,直到串聯第一個之該具錯誤回報單線傳輸裝置的該第一端輸出該第一錯誤旗標符號為止。 A tandem faulty single-line transmission device comprising a plurality of error-returning single-line transmission devices as claimed in claim 1, wherein the error-returning single-line transmission devices are connected in series, wherein the error-returning single-line transmission devices In the first mode, the erroneous-reporting single-line transmission devices sequentially receive the first serial packet having the first switching signal by the first terminals, and obtain corresponding correspondences from the first serial packet. The update data, the first serial packet is outputted through the second end, and after all the serially connected error transmission single line transmission devices receive the first serial packet, according to the first switching signal, All in series The error-returning single-line transmission device switches from the first mode to the second mode, and when the error-reported single-line transmission devices are in the second mode, when one of the error-returning single-line transmission devices is connected in series The error state occurs, the error reporting single-line transmission device that generates the error state generates the first error flag symbol and is output by the first end thereof, and the error reporting single-line transmission device of the first stage in series is the first The error flag symbol is used as a second error flag symbol to receive the second error flag symbol by the second end and convert to the first error flag symbol and output by the first end until the first connection in series The first end of the erroneous return single line transmission device outputs the first error flag symbol. 如請求項18所述之串聯具錯誤回報單線傳輸裝置,其中該些具錯誤回報單線傳輸裝置由該第一端輸出該第一錯誤旗標符號後會停止操作,直到該些具錯誤回報單線傳輸裝置進行重置並回到該第一模式為止。 The erroneous-reporting single-line transmission device of claim 18, wherein the error-reported single-line transmission device stops operating after outputting the first error flag symbol by the first end until the error-returning single-line transmission The device resets and returns to the first mode. 如請求項19所述之串聯具錯誤回報單線傳輸裝置,其中所有串聯該些具錯誤回報單線傳輸裝置回到該第一模式時,所有串聯該些具錯誤回報單線傳輸裝置更接收具有一第二切換訊號的一第二串列封包,且在接收完該第二串列封包後,依據該第二切換訊號,以由該第一模式切換至一第三模式,當所有串聯該些具錯誤回報單線傳輸裝置切換至該第三模式時,串聯最後一級之該具錯誤回報單線傳輸裝置產生一第一狀態資訊,並將該第一狀態資訊轉為一編碼訊號,並由該第一端輸出,而串聯 上一級之該具錯誤回報單線傳輸裝置將串聯下一級之該具錯誤回報單線傳輸裝置所產生的該編碼訊號作為一第二狀態資訊,且由該第二端接收,而串聯上一級之該具錯誤回報單線傳輸裝置的將其該第一狀態資訊與該第二端接收的該第二狀態資訊編碼後,以產生該編碼訊號,且該編碼訊號由該第一端輸出,直到串聯第一個之該具錯誤回報單線傳輸裝置的該第一端輸出該編碼訊號為止。 The tandem faulty single-line transmission apparatus according to claim 19, wherein all of the series-connected error-returning single-line transmission apparatuses return to the first mode, and all of the series-connected error-reported single-line transmission apparatuses further receive a second Switching a second serial packet of the signal, and after receiving the second serial packet, switching from the first mode to a third mode according to the second switching signal, when all the series are incorrectly reported When the single-line transmission device switches to the third mode, the error-returning single-line transmission device of the last stage of the series generates a first state information, and converts the first state information into an encoded signal, and is output by the first end. Tandem The error reporting single line transmission device of the upper level uses the encoded signal generated by the error reporting single line transmission device of the next stage in series as a second state information, and is received by the second end, and the device of the upper level is connected in series The error returning single line transmission device encodes the first state information and the second state information received by the second end to generate the encoded signal, and the encoded signal is output by the first end until the first one is connected in series The first end of the erroneous return single line transmission device outputs the encoded signal. 如請求項20所述之串聯具錯誤回報單線傳輸裝置,其中該些第一狀態資訊與該些第二狀態資訊包括溫度、電流、電壓源的狀態資訊。 The cascading error reporting single line transmission device of claim 20, wherein the first status information and the second status information comprise status information of temperature, current, and voltage source. 如請求項20所述之串聯具錯誤回報單線傳輸裝置,其中該些第一錯誤旗標符號的資料量小於該些第一狀態資訊與該些第二狀態資訊的資料量。 The tandem error reporting single line transmission device of claim 20, wherein the data amount of the first error flag symbols is smaller than the data amounts of the first status information and the second status information. 如請求項20所述之串聯具錯誤回報單線傳輸裝置,其中所有串聯的該些具錯誤回報單線傳輸裝置回到該第一模式時,所有串聯的該些具錯誤回報單線傳輸裝置更接收一第三串列封包,該第三串列封包帶有多個模式切換資訊,且每一該些模式切換資訊會對應到某一串聯的該些具錯誤回報單線傳輸裝置,每一該些模式切換資訊包含該第一切換訊號或一第三切換訊號,其中當所有串聯的該些具錯誤回報單線傳輸裝置從該第一端接收到該第三串列封包時,每一串聯的該些具錯誤回報單線傳輸裝置會從該第三串列封包找到屬於該些具錯誤回報單 線傳輸裝置各自對應的該些模式切換資訊,再依據找到對應的該些模式切換資訊來決定切換成該第二模式或一第四模式,所有串聯的該些具錯誤回報單線傳輸裝置的部分處於該第二模式,另一部分處於該第四模式,或所有串聯的該些具錯誤回報單線傳輸裝置都是處於該第二模式,或所有串聯的該些具錯誤回報單線傳輸裝置都是處於該第四模式;其中,當所有串聯的該些具錯誤回報單線傳輸裝置的某一個處於該第二模式時,若該處於該第二模式的該具錯誤回報單線傳輸裝置發生該錯誤狀態,該錯誤回報單線傳輸裝置產生該第一錯誤旗標符號並由其該第一端輸出,且串聯上一級之該具錯誤回報單線傳輸裝置處於該第二模式或該第四模式都會將該第一錯誤旗標符號作為該第二錯誤旗標符號,以由該第二端接收該第二錯誤旗標符號並轉為該第一錯誤旗標符號再由其該第一端輸出,直到串聯第一個之該具錯誤回報單線傳輸裝置的該第一端輸出該第一錯誤旗標符號為止;其中,當所有串聯的該些具錯誤回報單線傳輸裝置的某一個處於該第四模式時,若處於該第四模式的該具錯誤回報單線傳輸裝置發生該錯誤狀態,該錯誤回報單線傳輸裝置不會產生該第一錯誤旗標符號並由其該第一端輸出,而該具錯誤回報單線傳輸裝置之該第二端接收該第二錯誤旗標符號後才會將接收的該第二錯誤旗標符號轉為該第一錯誤旗標符號再由其該第一端輸出,直到串聯第一個之該具錯誤回報單線傳輸裝置的 該第一端輸出該第一錯誤旗標符號為止。 The tandem faulty single-line transmission device of claim 20, wherein all of the series of error-returning single-line transmission devices connected in series return to the first mode, and all of the series of error-returned single-line transmission devices in series receive a first a three-string packet, the third serial packet has a plurality of mode switching information, and each of the mode switching information corresponds to the pair of error-reported single-line transmission devices connected in series, and each of the mode switching information Include the first switching signal or a third switching signal, wherein when all the erroneously-reported single-line transmission devices connected in series receive the third serial packet from the first end, each of the concatenations has a false return The single-line transmission device finds the error report sheets from the third serial packet. Each of the mode switching information corresponding to the line transmission device determines to switch to the second mode or the fourth mode according to the corresponding mode switching information, and all the parts of the serially connected error transmitting single line transmission device are The second mode, the other part is in the fourth mode, or all of the erroneously-reported single-line transmission devices connected in series are in the second mode, or all of the erroneous-return single-line transmission devices connected in series are in the a four-mode; wherein, when all of the plurality of erroneous-return single-line transmission devices connected in series are in the second mode, if the error state occurs in the erroneous-reporting single-line transmission device in the second mode, the error report The first line transmission device generates the first error flag symbol and is output by the first end thereof, and the first error flag is sent to the second mode or the fourth mode in the second mode or the fourth mode a symbol as the second error flag symbol to receive the second error flag symbol by the second end and convert to the first error flag And outputting from the first end thereof, until the first end of the first erroneously-reported single-line transmission device in series outputs the first error flag symbol; wherein, when all the series are connected with the error return single line transmission When the one of the devices is in the fourth mode, if the error state of the single-line transmission device in the fourth mode occurs, the error reporting single-line transmission device does not generate the first error flag symbol and The first end outputs, and the second end of the error reporting single line transmission device receives the second error flag symbol, and then the received second error flag symbol is converted into the first error flag symbol. The first end of the output is connected until the first one of the faulty single-line transmission device The first end outputs the first error flag symbol. 如請求項20所述之串聯具錯誤回報單線傳輸裝置,其中該些錯誤狀態包括溫度異常、電流異常、電壓源開路、電壓源短路或斷路偵測異常。 The tandem faulty single-line transmission device of claim 20, wherein the error states include temperature anomalies, current anomalies, voltage source open circuits, voltage source short circuits, or open circuit detection abnormalities. 如請求項20所述之串聯具錯誤回報單線傳輸裝置,其中該些具錯誤回報單線傳輸裝置的該些第一端與該些第二端於一預設時間內任何訊號傳輸,該些具錯誤回報單線傳輸裝置會重置回到該第一模式。 The cascading error-reporting single-line transmission device of claim 20, wherein the first ends of the erroneously-reported single-line transmission devices and the second ends are transmitted by any signal within a preset time, and the errors are The return single line transmission device will reset back to the first mode. 如請求項20所述之串聯具錯誤回報單線傳輸裝置,其中所有串聯的該些具錯誤回報單線傳輸裝置在該第一模式下接收一第四串列封包,該第四串列封包包括該更新資料。The tandem error-reported single-line transmission device of claim 20, wherein all of the in-line error-reported single-line transmission devices in series receive a fourth serial packet in the first mode, the fourth serial packet including the update data.
TW101146228A 2012-12-07 2012-12-07 One wire transmission device with error report and one wire cascade transmission device with error report TWI494026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101146228A TWI494026B (en) 2012-12-07 2012-12-07 One wire transmission device with error report and one wire cascade transmission device with error report

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101146228A TWI494026B (en) 2012-12-07 2012-12-07 One wire transmission device with error report and one wire cascade transmission device with error report

Publications (2)

Publication Number Publication Date
TW201424461A TW201424461A (en) 2014-06-16
TWI494026B true TWI494026B (en) 2015-07-21

Family

ID=51394263

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101146228A TWI494026B (en) 2012-12-07 2012-12-07 One wire transmission device with error report and one wire cascade transmission device with error report

Country Status (1)

Country Link
TW (1) TWI494026B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002280190A (en) * 2001-03-15 2002-09-27 Tokyo Metropolis Led, signal lamp using bulb, and disconnection detecting device for illuminating lamp
TWI350126B (en) * 2007-06-08 2011-10-01 Macroblock Inc Light-emitting diode (led)-driving integrated circuit with plural channels capable of detecting operation of the channels, unused controlling circuit thereof and reporting method thereof
TW201138535A (en) * 2010-04-26 2011-11-01 Lien Chang Electronic Entpr Co LED system and driving device with error detection, and error detection module thereof
US20120221901A1 (en) * 2011-02-28 2012-08-30 Ricoh Company, Ltd. Error report management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002280190A (en) * 2001-03-15 2002-09-27 Tokyo Metropolis Led, signal lamp using bulb, and disconnection detecting device for illuminating lamp
TWI350126B (en) * 2007-06-08 2011-10-01 Macroblock Inc Light-emitting diode (led)-driving integrated circuit with plural channels capable of detecting operation of the channels, unused controlling circuit thereof and reporting method thereof
TW201138535A (en) * 2010-04-26 2011-11-01 Lien Chang Electronic Entpr Co LED system and driving device with error detection, and error detection module thereof
US20120221901A1 (en) * 2011-02-28 2012-08-30 Ricoh Company, Ltd. Error report management

Also Published As

Publication number Publication date
TW201424461A (en) 2014-06-16

Similar Documents

Publication Publication Date Title
US10123387B2 (en) Lighting string device, lighting string location identifying system, and lighting string location identifying method thereof
US10964292B2 (en) System with display apparatuses and method of controlling the same
US10068509B2 (en) Fault detection for a display system
CN104579552B (en) Highway addressable remote transducer samples
US9370082B2 (en) Light source control apparatus and light source control method
US9351366B1 (en) Isolation dimmer circuit structure
CN102237125A (en) Control system for hard disk indication lamp
CN114095478B (en) Address signal processing device for LED lamp
TWI494026B (en) One wire transmission device with error report and one wire cascade transmission device with error report
CN113628581B (en) LED driving circuit, driving method and LED display system
US9629222B2 (en) Digital addressable lighting interface short protection circuit
CN106888537A (en) Illuminator and lighting system control method
CN105873290A (en) LED drive chip and LED drive circuit
TWI764590B (en) Cascade driving system and driving unit
US20110185096A1 (en) Systems and methods for embedding interrupts into a serial data stream
US20220232684A1 (en) Light-emitting circuit, light-emitting system, and control method
CN213073168U (en) LED driving device
CN106507535A (en) A kind of control circuit of high power wall washing lamp
CN104810783B (en) Analog current output module
CN105873289A (en) LED drive chip capable of configuring parameters and LED drive circuit
US8421439B2 (en) Current detecting and indicating device
CN111867177A (en) LED driving apparatus and method, and readable storage medium
TWI652664B (en) Light-emitting diode display system and image detecting method
CN205829895U (en) IPTV tests system
US9679611B2 (en) Method for displaying status associated with a storage device, computer system and status-monitoring device thereof