TWI633523B - Method for command transmitting and configuring to sensor implemented by ambient light source - Google Patents

Method for command transmitting and configuring to sensor implemented by ambient light source Download PDF

Info

Publication number
TWI633523B
TWI633523B TW106113228A TW106113228A TWI633523B TW I633523 B TWI633523 B TW I633523B TW 106113228 A TW106113228 A TW 106113228A TW 106113228 A TW106113228 A TW 106113228A TW I633523 B TWI633523 B TW I633523B
Authority
TW
Taiwan
Prior art keywords
light source
differential signal
sensor
sets
difference
Prior art date
Application number
TW106113228A
Other languages
Chinese (zh)
Other versions
TW201839732A (en
Inventor
曾昭俊
廖敏男
Original Assignee
台達電子工業股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 台達電子工業股份有限公司 filed Critical 台達電子工業股份有限公司
Priority to TW106113228A priority Critical patent/TWI633523B/en
Application granted granted Critical
Publication of TWI633523B publication Critical patent/TWI633523B/en
Publication of TW201839732A publication Critical patent/TW201839732A/en

Links

Landscapes

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

Abstract

一種藉由光源實現的感測器指令傳輸與配置方法,應用於具有光感測單元的感測器。感測器藉由光感測單元蒐集周圍光源的時間序列資料,並從中取出有效的多組光源切換資料。接著,判斷多組光源切換資料是否與預儲存指令的觸發條件相符。若多組光源切換資料與預儲存指令的觸發條件相符,感測器藉由其上的顯示單元輸出閃爍訊號,並判斷是否進一步接收一組確認切換資料。若於等待確認期間內接收確認切換資料,感測器自動執行預儲存指令所對應的動作。 A sensor command transmission and configuration method implemented by a light source is applied to a sensor having a light sensing unit. The sensor collects time series data of the surrounding light sources by the light sensing unit, and extracts effective multiple sets of light source switching data therefrom. Next, it is determined whether the plurality of sets of light source switching data match the trigger condition of the pre-storage instruction. If the plurality of sets of light source switching data match the trigger condition of the pre-storage command, the sensor outputs a blinking signal by the display unit thereon, and determines whether to further receive a group of confirmation switching data. If the confirmation switching data is received during the waiting confirmation period, the sensor automatically executes the action corresponding to the pre-storing instruction.

Description

藉由光源實現的感測器指令傳輸與配置方法 Sensor instruction transmission and configuration method by light source

本發明涉及一種感測器的指令傳輸與配置方法,尤其涉及一種藉由光源實現的感測器的指令傳輸與配置方法。 The invention relates to a method for transmitting and configuring an instruction of a sensor, in particular to a method for transmitting and configuring an instruction of a sensor implemented by a light source.

為了確實地偵測空間中的環境狀態,進而有效且自動地控制空間中的各項設備(例如空調設備、燈光設備等),許多系統會於空間中設置各種的感測器,並且再依據各感測器的感測結果對各項設備進行自動控制(例如於感測到人員離開時自動關閉電燈,或是於感測到溫度昇高時自動調降空調設備的設定溫度等)。 In order to reliably detect the environmental state in the space, and thus effectively and automatically control various devices in the space (such as air conditioning equipment, lighting equipment, etc.), many systems will set various sensors in the space, and then according to each The sensing result of the sensor automatically controls each device (for example, automatically turns off the light when the person is detected to leave, or automatically sets the set temperature of the air conditioner when the temperature rises, etc.).

請參閱圖1A,為相關技術的感測器配置示意圖。如圖所示,一個空間1中可被設置多個相同或不同種類的感測器2,例如人員偵測器(People Detector,PD)、溫度感測器、溼度感測器等,用以感測空間1中的各項資料,以利上述系統對空間1中的各項設備進行自動控制。 Please refer to FIG. 1A , which is a schematic diagram of a sensor configuration of the related art. As shown in the figure, a plurality of sensors 2 of the same or different types, such as a Person Detector (PD), a temperature sensor, a humidity sensor, etc., may be disposed in one space 1 for sensing The various materials in the space 1 are measured to facilitate automatic control of each device in the space 1 by the above system.

同時參閱圖1B,為相關技術的感測器示意圖。如圖1B所示,一般在感測器2上會配置有一或多個設定開關21,例如指撥開關(dip switch)、按鍵開關(push button)等。於相關技術中,使用者若要對感測器2進行設定, 主要皆是通過手動方式來操作上述設定開關21,以完成對感測器2的設定(例如重置、設定更新頻率、設定靈敏度等)。 1B is a schematic diagram of a sensor of the related art. As shown in FIG. 1B, one or more setting switches 21, such as a dip switch, a push button, etc., are generally disposed on the sensor 2. In the related art, if the user wants to set the sensor 2, Mainly, the above setting switch 21 is operated manually to complete the setting of the sensor 2 (for example, reset, set update frequency, set sensitivity, etc.).

然而,為了較佳地感測空間1中的狀態,上述感測器2一般會安裝於使用者不容易接觸的地方(例如天花板)。因此,當使用者要對感測器2進行設定或重置時,需要使用梯子爬高手指才能實際接觸到感測器2的設定開關21,對使用者而言會造成相當大的困擾。 However, in order to better sense the state in the space 1, the above-described sensor 2 is generally installed in a place where the user does not easily come into contact (for example, a ceiling). Therefore, when the user wants to set or reset the sensor 2, it is necessary to use a ladder to climb the finger to actually touch the setting switch 21 of the sensor 2, which causes considerable trouble to the user.

為了降低設定難度,廠商通常會配置一台遙控器3,以令使用者可藉由遙控器3對感測器2進行遠端設定。惟,要相容於上述遙控器3,感測器2至少須要具備有紅外線、藍牙或WiFi等無線通訊功能,使得感測器2的成本增加。再者,若要購買上述遙控器3,使用者還必須支出一筆額外的費用。 In order to reduce the difficulty of setting, the manufacturer usually configures a remote controller 3 to allow the user to remotely set the sensor 2 by the remote controller 3. However, in order to be compatible with the above-mentioned remote controller 3, the sensor 2 needs to have at least a wireless communication function such as infrared, Bluetooth or WiFi, so that the cost of the sensor 2 is increased. Furthermore, in order to purchase the remote controller 3 described above, the user must also pay an additional fee.

本發明的主要目的,在於提供一種藉由光源實現的感測器指令傳輸與配置方法,可藉由周圍光源的切換來傳輸指令至感測器,並且對感測器進行設定配置。 A main object of the present invention is to provide a sensor command transmission and configuration method implemented by a light source, which can transmit an instruction to a sensor by switching a surrounding light source, and configure a configuration of the sensor.

為了達成上述的目的,本發明的方法應用於一種具有光感測單元的感測器。感測器藉由光感測單元蒐集周圍光源的時間序列資料,並從中取出有效的多組光源切換資料。接著,判斷多組光源切換資料是否與預儲存指令的觸發條件相符。若多組光源切換資料與預儲存指令的觸發條件相符,感測器藉由其上的顯示單元輸出閃爍訊號,並判斷是否進一步接收一組確認切換資料。若於等待確認期間內接收確認切換資料,感測器自動執行相符的預儲存指令所對應的動作。 In order to achieve the above object, the method of the present invention is applied to a sensor having a light sensing unit. The sensor collects time series data of the surrounding light sources by the light sensing unit, and extracts effective multiple sets of light source switching data therefrom. Next, it is determined whether the plurality of sets of light source switching data match the trigger condition of the pre-storage instruction. If the plurality of sets of light source switching data match the trigger condition of the pre-storage command, the sensor outputs a blinking signal by the display unit thereon, and determines whether to further receive a group of confirmation switching data. If the confirmation switching data is received during the waiting confirmation period, the sensor automatically executes the action corresponding to the corresponding pre-storing instruction.

本發明相對於相關技術,可應用於不支援任何無線通訊功能的感測器上,並且不需使用額外的遙控器,有效降低了感測器的製造與維護成本。 Compared with the related art, the present invention can be applied to a sensor that does not support any wireless communication function, and does not need to use an additional remote controller, thereby effectively reducing the manufacturing and maintenance cost of the sensor.

1‧‧‧空間 1‧‧‧ space

2‧‧‧感測器 2‧‧‧Sensor

21‧‧‧設定開關 21‧‧‧Setting switch

3‧‧‧遙控器 3‧‧‧Remote control

4‧‧‧光源切換資料 4‧‧‧Light source switching data

D1‧‧‧時間序列資料 D1‧‧‧ time series data

Dmax‧‧‧差異最大值 Dmax‧‧‧ difference maximum

Dmin‧‧‧差異最小值 Dmin‧‧‧ difference minimum

S1‧‧‧高電位差分訊號 S1‧‧‧High potential differential signal

S2‧‧‧低電位差分訊號 S2‧‧‧Low potential differential signal

T1‧‧‧啟動時間 T1‧‧‧Starting time

T2‧‧‧睡眠時間 T2‧‧‧ Sleep time

I1‧‧‧間隔 I1‧‧‧ interval

S10~S22‧‧‧配置步驟 S10~S22‧‧‧Configuration steps

S30~S42‧‧‧操作步驟 S30~S42‧‧‧ operation steps

S50~S56‧‧‧解析步驟 S50~S56‧‧‧ Analysis steps

S60~S76‧‧‧解析步驟 S60~S76‧‧‧ analytical steps

圖1A為相關技術的感測器配置示意圖。 FIG. 1A is a schematic diagram of a sensor configuration of a related art.

圖1B為相關技術的感測器示意圖。 FIG. 1B is a schematic diagram of a related art sensor.

圖2為本發明的第一具體實施例的配置流程圖。 Figure 2 is a flow chart showing the configuration of the first embodiment of the present invention.

圖3為本發明的第一具體實施例的操作時序圖。 Figure 3 is a timing chart showing the operation of the first embodiment of the present invention.

圖4為本發明的第一具體實施例的切換資料解析圖。 4 is a diagram of a handover data analysis of a first embodiment of the present invention.

圖5為本發明的第一具體實施例的切換資料解析流程圖。 FIG. 5 is a flowchart of the handover data parsing according to the first embodiment of the present invention.

圖6為本發明的第一具體實施例的訊號處理示意圖。 FIG. 6 is a schematic diagram of signal processing according to a first embodiment of the present invention.

圖7A為本發明的第一具體實施例的操作間隔示意圖。 Fig. 7A is a schematic view showing the operation interval of the first embodiment of the present invention.

圖7B為本發明的第二具體實施例的操作間隔示意圖。 Figure 7B is a schematic view showing the operation interval of the second embodiment of the present invention.

圖8A為本發明的第一具體實施例的確認訊號示意圖。 FIG. 8A is a schematic diagram of a confirmation signal according to a first embodiment of the present invention.

圖8B為本發明的第二具體實施例的確認訊號示意圖。 FIG. 8B is a schematic diagram of a confirmation signal according to a second embodiment of the present invention.

茲就本發明之一較佳實施例,配合圖式,詳細說明如後。 DETAILED DESCRIPTION OF THE INVENTION A preferred embodiment of the present invention will be described in detail with reference to the drawings.

本發明揭露一種藉由光源實現的感測器指令傳輸與配置方法(下面簡稱為配置方法),所述配置方法應用於各式具有光感測單元的感測器(如圖1A及圖1B所示的感測器2),藉由對周圍光源的切換來傳輸指令至感測器2,並可對感測器2進行設定配置。 The invention discloses a sensor command transmission and configuration method (hereinafter referred to as a configuration method) realized by a light source, and the configuration method is applied to various sensors having a light sensing unit (as shown in FIG. 1A and FIG. 1B). The sensor 2) is shown to transmit a command to the sensor 2 by switching the surrounding light source, and the sensor 2 can be configured.

具體地,本發明適用的感測器2不需具備任何的無線通訊功能,僅需具有光感測單元而可感測環境中的光源(即,可感測光源的亮度與暗度)。藉此,本發明可供使用者通過對周圍光源的切換(例如開/關日光燈、吊燈、檯燈或使用手電筒等),直接對感測器2進行上述的指令傳輸與設定配置。 Specifically, the sensor 2 to which the present invention is applied does not need to have any wireless communication function, and only needs to have a light sensing unit to sense a light source in the environment (ie, the brightness and darkness of the light source can be sensed). Thereby, the present invention can be used by the user to directly perform the above-mentioned command transmission and setting configuration on the sensor 2 by switching the surrounding light source (for example, turning on/off a fluorescent lamp, a chandelier, a desk lamp, or using a flashlight).

參閱圖2,為本發明的第一具體實施例的配置流程圖。首先,感測器2藉由其上的光感測單元蒐集周圍光源的時間序列資料(ambient light time series data),並且從中取出有效的多組光源切換資料(步驟S10)。本實施例中,所述時間序列資料係可如圖4所示,而各組光源切換資料分別由一筆高電位差分訊號(即,周圍光源由暗轉亮)及一筆低電位差分訊號(即,周圍光源由亮轉暗)所組成(容後詳述)。 Referring to Figure 2, there is shown a flow chart of the configuration of the first embodiment of the present invention. First, the sensor 2 collects ambient light time series data by the light sensing unit thereon, and extracts valid sets of light source switching data therefrom (step S10). In this embodiment, the time series data may be as shown in FIG. 4, and each group of light source switching data is respectively composed of a high potential differential signal (ie, the surrounding light source is turned dark) and a low potential differential signal (ie, The surrounding light source is composed of light to dark (details are detailed later).

值得一提的是,所述的各組光源切換資料可分別由在先的一筆高電位差分訊號與在後的一筆低電位差分訊號所組成(即,先亮後暗),亦可由在先的一筆低電位差分訊號與在後的一筆高電位差分訊號所組成(即,先暗後亮),不加以限定。 It is worth mentioning that each group of light source switching data may be composed of a previous high-potential differential signal and a subsequent low-potential differential signal (ie, first light and then dark), or may be prior A low-potential differential signal is combined with a subsequent high-potential differential signal (ie, first dark and then bright), which is not limited.

具體地,本實施例中,感測器2是藉由緩衝器(圖未標示)暫存一段暫存時間內(例如3秒、5秒)所蒐集的周圍光源的時間序列資料,再藉由內部演算法對暫存的時間序列資料進行解析處理,以從中取出有效的一或多組光源切換資料。其中,感測器2的緩衝器資料的更新頻率可依據光感測單元的取樣頻率來決定,例如是每100毫秒(ms)一次、每200毫秒(ms)一次等等,並且依據上述緩衝器資料的更新頻率來執行解析處理。如此一來,無論使用者從什麼時間點開始切換光源以進行指令的傳輸,感測器2皆可以成功接收。 Specifically, in this embodiment, the sensor 2 temporarily stores the time series data of the surrounding light sources collected by the buffer (not shown) for a temporary storage time (for example, 3 seconds, 5 seconds), and then The internal algorithm analyzes the temporarily stored time series data to extract valid one or more sets of light source switching data. The update frequency of the buffer data of the sensor 2 may be determined according to the sampling frequency of the light sensing unit, for example, once every 100 milliseconds (ms), once every 200 milliseconds (ms), and the like, and according to the buffer. The update frequency of the data is used to perform the parsing process. In this way, the sensor 2 can be successfully received regardless of the time point at which the user switches the light source to transmit the command.

步驟S10後,感測器2通過內部處理器(圖未標示)判斷所述多組光源切換資料是否與預儲存指令的觸發條件相符(步驟S12)。若多組光源切換資料與預儲存指令的觸發條件不相符,則感測器2捨棄所述多組光源切換資料(步驟S14),並且返回步驟S10,以依據所述緩衝器資料的更新頻率再次對暫存的時間序列資料進行解析處理。 After step S10, the sensor 2 determines, by an internal processor (not shown), whether the plurality of sets of light source switching data match the trigger condition of the pre-storage command (step S12). If the plurality of sets of light source switching data do not match the triggering conditions of the pre-storage command, the sensor 2 discards the plurality of sets of light source switching data (step S14), and returns to step S10 to follow the update frequency of the buffer data again. The temporary time series data is parsed.

若多組光源切換資料與預儲存指令的觸發條件相符,則感測器2通過其上的顯示單元(圖未標示)輸出閃爍訊號(步驟S16)。通過閃爍訊號的輸出,使用者可得知感測器2已成功地接收了使用者通過對周圍光源的切換所傳輸給感測器2的指令。於一實施例中,所述顯示單元為發光二極體(Light Emitting Diode,LED)、燈泡或顯示螢幕,並且受感測器2的處理器控制而閃爍。 If the plurality of sets of light source switching data match the trigger condition of the pre-storage command, the sensor 2 outputs a blinking signal through the display unit (not shown) (step S16). By outputting the flashing signal, the user can know that the sensor 2 has successfully received an instruction from the user to transmit to the sensor 2 by switching the surrounding light source. In an embodiment, the display unit is a Light Emitting Diode (LED), a light bulb or a display screen, and is flashed by the processor of the sensor 2 .

於一實施例中,所述閃爍訊號的閃爍次數相同於所述多組光源切換資料的組數。通過閃爍訊號的輸出,使用者可進一步確認感測器2所解析的光源切換資料的組數是否正確。 In one embodiment, the number of blinks of the blinking signal is the same as the number of groups of the plurality of sets of light source switching data. By outputting the blinking signal, the user can further confirm whether the number of sets of light source switching data analyzed by the sensor 2 is correct.

值得一提的是,本發明中感測器2可預儲存一或多筆的預儲存指令,每一筆預儲存指令分別對應至一個觸發條件,並且每一個觸發條件分別記錄一個正整數的數值,例如1、2、3、4等等。於前述步驟S12中,感測器2主要是於判斷多組光源切換資料的組數相等於任一筆觸發條件所記錄的數值時,判斷所述多組光源切換資料符合該筆觸發條件所對應的預儲存指令。 It is worth mentioning that in the present invention, the sensor 2 can pre-store one or more pre-stored instructions, each pre-stored instruction corresponds to a trigger condition, and each trigger condition respectively records a positive integer value. For example, 1, 2, 3, 4, and so on. In the foregoing step S12, the sensor 2 is mainly configured to determine that the plurality of sets of light source switching data are equal to the value recorded by any of the trigger conditions, and determine that the plurality of sets of light source switching data meet the trigger condition of the plurality of light sources. Pre-storage instructions.

例如,若第一預儲存指令的觸發條件記錄的數值為3,且第二預儲存指令的觸發條件記錄的數值為5,則當使用者開啟並關閉周圍的光源三次後(即,感測器2解析後產生三組光源切換資料),感測器2會判斷符合的預儲存指令為第一預儲存指令。 For example, if the value of the trigger condition record of the first pre-stored instruction is 3, and the value of the trigger condition record of the second pre-stored instruction is 5, then the user turns on and turns off the surrounding light source three times (ie, the sensor 2 After the analysis, three sets of light source switching data are generated), and the sensor 2 determines that the corresponding pre-storage instruction is the first pre-storage instruction.

承上,於閃爍訊號輸出完畢後,感測器2進一步計時一段等待確認期間,並且判斷於等待確認期間內是否接收一組有效的確認切換資料(步驟S18)。本實施例中,所述確認切換資料對應至使用者自行定義的一組確認波形,當感測器2於等待確認期間接收一組有效的切換資料,並判斷該組切換資料的波形符合使用者預先設定的確認波形時,將該組切換資料做為該組確認切換資料。 Further, after the blinking signal output is completed, the sensor 2 further counts a waiting confirmation period, and judges whether or not a valid set of confirmation switching data is received during the waiting confirmation period (step S18). In this embodiment, the confirmation switching data corresponds to a set of confirmation waveforms defined by the user, and when the sensor 2 waits for the confirmation period, it receives a set of valid switching data, and determines that the waveform of the group switching data conforms to the user. When the waveform is confirmed in advance, the group switching data is used as the group confirmation switching data.

參閱圖8A,為本發明的第一具體實施例的確認訊號示意圖。於圖8A的實施例中,使用者設定所述確認波形為一組有效的階梯波(Step Function)。如圖8A的第一個波形為例,若感測器2確認先前的環境光是相對暗的,則只要感測到一筆高電位差分訊號(環境光時間序列是上階梯),即可認定為一筆有效的確認切換資料(也就是說該筆有效的確認切換資料的差分訊號是一筆高電位差分訊號)。 FIG. 8A is a schematic diagram of a confirmation signal according to a first embodiment of the present invention. In the embodiment of Figure 8A, the user sets the confirmation waveform to a set of valid Step Functions. For example, as shown in the first waveform of FIG. 8A, if the sensor 2 confirms that the previous ambient light is relatively dark, as long as a high-potential differential signal is sensed (the ambient light time series is an up-step), it can be considered as A valid confirmation switch data (that is, the valid differential signal for confirming the switch data is a high-potential differential signal).

再以圖8A的第二個波形為例,若感測器2確認先前的環境光是相對亮的,則只要感測到一筆低電位差分訊號(環境光時間序列是下階梯),亦可認定是一筆有效的確認切換資料(也就是說該筆有效的確認切換資料的差分訊號是一筆低電位差分訊號)。至於圖8A中的其他波形,因不符合使用者定義的階梯波,因此感測器2不會將該些波形視為一筆有效的確認切換資料。 Taking the second waveform of FIG. 8A as an example, if the sensor 2 confirms that the previous ambient light is relatively bright, as long as a low-potential differential signal is sensed (the ambient light time series is the next step), it can also be determined. Is a valid confirmation switch data (that is, the valid differential signal for confirming the switch data is a low-potential differential signal). As for the other waveforms in FIG. 8A, since the user-defined staircase wave is not met, the sensor 2 does not regard the waveforms as a valid confirmation switching data.

上述階梯波僅為本發明所述的確認波形的其中一種實施例,於其他實施例中,使用者亦可將所述確認切換資料定義為其他種類的波形。 The step wave is only one embodiment of the acknowledgment waveform described in the present invention. In other embodiments, the user can also define the acknowledgment switching data as other types of waveforms.

參閱圖8B,為本發明的第二具體實施例的確認訊號示意圖。於圖8B的實施例中,使用者設定所述確認切換資料為一組有效的正方波(Rectangle Function)。 FIG. 8B is a schematic diagram of a confirmation signal according to a second embodiment of the present invention. In the embodiment of FIG. 8B, the user sets the confirmation switching data as a set of valid Rectangle Functions.

以圖8B中的第三個波形為例,若感測器2確認先前的環境光是相對暗的,則感測器2會於先感測到一筆高電位差分訊號,並且接著再感測到一筆低電位差分訊號時,認定所接收到的資料是一筆有效的確認切換資料(也就是說該筆有效的確認切換資料的差分訊號是由在先的一筆高電位差分訊號及在後的一筆低電位差分訊號所組成)。 Taking the third waveform in FIG. 8B as an example, if the sensor 2 confirms that the previous ambient light is relatively dark, the sensor 2 will first sense a high-potential differential signal, and then sense it again. When a low-potential differential signal is asserted, it is determined that the received data is a valid confirmation switching data (that is, the valid differential signal of the switching data is determined by the previous high-potential differential signal and the subsequent low-level signal The potential difference signal is composed of).

以圖8B中的第四個波形為例,若感測器2確認先前的環境光是相對亮的,則感測器2會於先感測到一筆底電位差分訊號,並且接著再感測到一筆高電位差分訊號時,認定所接收到的資料是一筆有效的確認切換資料(也就是說該筆有效的確認切換資料的差分訊號是由在先的一筆低電位差分訊號及在後的一筆高電位差分訊號所組成)。至於圖8B中的其他波形,因不符合使用者定義的正方波,因此感測器2不會將該些波形視為一筆有效的確認切換資料。 Taking the fourth waveform in FIG. 8B as an example, if the sensor 2 confirms that the previous ambient light is relatively bright, the sensor 2 first senses a bottom potential difference signal, and then senses When a high-potential differential signal is asserted, it is determined that the received data is a valid confirmation switching data (that is, the differential signal of the valid confirmation switching data is from a previous low-potential differential signal and a subsequent high The potential difference signal is composed of). As for the other waveforms in FIG. 8B, since the user-defined square wave is not met, the sensor 2 does not regard the waveforms as a valid confirmation switching data.

若感測器2於所述等待確認期間內未接收所述確認切換資料,或所接收的資料不是有效的確認切換資料,則感測器2捨棄所述多組光源切換資料(步驟S14),並且返回步驟S10,以依據上述更新頻率再次對暫存的時間序列資料進行解析處理。 If the sensor 2 does not receive the confirmation switching data during the waiting confirmation period, or the received data is not valid confirmation switching data, the sensor 2 discards the plurality of sets of light source switching data (step S14), And returning to step S10, the parsing time series data is parsed again according to the update frequency.

若感測器2確實於所述等待確認期間內接收有效的確認切換資料,則感測器2藉由處理器執行所述多組光源切換資料所對應的預儲存指令(步驟S20)。於一實施例中,所述預儲存指令可為重置指令、延遲時間設定指令、靈敏度調整指令等,但不加以限定。 If the sensor 2 does receive valid confirmation switching data during the waiting confirmation period, the sensor 2 executes a pre-storage instruction corresponding to the plurality of sets of light source switching data by the processor (step S20). In an embodiment, the pre-storage command may be a reset command, a delay time setting command, a sensitivity adjustment command, or the like, but is not limited.

步驟S20後,感測器2進一步判斷是否斷電(步驟S22),若斷電則結束本發明的配置方法。並且,感測器2於斷電前重覆執行前述步驟S10至 步驟S20,以持續蒐集周圍光源的時間序列資料,並判斷使用者是否藉由對周圍光源的切換進而指令的傳遞。 After step S20, the sensor 2 further determines whether or not the power is turned off (step S22), and if the power is turned off, the configuration method of the present invention is ended. And, the sensor 2 repeatedly performs the foregoing step S10 to before the power is cut off. Step S20, to continuously collect the time series data of the surrounding light sources, and determine whether the user transmits the instructions by switching the surrounding light sources.

請同時參閱圖3,為本發明的第一具體實施例的操作時序圖。圖3用以進一步說明使用者如何藉由對周圍光源的切換來傳輸指令至感測器2。首先,使用者對感測器2周圍的光源,例如日光燈、檯燈進行開啟/關閉的切換操作(步驟S30),藉以對外傳遞光指令(步驟S32)。 Please refer to FIG. 3 at the same time, which is an operation timing diagram of the first embodiment of the present invention. Figure 3 is used to further illustrate how the user transmits commands to the sensor 2 by switching the ambient light source. First, the user performs a switching operation of turning on/off the light source around the sensor 2, such as a fluorescent lamp or a desk lamp (step S30), thereby externally transmitting a light command (step S32).

本實施例中,若周圍光源初始為開啟,則使用者先關閉周圍光源後再度開啟,視為一個循環(即,對應至一組光源切換資料);若周圍光源初始為關閉,則使用者先開啟周圍光源後再度關閉,視為一個循環(即,對應至一組光源切換資料)。換句話說,若使用者開啟/關閉周圍光源五次,則所述光指令中將包含五組光源切換資料。 In this embodiment, if the ambient light source is initially turned on, the user turns off the surrounding light source and then turns it on again, which is regarded as a loop (ie, corresponding to a set of light source switching data); if the surrounding light source is initially turned off, the user first Turning the ambient light on and turning it off again is considered a loop (ie, corresponding to a set of light source switching data). In other words, if the user turns on/off the surrounding light source five times, the light command will contain five sets of light source switching data.

於所述光指令發出後,感測器2可藉由光感測單元獲取光指令,並經由前述的解析處理得出對應的預儲存指令(步驟S34)。並且,感測器2進一步藉由顯示單元輸出閃爍訊號(步驟S36),以做為回饋訊息(ACK)。 After the light command is issued, the sensor 2 can acquire the light command by the light sensing unit, and obtain a corresponding pre-storage command via the foregoing parsing process (step S34). Moreover, the sensor 2 further outputs a blinking signal by the display unit (step S36) as a feedback message (ACK).

接著,使用者藉由所述閃爍訊號來確認感測器2對於所述光指令的解析是否正確(步驟S38)。於一實施例中,使用者是確認閃爍訊號的閃爍次數是否相同於使用者於步驟S30中的切換操作的次數。並且,使用者於確認次數正確後,再次開啟/關閉周圍光源,以對外傳遞確認指令(步驟S40)。 Next, the user confirms whether the analysis of the optical command by the sensor 2 is correct by the blinking signal (step S38). In an embodiment, the user confirms whether the number of blinks of the blinking signal is the same as the number of times the user performs the switching operation in step S30. Then, after the number of confirmations is correct, the user turns on/off the surrounding light source again to transmit a confirmation command to the outside (step S40).

於上述步驟S36後,感測器2即開始計時一段等待確認期間。若於等待確認期間內接收到所述確認指令,則感測器2進一步執行所述光指令所對應的預儲存指令(步驟S42)。 After the above step S36, the sensor 2 starts counting for a waiting period. If the confirmation command is received during the waiting confirmation period, the sensor 2 further executes a pre-storage instruction corresponding to the optical command (step S42).

通過本發明的配置方法,使用者完全不需要接觸感測器2,也不需購買紅外線遙控器或藍牙遙控器,即可輕易地對遠端的感測器2進行設定配置,相當便利。 With the configuration method of the present invention, the user does not need to touch the sensor 2 at all, and it is not necessary to purchase an infrared remote controller or a Bluetooth remote controller, and the remote sensor 2 can be easily configured and configured, which is quite convenient.

續請參閱圖4,為本發明的第一具體實施例的切換資料解析圖。圖4用以說明前述圖2的步驟S10如何對時間序列資料進行解析處理,以取得一或多組的光源切換資料。 Referring to FIG. 4, FIG. 4 is a diagram of a handover data analysis according to a first embodiment of the present invention. FIG. 4 is a diagram for explaining how the step S10 of FIG. 2 performs parsing processing on the time series data to obtain one or more sets of light source switching data.

首先,感測器2通過光感測單元蒐集周圍光源的時間序列資料,並通過緩衝器暫存所述時間序列資料(步驟S50)。如圖4所示,所述時間序列資料包括緩衝器於暫存時間內蒐集且暫存的光波(light wave)變化。 First, the sensor 2 collects time series data of the surrounding light sources through the light sensing unit, and temporarily stores the time series data through the buffer (step S50). As shown in FIG. 4, the time series data includes a light wave change collected and temporarily stored by the buffer during the temporary storage time.

接著,感測器2通過處理器對暫存的時間序列資料執行差分編碼處理(differential encoding),以得到如圖4所示的多筆高電位差分訊號與多筆低電位差分訊號(步驟S52)。具體地,一筆高電位差分訊號對應至一次的光源開啟操作(即,光源由暗轉亮),而一筆低電位差分訊號對應至一次的光源關閉操作(即,光源由亮轉暗)。 Then, the sensor 2 performs differential encoding on the temporarily stored time series data by the processor to obtain multiple high-potential differential signals and multiple low-potential differential signals as shown in FIG. 4 (step S52). . Specifically, a high-potential differential signal corresponds to a light source turn-on operation (ie, the light source is turned on), and a low-potential differential signal corresponds to a light source turn-off operation (ie, the light source is turned from dark to dark).

接著,感測器2對所述多筆高電位差分訊號與多筆低電位差分訊號執行濾波處理(步驟S54)。 Next, the sensor 2 performs filtering processing on the plurality of high-potential differential signals and the plurality of low-potential differential signals (step S54).

具體地,感測器2記錄有差異最大值(maximum diffrence,Dmax)與差異最小值(minimum difference,Dmin)。如圖4所示,所述濾波處理是對多筆高電位差分訊號與多筆低電位差分訊號進行訊號強度判斷,以從中保留訊號強度界於所述差異最大值與差異最小值間的多筆高電位差分訊號與多筆低電位差分訊號。 Specifically, the sensor 2 records a maximum diffrence (Dmax) and a minimum difference (Dmin). As shown in FIG. 4, the filtering process is to perform signal strength determination on a plurality of high-potential differential signals and a plurality of low-potential differential signals, so as to retain a plurality of strokes between the difference maximum value and the difference minimum value. High potential differential signal and multiple low potential differential signals.

接著,感測器2依序將通過所述濾波處理的一筆高電位差分訊號與相鄰的一筆低電位差分訊號記錄為一組光源切換資料4(步驟S56)。並且,如圖4所示,各組光源切換資料4彼此不重疊,意即,各組光源切換資料4不包括相同的高電位差分訊號或低電位差分訊號。 Next, the sensor 2 sequentially records a high-potential differential signal processed by the filtering and an adjacent low-potential differential signal as a set of light source switching data 4 (step S56). Moreover, as shown in FIG. 4, each group of light source switching data 4 does not overlap each other, that is, each group of light source switching data 4 does not include the same high potential difference signal or low potential difference signal.

步驟S56後,感測器2即可由所述時間序列資料中取出多組的光源切換資料4,進而依據光源切換資料4的組數來判斷使用者的切換操作對應至哪一筆的預儲存指令。 After step S56, the sensor 2 can extract a plurality of sets of light source switching data 4 from the time series data, and further determine, according to the number of groups of the light source switching data 4, which one of the pre-storage instructions corresponds to the switching operation of the user.

續請參閱圖5,為本發明的第一具體實施例的切換資料解析流程圖。圖5用以更進一步說明前述圖2的步驟S10如何對時間序列資料進行所述解析處理。 Continuing to refer to FIG. 5, it is a flow chart of the handover data parsing according to the first embodiment of the present invention. FIG. 5 is a diagram for further explaining how the step S10 of FIG. 2 described above performs the parsing process on the time series data.

如圖5所示,首先,感測器2藉由光感測器蒐集並暫存周圍光源的時間序列資料(步驟S60),接著,感測器2對暫存的時間序列資料執行前述差分編碼處理,以得到多筆高電位差分訊號及多筆低電位差分訊號(步驟S62)。 As shown in FIG. 5, first, the sensor 2 collects and temporarily stores time series data of the surrounding light sources by the light sensor (step S60), and then the sensor 2 performs the aforementioned differential encoding on the temporarily stored time series data. Processing to obtain a plurality of high-potential differential signals and a plurality of low-potential differential signals (step S62).

接著,感測器2取得一筆差異門檻值(步驟S64),並且判斷差異門檻值是否為預設的一差異最小值(步驟S66)。具體地,感測器2於步驟S64中是取得預設的一差異最大值做為所述差異門檻值。 Next, the sensor 2 obtains a difference threshold value (step S64), and judges whether the difference threshold value is a preset difference minimum value (step S66). Specifically, the sensor 2 obtains a preset difference maximum value as the difference threshold value in step S64.

於所述差異門檻值不是差異最小值時,感測器2判斷所述多筆高電位差分訊號及多筆低電位差分訊號中是否有大於差異門檻值的多組差分訊號組(步驟S68),其中各組差分訊號組分別由一筆高電位差分訊號與相鄰的一筆低電位差分訊號所組成。 When the difference threshold is not the minimum value, the sensor 2 determines whether the plurality of high-potential differential signals and the plurality of low-potential differential signals have a plurality of sets of differential signal groups greater than the difference threshold (step S68), Each of the differential signal groups consists of a high-potential differential signal and an adjacent low-potential differential signal.

於判斷有超過差異門檻值的多組差分訊號組時,感測器2進一步判斷多組差分訊號組是否分別為有效差分訊號組(步驟S72)。 When it is determined that there are multiple sets of differential signal groups exceeding the difference threshold, the sensor 2 further determines whether the plurality of sets of differential signal groups are respectively valid differential signal groups (step S72).

於圖5的實施例中,若感測器2於步驟S68中判斷沒有超過差異門檻值的多組差分訊號組,則感測器2調降所述差異門檻值(步驟S70),並且回到步驟S66,判斷調降後的差異門檻值是否為差異最小值,並且於調降後的差異門檻值不是差異小值時,再次判斷是否有超過調降後的差異門檻值的多組差分訊號組。 In the embodiment of FIG. 5, if the sensor 2 determines in step S68 that there are no sets of differential signal groups exceeding the difference threshold value, the sensor 2 lowers the difference threshold value (step S70), and returns Step S66, determining whether the difference threshold value after the down-regulation is a difference minimum value, and determining whether there are multiple sets of differential signal groups exceeding the adjusted difference threshold value after the adjusted difference threshold value is not a small difference value. .

並且,若感測器2於步驟S72中判斷多組差分訊號組為無效差分訊號,則感測器2同樣會調降所述差異門檻值(步驟S70),並且回到步驟S66,以藉由調降後的差異門檻值再次進行判斷。 Moreover, if the sensor 2 determines in step S72 that the plurality of sets of differential signal groups are invalid differential signals, the sensor 2 also lowers the difference threshold value (step S70), and returns to step S66 to The difference threshold value after the downgrade is judged again.

請同時參閱圖6,為本發明的第一具體實施例的訊號處理示意圖。於一實施例中,前述的差異最大值Dmax可為感測器2的光感測單元所能感測到的亮度最大值或暗度最大值,而前述的差異最小值Dmin則為預先定義的可分辨光源切換的差分訊號絕對值最小值。 Please refer to FIG. 6 at the same time, which is a schematic diagram of signal processing according to the first embodiment of the present invention. In an embodiment, the difference maximum value Dmax may be a brightness maximum value or a darkness maximum value that the light sensing unit of the sensor 2 can sense, and the aforementioned difference minimum value Dmin is a predefined one. The absolute value of the differential signal of the source switching can be distinguished.

如圖6所示,感測器2係對暫存的時間序列資料D1進行解析處理,以取出多筆高電位差分訊號S1與多筆低電位差分訊號S2。接著,由差異最大值Dmax開始(即,將差異最大值Dmax設定為前述的差異門檻值),判斷是否有訊號強度超過差異門檻值的一或多組差分訊號組。若沒有找到訊號強度超過差異門檻值的一或多組差分訊號組,感測器2調降差異門檻值並且再重新判斷,直到調降後的差異門檻值為差異最小值Dmin為止。 As shown in FIG. 6, the sensor 2 analyzes the temporarily stored time series data D1 to extract a plurality of high-potential differential signals S1 and a plurality of low-potential differential signals S2. Next, starting from the difference maximum value Dmax (ie, setting the difference maximum value Dmax to the aforementioned difference threshold value), it is determined whether there is one or more sets of differential signal groups whose signal strength exceeds the difference threshold value. If one or more sets of differential signal groups whose signal strength exceeds the difference threshold value is not found, the sensor 2 lowers the difference threshold value and re-determines until the difference threshold value after the down-regulation is the difference minimum value Dmin.

若於差異門檻值被調降至差異最小值之前,判斷有訊號強度超過差異門檻值的一或多組差分訊號組,感測器2再進一步判斷所述一或多組差分訊號組是否為有效的差分訊號組(即,執行前述圖5的步驟S72)。 If it is determined that one or more sets of differential signal groups whose signal strength exceeds the difference threshold value is determined before the difference threshold value is adjusted to the difference minimum value, the sensor 2 further determines whether the one or more sets of differential signal groups are valid. The differential signal group (ie, performing the aforementioned step S72 of FIG. 5).

如圖6所示,相鄰的兩筆差分訊號之間具有一時間間隔I1(time interval),所述時間間隔I1為使用者控制周圍光源開啟/關閉的時間間隔。於一實施例中,感測器2是於各個高電位差分訊號S1與相鄰的各個低電位差分訊號S2間的時間間隔I1穩定時,判斷所述一或多組差分訊號組為有效的差分訊號組。具體地,感測器2是於暫存的時間序列資料D1中的多個時間間隔I1相同或相似時,判斷該些時間間隔I1穩定。 As shown in FIG. 6, there is a time interval between two adjacent differential signals, and the time interval I1 is a time interval for the user to control the on/off of the surrounding light source. In one embodiment, the sensor 2 determines that the one or more sets of differential signal groups are effective differentials when the time interval I1 between the respective high-potential differential signals S1 and the adjacent low-potential differential signals S2 is stable. Signal group. Specifically, when the plurality of time intervals I1 in the temporarily stored time series data D1 are the same or similar, the sensor 2 determines that the time intervals I1 are stable.

於另一實施例中,感測器2是於暫存的時間序列資料D1中的多個時間間隔I1皆大於預設的最小時間間隔(minimum interval)並且小於預設的最大時間間隔(maximum interval)時,判斷所述一或多組差分訊號組為有效的差分訊號組。 In another embodiment, the sensor 2 is that the plurality of time intervals I1 in the temporarily stored time series data D1 are greater than a preset minimum interval and less than a preset maximum interval (maximum interval). And determining that the one or more sets of differential signal groups are valid differential signal groups.

請同時參閱圖7A與圖7B,分別為本發明的第一具體實施例與第二具體實施例的操作間隔示意圖。上述的時間間隔I1為使用者控制周圍光源開啟/關閉的時間間隔,也就是感測器2藉由光感測單元感測到的亮/暗切換的時間間隔。 Please refer to FIG. 7A and FIG. 7B simultaneously, which are respectively schematic diagrams of the operation interval between the first embodiment and the second embodiment of the present invention. The time interval I1 described above is a time interval for the user to control the on/off of the surrounding light source, that is, the time interval of the light/dark switching sensed by the sensor 2 by the light sensing unit.

於圖7A的實施例中,周圍光源由亮切換為暗的時間間隔為0.5秒(代表光源為亮的時間維持了0.5秒,也就是所述時間間隔I1為0.5秒),同樣地周圍光源由暗切換為亮的時間間隔也為0.5秒(代表光源為暗的時間維持了0.5秒)。於圖7B的實施例中,周圍光源由亮切換為暗的時間間隔為1秒(代表光源為亮的時間維持了0.5秒,也就是所述時間間隔I1為1秒),同樣地周圍光源由暗切換為亮的時間間隔也為1秒(代表光源為暗的時間維持了1秒)。 In the embodiment of FIG. 7A, the time interval between the ambient light source switching from bright to dark is 0.5 seconds (the time when the light source is bright is maintained for 0.5 seconds, that is, the time interval I1 is 0.5 seconds), and the surrounding light source is similarly The time interval for dark switching to bright is also 0.5 seconds (representing that the light source is dark for 0.5 seconds). In the embodiment of FIG. 7B, the time interval between the ambient light source switching from bright to dark is 1 second (the time when the light source is bright is maintained for 0.5 seconds, that is, the time interval I1 is 1 second), and the surrounding light source is similarly The time interval between dark switching and bright is also 1 second (representing that the time when the light source is dark is maintained for 1 second).

通過本發明的配置方法,使用者只需在感測器2的緩衝器所支援的暫存時間內完成對周圍光源的切換操作,並且令所述時間間隔I1穩定,即可 傳遞光指令給感測器2。因此,每一位使用者可以採用不同的時間間隔來對周圍光源進行切換操作,有效提昇了本發明的使用彈性。 With the configuration method of the present invention, the user only needs to complete the switching operation of the surrounding light source within the temporary storage time supported by the buffer of the sensor 2, and the time interval I1 is stabilized. The light command is transmitted to the sensor 2. Therefore, each user can use different time intervals to switch the surrounding light source, which effectively improves the flexibility of use of the present invention.

請再次參閱圖6。感測器2所暫存的時間序列資料D1中,除了所述多筆高電位差分訊號S1及多筆低電位差分訊號S2以外,還包括了第一個差分訊號之前的一段啟動時間(setup time)T1,以及最後一個差分訊號之後的一段睡眠時間(sleep time)T2。於又一實施例中,感測器2是於所述啟動時間T1大於預設的門檻啟動時間,並且所述睡眠時間T2大於預設的門檻睡眠時間時,判斷所述一或多組差分訊號組為有效差分訊號組。 Please refer to Figure 6 again. In the time series data D1 temporarily stored in the sensor 2, in addition to the plurality of high-potential differential signals S1 and the plurality of low-potential differential signals S2, a start time (setup time) before the first differential signal is included. ) T1, and a sleep time T2 after the last differential signal. In still another embodiment, the sensor 2 determines the one or more sets of differential signals when the startup time T1 is greater than a preset threshold activation time, and the sleep time T2 is greater than a preset threshold sleep time. The group is a valid differential signal group.

回到圖5,若感測器2於前述步驟S72中判斷所述一或多組差分訊號組為有效差分訊號組,則感測器2可將所述一或多組有效差分訊號組記錄為所述多組光源切換資料(步驟S76)。其中,如圖4與圖6所示,各組光源切換資料彼此不重疊(即,各組光源切換資料不包括相同的高電位差分訊號S1或低電位差分訊號S2)。 Referring back to FIG. 5, if the sensor 2 determines in the foregoing step S72 that the one or more sets of differential signal groups are valid differential signal groups, the sensor 2 may record the one or more sets of valid differential signal groups as The plurality of sets of light sources switch data (step S76). As shown in FIG. 4 and FIG. 6, each group of light source switching data does not overlap each other (that is, each group of light source switching data does not include the same high potential difference signal S1 or low potential difference signal S2).

於本實施例中,在判斷所述一或多組差分訊號組為有效差分訊號組後,感測器2還可進一步記錄所述一或多組差分訊號組中的一或多筆高電位差分訊號S1的正差分值,以及一或多筆低電位差分訊號S2的負差分值(步驟S74)。藉由,有利於感測器2在接收到後續的資料時,判斷所述資料是否為使用者所發出並且有效的確認切換資料(容後詳述)。 In this embodiment, after determining that the one or more sets of differential signal groups are valid differential signal groups, the sensor 2 may further record one or more high potential differences in the one or more sets of differential signal groups. The positive difference value of the signal S1 and the negative differential value of the one or more low potential differential signals S2 (step S74). By facilitating the sensor 2, when receiving the subsequent data, it is determined whether the data is sent by the user and validly confirms the switching data (detailed later).

接著請參閱圖8A及圖8B,如前文所述,感測器2於發出閃爍訊號後會計時一段等待確認期間,若於等待確認期間內接收有效的確認切換資料,則可進一步執行多組光源切換資料所對應的預儲存指令。 Referring to FIG. 8A and FIG. 8B, as described above, the sensor 2 waits for an acknowledgement period after the blinking signal is issued, and if the valid confirmation switching data is received during the waiting confirmation period, the plurality of sets of light sources can be further executed. Switch the pre-storage instructions corresponding to the data.

於圖8A與圖8B的實施例中,所述確認切換資料可為使用者所定義,為單一筆確認高電位差分訊號(階梯波)、單一筆確認低電位差分訊號(階梯波)、或由一筆確認高電位差分訊號及一筆確認低電位差分訊號組成(正方波),不加以限定。也就是說,於所述等待確認期間內,使用者對周圍光源進行了至少一次的開啟或關閉切換操作。惟,上述一次的開啟或關閉切換操作僅為一個具體實施例,使用者可視實際所需而對感測器2進行設定,所述切換操作的次數不以一次為限。 In the embodiment of FIG. 8A and FIG. 8B, the confirmation switching data can be defined by the user, and is a single-acknowledgment high-potential differential signal (step wave), a single-acknowledgment low-potential differential signal (step wave), or A confirmation high-potential differential signal and a confirmation low-potential differential signal (square wave) are not limited. That is to say, during the waiting confirmation period, the user performs at least one on or off switching operation on the surrounding light source. However, the above-mentioned one-time opening or closing switching operation is only one specific embodiment, and the user can set the sensor 2 according to actual needs, and the number of switching operations is not limited to one time.

如前文所述,感測器2可在判斷多組差分訊號組為有效差分訊號組後,記錄多組差分訊號組的多筆高電位差分訊號的正差分值及多筆低電位差分訊號的負差分值。於一實施例中,感測器2是於所述確認高電位差分訊號的正差分值與所記錄的多筆高電位差分訊號的正差分值相同或相似,或所述確認低電位差分訊號的負差分值與所記錄的多筆低電位差分訊號的負差分值相同或相似時,判斷所述確認切換資料為有效的確認切換資料。 As described above, the sensor 2 can record the positive differential value of the plurality of high-potential differential signals of the plurality of sets of differential signal groups and the negative of the plurality of low-potential differential signals after determining that the plurality of sets of differential signal groups are valid differential signal groups. Differential value. In one embodiment, the sensor 2 is the same or similar to the positive difference value of the confirmed high potential differential signal and the positive differential value of the recorded plurality of high potential differential signals, or the confirmation low potential differential signal When the negative difference value is the same as or similar to the negative difference value of the recorded plurality of low-potential differential signals, it is determined that the confirmation switching data is valid confirmation switching data.

並且,如圖8A與圖8B所示,當所述切換操作的次數與感測器2預設的次數不同、切換操作的時間早於等待確認期間、使用者沒有於等待確認期間內進行切換操作、或是確認切換資料中的確認高電位差分訊號的正差分值/確認低電位差分訊號的負差分值與感測器2記錄的高電位差分訊號的正差分值/低電位差分訊號的負差分值不同時,感測器2會判斷所述確認切換資料為無效的確認切換資料。 Moreover, as shown in FIG. 8A and FIG. 8B, when the number of switching operations is different from the preset number of times of the sensor 2, the switching operation time is earlier than the waiting confirmation period, and the user does not perform the switching operation during the waiting confirmation period. Or confirm the positive difference value of the high potential differential signal in the switching data/confirm the negative difference between the negative differential value of the low potential differential signal and the positive differential value/low potential difference signal of the high potential differential signal recorded by the sensor 2. When the values are different, the sensor 2 determines that the confirmation switching data is invalid confirmation switching data.

通過本發明的配置方法,使用者不需使用額外的遙控器,也不必於感測器上設置任何無線通訊單元,即可藉由對周圍光源的切換來對感測器進行設定配置,有效降低了感測器的製造與維護成本。 With the configuration method of the present invention, the user can set the sensor by switching the surrounding light source without using an additional remote controller or setting any wireless communication unit on the sensor, thereby effectively reducing the configuration of the sensor. The manufacturing and maintenance costs of the sensor.

以上所述僅為本發明之較佳具體實例,非因此即侷限本發明之專利範圍,故舉凡運用本發明內容所為之等效變化,均同理皆包含於本發明之範圍內,合予陳明。 The above is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Therefore, equivalent changes to the scope of the present invention are included in the scope of the present invention. Bright.

Claims (17)

一種藉由光源實現的感測器指令傳輸與配置方法,應用於具有一光感測單元的一感測器,上述方法包括步驟:a)由該光感測單元蒐集周圍光源的時間序列資料(time series data),並從中取出有效的多組光源切換資料,其中各組光源切換資料分別由一筆高電位差分訊號及相鄰的一筆低電位差分訊號組成,並且包括:a11)蒐集並暫存周圍光源的時間序列資料;a12)對暫存的該時間序列資料執行一差分編碼處理(differential encoding)以得到多筆高電位差分訊號與多筆低電位差分訊號;a13)取得一差異門檻值(difference threshold);a14)於該差異門檻值不是一差異最小值時,判斷是否有超過該差異門檻值的多組差分訊號組,其中各組差分訊號組分別包括一筆該高電位差分訊號與相鄰的一筆該低電位差分訊號;a15)於有超過該差異門檻值的多組該差分訊號時,判斷該多組差分訊號組是否分別為一有效差分訊號組;及a16)於該多組差分訊號組分別為該有效差分訊號組時,記錄該多組差分訊號組為該多組光源切換資料,其中各組該光源切換資料不重疊;b)判斷該多組光源切換資料與一預儲存指令的一觸發條件相符;c)於該多組光源切換資料與該觸發條件相符時由一顯示單元輸出一閃爍訊號;d)步驟c後,判斷是否接收一組有效的確認切換資料,其中該組確認切換資料為一筆確認高電位差分訊號或一筆確認低電位差分訊號;及 e)於在一等待確認期間內接收該組確認切換資料時執行該預儲存指令對應的動作。 A sensor command transmission and configuration method implemented by a light source is applied to a sensor having a light sensing unit, the method comprising the steps of: a) collecting time series data of surrounding light sources by the light sensing unit ( Time series data), and take out effective multiple sets of light source switching data, wherein each group of light source switching data is composed of a high potential differential signal and an adjacent low potential differential signal, and includes: a11) collecting and temporarily storing around Time series data of the light source; a12) performing a differential encoding on the temporarily stored time series data to obtain a plurality of high-potential differential signals and a plurality of low-potential differential signals; a13) obtaining a difference threshold (difference) Threshold); a14) determining whether there are multiple sets of differential signal groups exceeding the difference threshold when the difference threshold is not a minimum value, wherein each group of differential signals includes a high-potential differential signal and an adjacent one a low differential differential signal; a15) determining the plurality of differential signal groups when there are multiple sets of the differential signals exceeding the difference threshold Whether it is a valid differential signal group; and a16) when the plurality of differential signal groups are respectively the effective differential signal group, recording the plurality of sets of differential signal groups for the plurality of sets of light source switching data, wherein each group of the light source switching data b) determining that the plurality of sets of light source switching data are consistent with a trigger condition of a pre-storage command; c) outputting a blinking signal by a display unit when the plurality of sets of light source switching data match the trigger condition; d) c, judging whether to receive a set of valid confirmation switching data, wherein the group confirms that the switching data is a confirmation high potential differential signal or a confirmation low potential differential signal; e) performing an action corresponding to the pre-storage instruction when receiving the group confirmation switching data within a waiting confirmation period. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,更包括一步驟b1:於該多組光源切換資料該觸發條件不相符時捨棄該多組光源切換資料。 The sensor command transmission and configuration method implemented by the light source according to claim 1, further comprising a step b1: discarding the plurality of sets of light source switching data when the plurality of sets of light source switching materials do not match the trigger condition. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,更包括一步驟d1:於在該等待確認期間內未接收該組確認切換資料時捨棄該多組光源切換資料。 The sensor command transmission and configuration method implemented by the light source according to claim 1, further comprising a step d1: discarding the plurality of sets of light source switching materials when the group of confirmation switching materials is not received during the waiting confirmation period. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,其中該閃爍訊號的閃爍次數相同於該多組光源切換資料的組數。 The sensor command transmission and configuration method implemented by the light source according to claim 1, wherein the number of blinks of the blinking signal is the same as the number of groups of the plurality of sets of light source switching data. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,其中該步驟b是於該多組光源切換資料的組數相等於觸發條件記錄的一數值時,判斷該多組光源切換資料與該觸發條件相符。 The sensor command transmission and configuration method implemented by the light source according to claim 1, wherein the step b is to determine the plurality of groups when the number of groups of the plurality of sets of light source switching data is equal to a value recorded by the trigger condition. The light source switching data matches the trigger condition. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,其中該步驟a包括下列步驟:a01)蒐集並暫存周圍光源的時間序列資料;a02)對暫存的該時間序列資料執行一差分編碼處理(differential encoding)以得到多筆高電位差分訊號與多筆低電位差分訊號;a03)對該多筆高電位差分訊號與該多筆低電位差分訊號執行一濾波處理;及a04)依序將通過該濾波處理的一筆該高電位差分訊號與相鄰的一筆該低電位差分訊號做為一組該光源切換資料,其中各組該光源切換資料不重疊。 The sensor instruction transmission and configuration method implemented by the light source according to claim 1, wherein the step a comprises the following steps: a01) collecting and temporarily storing time series data of the surrounding light source; a02) the time of the temporary storage The sequence data performs a differential encoding process to obtain a plurality of high-potential differential signals and a plurality of low-potential differential signals; a03) performing a filtering process on the plurality of high-potential differential signals and the plurality of low-potential differential signals; And a04) sequentially processing the high-potential differential signal processed by the filtering and the adjacent one of the low-potential differential signals as a set of the light source switching data, wherein each group of the light source switching data does not overlap. 如請求項6所述的藉由光源實現的感測器指令傳輸與配置方法,其中該感測器記錄一差異最大值(maximum difference)與一差異最小值(minimum difference),該濾波處理是保留訊號強度界於該差異最大值與該差異最小值間的多筆該高電位差分訊號與多筆該低電位差分訊號。 A sensor command transmission and configuration method implemented by a light source as claimed in claim 6, wherein the sensor records a difference maximum and a minimum difference, the filter processing is reserved The signal strength is defined by a plurality of the high-potential differential signals and the plurality of low-potential differential signals between the difference maximum value and the difference minimum value. 如請求項7所述的藉由光源實現的感測器指令傳輸與配置方法,其中該差異最大值為該光感測單元所能感測到的亮度最大值或暗度最大值,該差異最小值為為預先定義的可分辨光源切換的差分訊號絕對值最小值。 The sensor command transmission and configuration method implemented by the light source according to claim 7, wherein the difference maximum value is a brightness maximum value or a darkness maximum value that the light sensing unit can sense, the difference being the smallest The value is the absolute value of the differential signal that is switched for a predefined resolvable source. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,其中更包括一步驟a141:若沒有超過該差異門檻值的多組差分訊號組,調降該差異門檻值並再次執行該步驟a14。 The sensor command transmission and configuration method implemented by the light source according to claim 1, further comprising a step a141: if there are no sets of differential signal groups exceeding the difference threshold value, the difference threshold is lowered and again Perform step a14. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,其中更包括一步驟a151:若該多組差分訊號組為無效差分訊號,調降該差異門檻值並再次執行該步驟a14。 The sensor command transmission and configuration method implemented by the light source according to claim 1, further comprising a step a151: if the plurality of sets of differential signal groups are invalid differential signals, lowering the difference threshold and performing the same again Step a14. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,其中步驟a13是取得一差異最大值做為該差異門檻值。 The sensor command transmission and configuration method implemented by the light source according to claim 1, wherein the step a13 is to obtain a difference maximum value as the difference threshold value. 如請求項11所述的藉由光源實現的感測器指令傳輸與配置方法,其中該差異最大值為該光感測單元所能感測到的亮度最大值或暗度最大值,該差異最小值為預先定義的可分辨光源切換的差分訊號絕對值最小值。 The sensor command transmission and configuration method implemented by the light source according to claim 11, wherein the difference maximum value is a brightness maximum value or a darkness maximum value that the light sensing unit can sense, the difference being the smallest The value is the absolute value of the differential signal absolute value of the pre-defined distinguishable light source switching. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,更包括一步驟a17:於該多組差分訊號組分別為該有效差分訊號組時,記錄該多組差分訊號組中的該些高電位差分訊號的正差分值與該些低電位差分訊號的負差分值。 The sensor command transmission and configuration method implemented by the light source according to claim 1, further comprising a step a17: recording the plurality of sets of differential signal groups when the plurality of sets of differential signal groups are respectively the effective differential signal groups The positive difference value of the high potential differential signals and the negative differential values of the low potential differential signals. 如請求項13所述的藉由光源實現的感測器指令傳輸與配置方法,其中該筆確認高電位差分訊號的正差分值與該多組差分訊號組中的該些高電位差分訊號的正差分值相同,或者該筆確認低電位差分訊號的負差分值與該多組差分訊號組中的該些低電位差分訊號的負差分值相同。 The sensor command transmission and configuration method implemented by the light source according to claim 13, wherein the pen confirms the positive difference value of the high potential differential signal and the positive of the high potential differential signals in the plurality of sets of differential signal groups The difference value is the same, or the pen confirms that the negative difference value of the low potential differential signal is the same as the negative difference value of the low potential differential signals in the plurality of sets of differential signal groups. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,其中該步驟a15是於各該高電位差分訊號與相鄰的各該低電位差分訊號間的一時間間隔(time interval)穩定時,判斷該多組差分訊號組分別為該有效差分訊號組。 The sensor command transmission and configuration method implemented by the light source according to claim 1, wherein the step a15 is a time interval between each of the high potential differential signals and the adjacent low potential differential signals (time) When the interval is stable, it is determined that the plurality of sets of differential signal groups are respectively the effective differential signal group. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,其中該步驟a15是於各該高電位差分訊號與相鄰的各該低電位差分訊號間的一時間間隔(time interval)分別大於一最小時間間隔並且小於一最大時間間隔時,判斷該多組差分訊號組分別為該有效差分訊號組。 The sensor command transmission and configuration method implemented by the light source according to claim 1, wherein the step a15 is a time interval between each of the high potential differential signals and the adjacent low potential differential signals (time) When the interval is greater than a minimum time interval and less than a maximum time interval, it is determined that the plurality of sets of differential signal groups are respectively the effective differential signal group. 如請求項1所述的藉由光源實現的感測器指令傳輸與配置方法,其中該時間序列資料還包括第一個差分訊號前的一段啟動時間以及最後一個差分訊號後的一段睡眠時間,該步驟a15是於該啟動時間大於一門檻啟動時間且該睡眠時間大於一門檻睡眠時間時,判斷該多組差分訊號組分別為該有效差分訊號組。 The sensor command transmission and configuration method implemented by the light source according to claim 1, wherein the time series data further includes a start time before the first differential signal and a sleep time after the last differential signal, In step a15, when the startup time is greater than a threshold activation time and the sleep time is greater than a threshold sleep time, it is determined that the plurality of differential signal groups are respectively the effective differential signal group.
TW106113228A 2017-04-20 2017-04-20 Method for command transmitting and configuring to sensor implemented by ambient light source TWI633523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106113228A TWI633523B (en) 2017-04-20 2017-04-20 Method for command transmitting and configuring to sensor implemented by ambient light source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106113228A TWI633523B (en) 2017-04-20 2017-04-20 Method for command transmitting and configuring to sensor implemented by ambient light source

Publications (2)

Publication Number Publication Date
TWI633523B true TWI633523B (en) 2018-08-21
TW201839732A TW201839732A (en) 2018-11-01

Family

ID=63960045

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106113228A TWI633523B (en) 2017-04-20 2017-04-20 Method for command transmitting and configuring to sensor implemented by ambient light source

Country Status (1)

Country Link
TW (1) TWI633523B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4479266A (en) * 1981-08-12 1984-10-23 Thomson-Csf Multiple-threshold optical receiver for a variable-rate digital data transmission system
US20030147646A1 (en) * 2002-02-04 2003-08-07 Mario Zitelli Combined phase and intensity modulation in optical communication systems
US20080285979A1 (en) * 2006-12-14 2008-11-20 Nec Corporation High-speed optical communication
US20090026966A1 (en) * 2006-03-07 2009-01-29 Koninklijke Philips Electronics N V Lighting system with lighting units using optical communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4479266A (en) * 1981-08-12 1984-10-23 Thomson-Csf Multiple-threshold optical receiver for a variable-rate digital data transmission system
US20030147646A1 (en) * 2002-02-04 2003-08-07 Mario Zitelli Combined phase and intensity modulation in optical communication systems
US20090026966A1 (en) * 2006-03-07 2009-01-29 Koninklijke Philips Electronics N V Lighting system with lighting units using optical communication
US20080285979A1 (en) * 2006-12-14 2008-11-20 Nec Corporation High-speed optical communication

Also Published As

Publication number Publication date
TW201839732A (en) 2018-11-01

Similar Documents

Publication Publication Date Title
CN108139716B (en) Multi-input touch dimming lighting control
US10314144B2 (en) Intelligent luminaire
US11076471B2 (en) Light management system for wireless enabled fixture
US7880394B2 (en) Lighting system to facilitate remote modification of a light fixture modifiable operating parameter
KR101214235B1 (en) Wireless sensing module, wireless lighting controller and wireless lighting system
US10045422B2 (en) System and method for light-based activation of an occupancy sensor wireless transceiver
EP4216036A1 (en) Method for performing operation on intelligent wearing device by using gesture, and intelligent wearing device
US20190029096A1 (en) Multiple input touch control system
TWI633523B (en) Method for command transmitting and configuring to sensor implemented by ambient light source
KR20190035121A (en) Apparatus for dissimilar type communication system based smart lighting control and method by using the same
JP4943867B2 (en) Lighting control system
CN108734945B (en) Sensor instruction transmission and configuration method realized through light source
US11137770B2 (en) Sensor registering method and event identifying method of smart detection system
US20230144497A1 (en) A system for monitoring a space by a portable sensor device and a method thereof
CN116368947A (en) Determining a position of a presence sensor or an optical switch based on a control history
US20170132912A1 (en) Intelligent remote control, electronic device control system and electronic device control method
US11112313B2 (en) Sensor and automatic calibration method applied thereto
EP4062386B1 (en) Allocating different tasks to a plurality of presence sensor systems
JP5009711B2 (en) Signal processing circuit
JP2017033840A (en) Home communication device
KR20150021284A (en) Method and apparatus for controlling lihgt

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees