201116692 TW5508PA r 六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種門鎖之控制方法、裝置及系統, 且特別是有關於一種可透過可攜式電子裝置來開啟門鎖 之控制方法、裝置及系統。 【先前技術】 現在市面上的門鎖是藉由使用者利用特定鑰匙對其 進行開啟或關閉,來防範身家財物之安全,也就是說,當 使用者離開家中時,則必須攜帶對應於家裡門鎖之鑰匙(亦 即特定鑰匙)出門,於此,當使用者回家時才得以利用此特 定鑰匙開啟門鎖回到家中,實為不便。此外,若使用者欲 更換門鎖,則需將整組門鎖進行拆裝,除了增加額外的支 出外,亦耗時費力。 【發明内容】 本發明係有關於一種門鎖之控制方法、裝置及系統, 其可透過偵測可攜式電子裝置之顯示單元所顯示之預定 單色圖片來決定是否將門鎖開啟,如此,使用者除了可不 必額外攜帶特定鑰匙來開啟門鎖外,若使用者欲更換門鎖 也不必拆除舊有之門鎖,只需重新設定可攜式電子裝置及 控制裝置之預定單色圖片即可達到換鎖之功效。 本發明主要係提供一種門鎖之控制系統,包括可攜式 電子裝置及控制裝置。可攜式電子裝置包括一顯示單元。 顯示單元係依據一顯示時序播放第一單色圖片及第二單 色圖片,此顯示時序包括第一、第二單色圖片之播放順 序、第一單色圖片之第一播放長度及第二單色圖片之第二 201116692 ,1 WDDUB^ 播放長度。控制裝置係係設置於-門鎖上,控制裝置包括 =举Γ!晴元、開關單元。偵測單元用以谓測顯示 _ _一單色圖片之第一顯示色彩值及第二單色圖片之 第”肩示色表值。判斷單元用以判斷顯示時序是否符人一 預定時序,並判斷第一顯示色彩值及第二顯示色彩值i否 分別符合第一預定色彩值及第二預定色彩值。開關單元, 若顯示時序符合預定時序,且第一顯 色,二別符合第一預定色彩值及第二預定色彩以 關早70開啟門鎖。 根據本發明之另一方面,提出一種門鎖之控制方法。 此門鎖之控制方法包括下列步驟。首先,提供—門鎖、一 控^置及-可攜式電子裝置,控制裝置設置於門鎖上。 接著’依據-顯示時序,以可攜式電子裝置播放一第 色圖片及-第二單色圖片’顯示時序包括第一、第二單色 ,片之—射順序H色㈣U放長度及第二 :色f片ί第二播放長度。之後’以控制裝置偵測顯示時 一、—一單色圓片之第一顯示色彩值及第二單色圖片之第 ^顯示色彩值。接著,以控制裝置判斷顯示時序是否符人 一預定時序,並判斷第一顯示色彩值及第二顯示色彩值i 否分別符合第-預定色彩值及第二預定色彩值。之後,若 顯示時序符合預定時序’且第一顯示色彩值及第二顯示色 符合第一預定色彩值及第二預定色彩值,貝 裝置開啟門鎖。 4 根據本發明之更另—方面,提出—種門鎖之控制裝 置’包括债測單元、判斷單元及開關單元。備測單元用以 S1 5 201116692 TW5508PA ' , 接收由一可攜式電子裝置依據一顯示時序播放之第一單 色圖片及第二單色圖片,並偵測顯示時序、第一單色圖片 之第一顯示色彩值及第二單色圖片之第二顯示色彩值,顯 示時序包括第一、第二單色圖片之一播放順序、第一單色 圖片之第一播放長度及第二單色圖片之第二播放長度。判 斷單元用以判斷顯示時序是否符合一預定時序,並判斷第 一顯示色彩值及第二顯示色彩值是否分別符合第一預定 色彩值及第二預定色彩值。開關單元,若顯示時序符合預 定時序,且第一顯示色彩值及第二顯示色彩值分別符合第 一預定色彩值及第二預定色彩值,則開關單元開啟門鎖。 為讓本發明之上述内容能更明顯易懂,下文特舉實施 例,並配合所附圖式,作詳細說明如下: 【實施方式】 請參照第1圖及第2圖,第1圖繪示本發明之一實施 例之門鎖之控制系統的示意圖,第2圖繪示本發明之一實 施例之控制系統之方塊圖。如第1圖及第2圖所示,門鎖 之控制系統300包括可攜式電子裝置200以及控制裝置 100。可攜式電子裝置200包括一顯示單元220,此顯示單 元220可用來播放圖片,例如係單色圖片。可攜式電子裝 置200例如係為行動電話、個人數位隨身助理(Personal Digital Assistance,PDA)。控制裝置100例如設置於門鎖 10上,控制裝置100包括偵測單元120、判斷單元140及 開關單元160。偵測單元120用來偵測顯示單元220所顯 示之單色圖片。判斷單元140用以對偵測單元120之偵測 結果執行判斷程序。開關單元160係依據判斷結果來對門 201116692201116692 TW5508PA r VI. Description of the Invention: [Technical Field] The present invention relates to a method, device and system for controlling a door lock, and more particularly to a control for opening a door lock through a portable electronic device Method, device and system. [Prior Art] Nowadays, the door lock on the market is used to prevent the security of the belongings by turning on or off the user with a specific key. That is to say, when the user leaves the home, he must carry the door corresponding to the home. The key to the lock (that is, the specific key) goes out. Here, when the user goes home, it is inconvenient to use the specific key to unlock the door and return to the home. In addition, if the user wants to replace the door lock, the entire set of door locks needs to be disassembled, which is time consuming and laborious except for adding extra expenses. SUMMARY OF THE INVENTION The present invention relates to a method, device, and system for controlling a door lock, which can determine whether to open a door lock by detecting a predetermined monochrome picture displayed by a display unit of the portable electronic device. In addition to not having to carry a specific key to unlock the door lock, if the user wants to replace the door lock, it is not necessary to remove the old door lock, just reset the predetermined monochrome picture of the portable electronic device and the control device. The effect of changing the lock. The invention mainly provides a control system for a door lock, comprising a portable electronic device and a control device. The portable electronic device includes a display unit. The display unit plays the first monochrome picture and the second monochrome picture according to a display timing, and the display timing includes a playing order of the first and second monochrome pictures, a first playing length of the first monochrome picture, and a second single Color picture of the second 201116692, 1 WDDUB^ play length. The control device is installed on the -door lock, and the control device includes = Γ 晴 晴 晴, clear unit, switch unit. The detecting unit is configured to pre-measure the first display color value of the __monochrome picture and the “the shoulder color table value of the second monochrome picture. The determining unit is configured to determine whether the display timing meets a predetermined timing, and Determining whether the first display color value and the second display color value i respectively meet the first predetermined color value and the second predetermined color value. The switch unit, if the display timing meets a predetermined timing, and the first color is developed, the second item conforms to the first predetermined The color value and the second predetermined color are used to open the door lock 70. According to another aspect of the present invention, a method for controlling a door lock is provided. The method for controlling the door lock includes the following steps. First, providing a door lock and a control ^Setting-portable electronic device, the control device is arranged on the door lock. Then, according to the display timing, the portable electronic device plays a first color picture and the second monochrome picture display timing includes the first The second color, the film-shot sequence H color (four) U put the length and the second: the color f film ί the second play length. Then 'the control device detects the display one, the first display color of a monochrome wafer Value and second monochrome The color value of the picture is displayed. Then, the control device determines whether the display timing meets a predetermined timing, and determines whether the first display color value and the second display color value i respectively meet the first predetermined color value and the second predetermined color. After that, if the display timing meets the predetermined timing ' and the first display color value and the second display color meet the first predetermined color value and the second predetermined color value, the shell device opens the door lock. 4 Further aspects according to the present invention The present invention provides a control device for a door lock, which includes a debt measurement unit, a determination unit and a switch unit. The preparation unit is used for S1 5 201116692 TW5508PA ', and receives a first monochrome played by a portable electronic device according to a display timing. a picture and a second monochrome picture, and detecting a display timing, a first display color value of the first monochrome picture, and a second display color value of the second monochrome picture, the display timing includes the first and second monochrome pictures a play sequence, a first play length of the first monochrome picture, and a second play length of the second monochrome picture. The determining unit is configured to determine whether the display timing meets a predetermined time And determining whether the first display color value and the second display color value respectively meet the first predetermined color value and the second predetermined color value. The switch unit, if the display timing meets a predetermined timing, and the first display color value and the second display The color values respectively correspond to the first predetermined color value and the second predetermined color value, and the switch unit turns on the door lock. In order to make the above content of the present invention more obvious and understandable, the following specific embodiments are combined with the drawings. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS [Embodiment] Please refer to FIG. 1 and FIG. 2, FIG. 1 is a schematic diagram showing a control system of a door lock according to an embodiment of the present invention, and FIG. 2 is a view showing an embodiment of the present invention. Block diagram of the control system. As shown in Figures 1 and 2, the door lock control system 300 includes a portable electronic device 200 and a control device 100. The portable electronic device 200 includes a display unit 220, the display unit 220 can be used to play a picture, such as a monochrome picture. The portable electronic device 200 is, for example, a mobile phone, a Personal Digital Assistance (PDA). The control device 100 is disposed, for example, on the door lock 10. The control device 100 includes a detecting unit 120, a determining unit 140, and a switching unit 160. The detecting unit 120 is configured to detect a monochrome picture displayed by the display unit 220. The determining unit 140 is configured to execute a determining process on the detection result of the detecting unit 120. The switch unit 160 is based on the judgment result to the door 201116692
1 W3DU〇rA1 W3DU〇rA
• I 鎖10進行開啟或關閉。偵測單元120例如係為光偵測器。 茲以詳細流程圖說明如下。 請參照第3圖,其繪示本發明之一實施例之門鎖之控 制方法的流程圖。首先,於步驟S3〇2所示,顯示單元22〇 依據一顯示時序播放一第一單色圖片及一第二單色圖 片°顯不時序包括第-、第二單色圖片之一播放順序、第 單色圖片之一第一播放長度及第二單色圖片之一第二 播放長度。舉例來說,第―、第二單色圖片分別係由三原 色色彩值所組成,三原色色彩值例如係為紅、綠、藍色彩 值。播放順序例如係對應於第一、第二單色圖片之色彩之 ;頃序。第-、第二播放長度例如係顯示單元MO各別持續 播放第一、第二單色圖片之時 更進-步來說,假定第一單^片係由紅色所組成, -單色係由綠色所組成,其所代表之播放順序係為 = '綠色’亦即先播放代表紅色之圖片後再播放代表綠色之 片此外’代表紅、綠、藍色之色彩值例如係介於〇〜255 =之間’由於此些色彩值之組合具有多種變化,相對地也 較難被破解以開啟門鎖,如此,使用者可透過設計此些色 彩值之組合來防止宵小進入家中。 、舉例來說,假定顯示單元220持續播放第一單色圖片 ,為3秒鐘,此時對應於第—單色圖片之第—播放長度即 - 3秒鐘’假定顯示單元22〇持續播放第二單色圖 2鐘,此時對應於第二單色圖片之第二播放長度即為5秒 _。在本實施例中,係以顯示單元220依據顯示時序來 不第-、第二單色圖片為例作說明’然而,本實施例之顯 201116692• I lock 10 is turned on or off. The detecting unit 120 is, for example, a photodetector. The following is a detailed flow chart. Referring to Figure 3, there is shown a flow chart of a method of controlling a door lock according to an embodiment of the present invention. First, in step S3〇2, the display unit 22 plays a first monochrome picture and a second monochrome picture according to a display timing. The display timing includes one of the first and second monochrome pictures, One of the first monochrome picture and the second one of the second monochrome picture. For example, the first and second monochrome images are respectively composed of three primary color values, and the three primary color values are, for example, red, green, and blue color values. The playing order is, for example, corresponding to the colors of the first and second monochrome pictures; The first and second play lengths are, for example, when the display unit MO continuously plays the first and second monochrome pictures, and the first single unit is composed of red, and the monochrome unit is composed of The composition of green, the playback order represented by it is = 'green', that is, the picture representing the red is played first and then the picture representing the green is played. In addition, the color value representing the red, green and blue is, for example, 〇~255 Between = because the combination of these color values has a variety of changes, it is relatively difficult to be cracked to open the door lock, so that the user can prevent the small size from entering the home by designing a combination of these color values. For example, assume that the display unit 220 continues to play the first monochrome picture for 3 seconds, at which time the first play length corresponding to the first monochrome picture is -3 seconds' assuming that the display unit 22 continues to play. The second monochrome picture is 2 clocks, and the second playback length corresponding to the second monochrome picture is 5 seconds_. In this embodiment, the display unit 220 does not use the first and second monochrome pictures as an example according to the display timing. However, the display of the present embodiment 201116692
i wdduoPA • r ^時序亦γ依照使用者之需求來進行設計與調整 ,例如顯 不更多張單色圖片 '改變單色圖片之色彩值、播放順序及 播放長度。 ”如步驟S304所示,偵測單元12〇偵測顯示時序、第 一單色圖片之一第一顯示色彩值及該第二單色圖片之一 第二顯示色彩值。於步驟S3〇6所示,判斷單元14〇判斷 顯示時序是否符合-預定時序,並判斷第一顯示色彩值及 第二,示色彩值是否分別符合一第一預定色彩值及一第 了預定色彩值。若顯示時序符合預定時序,且第一顯示色 彩值及第二顯示色彩值分別符合第一預定色值及第二預 定色彩值,則執行步騾S308;若顯示時序未符合預定時 序、第一顯示色彩值未符合第一預定色彩值或第二顯示色 彩值分別未符合第二預定色彩值時,則執行步驟S31〇。茲 舉例詳細說明步驟S304〜306如下。 請參照第4A〜4C圖,其繪示由三原色色彩值所組成 之第一、第二單色圖片之時序圖。如第4A〜4c圖所示, 檢座標係代表時間t ;縱座標係代表色彩值匸⑴。曲線R、 曲線G及曲線B係分別代表由三原色所組成之第一、第二 單色圖片中之紅、綠、藍色彩值。預定時序 一、 二單色圖片之預定順序令預定播放長預定: 放長度。 舉例來說,假定預定順序為紅-綠色(亦可為橘色、紫 色或其他顏色),且第一、第二單色圖片之第一預定播放長 度及第二預定播放長度分別為3秒鐘與5秒鐘,若第一單 色圖片之播放區間ti及第二單色圖片之播放區間t2實質 201116692,i wdduoPA • r ^ Timing γ is designed and adjusted according to the user's needs, such as displaying more monochrome pictures 'Change the color value, playback order and playback length of monochrome pictures. As shown in step S304, the detecting unit 12 detects the display timing, the first display color value of one of the first monochrome pictures, and the second display color value of the second monochrome picture. In step S3〇6 The determining unit 14 determines whether the display timing meets the predetermined timing, and determines whether the first display color value and the second color value respectively match a first predetermined color value and a predetermined color value. After the predetermined timing, and the first display color value and the second display color value respectively meet the first predetermined color value and the second predetermined color value, step S308 is performed; if the display timing does not meet the predetermined timing, the first display color value does not match When the first predetermined color value or the second display color value does not meet the second predetermined color value, respectively, step S31 is performed. Steps S304 to 306 are explained in detail as follows. Please refer to FIGS. 4A to 4C, which are illustrated by three primary colors. The timing chart of the first and second monochrome pictures composed of color values. As shown in Figures 4A to 4c, the locator system represents time t; the ordinate system represents color value 匸 (1). Curve R, curve G and curve B The red, green, and blue color values in the first and second monochrome pictures composed of the three primary colors respectively. The predetermined sequence of the first and second monochrome pictures is predetermined to make the predetermined play length predetermined: the length. For example, It is assumed that the predetermined order is red-green (may also be orange, purple or other colors), and the first predetermined play length and the second predetermined play length of the first and second monochrome pictures are 3 seconds and 5 seconds, respectively. If the play interval ti of the first monochrome picture and the play interval t2 of the second monochrome picture are substantially 201116692,
t TW5508PA 上分別為3秒鐘及5秒鐘,且在播放區間tl内代表紅色之 曲線R係為高位準(亦即在播放區間tl中播放之圖片係由 紅色組成),而在播放區間t2内代表綠色之曲線G係為言 位準(亦即在播放區間t2中播放之圖片係由綠色組成= 判斷單元140判定顯示時序係符合預設時序,亦即播玫順 序符合預定播放順序,且第一、第二單色圖片之第一、第 二播放長度分別符合對應之第一、第二預定播放長度。 此外,第一、第二預定色彩值例如介於〇〜255之間, φ假設第一、第二預定色彩值分別係為255,若分別代表第 一、第二單色圖片之三原色色彩值c(tl)及三原色色彩值 C(t2)各為(255,0,0)、(〇,255,〇),則判斷單元14〇判定第 一、第二顯示色彩值係分別符合第一、第二預定色彩值。 然而,於實作中’可依照實際情況設計一誤差範圍於播放 長度及顯示色彩值。 於一例子中,顯示時序更例如包括多個時間間隔此 些時間間隔係為相同。如第4C圖所示,假定顯示單元22〇 鲁更顯示一第三單色圖片,此第三單色圖片例如係由藍色(係 由曲線B代表)所組成,第一、第二單色圖片具有一時間 間隔td 1,第一、第二單色圖片具有一時間間隔td2。假定 時間間隔tdl、td2符合一預定時間間隔或符合一誤差範園 内’則判斷單元140則判定時間間隔tcn、td2符合預定時 間間隔^ 在另一例子中’假定時間間隔ten、td2係不全相同, 且時間間隔tdl、td2係分別符合各對應之一預定時間間隔 或符合一誤差範圍内,則判斷單元140則判定時間間隔 201116692 =气,對應之預定時間間隔。當然,步驟藝 亦可搭配時間間隔來實施,σ ^ ,^ β ^ „ /、要預定播放順序、預定播放 之其二之組合或全部,並配合預定色 彩值亦可實現本實施例。 第顯一||驟S308 ’若顯示時序符合預定時序’且 及第二顯示色彩值分別符合第一預定色 則開關單元刚開啟⑽10。 -顯心所不’若顯示時序未符合預定時序、第 八別二=符合第一預定色彩值或第二顯示色彩值 = 預定色彩值時’則開關單元160繼續鎖上 门鎖10。 糸站月上述實施例所揭露之門鎖之控制方法'裝置及 ΐί”利性。使用者可利用攜帶之可攜式電子 二It Γ預疋之單色圖片以開啟門鎖,於此使用者不必再 、疋繪4來開啟門鎖。另外,若使用者想更換門鎖亦 =對整,門鎖進行更換’只需對可攜式電子裝置及控制 之預定的單色圖片,如此亦可達到更換門鎖之功效。 综上所述,雖然本發明已以實施例揭露如上,然其並 2用以限定本發明。本發明所屬技術領域中具有通常知識 在不脫離本發明之精神和範圍内,當可作各種之更動 /、潤飾。因此,本發明之保護範圍當視後附之申請專利範 圍所界定者為準❶ 【圖式簡單說明】 第1圖繪示本發明之一實施例之門鎖之控制系統的 示意圖。 201116692t TW5508PA is 3 seconds and 5 seconds respectively, and the curve R representing the red in the playback interval tl is high (that is, the picture played in the playback interval tl is composed of red), and in the playback interval t2 The curve representing G in the green is the level of speech (that is, the picture played in the playing interval t2 is composed of green = the judging unit 140 determines that the display timing conforms to the preset timing, that is, the order of the broadcast is in accordance with the predetermined playing order, and The first and second play lengths of the first and second monochrome pictures respectively correspond to the corresponding first and second predetermined play lengths. Further, the first and second predetermined color values are, for example, between 〇 and 255, φ is assumed The first and second predetermined color values are respectively 255, if the three primary color values c(tl) and the three primary color values C(t2) of the first and second monochrome pictures are respectively (255, 0, 0), (〇, 255, 〇), the determining unit 14 determines that the first and second display color values respectively conform to the first and second predetermined color values. However, in practice, an error range can be designed according to the actual situation. Play length and display color value. The display timing is more than, for example, including a plurality of time intervals, and the time intervals are the same. As shown in FIG. 4C, it is assumed that the display unit 22 displays a third monochrome picture, for example, by the third monochrome picture. Blue (represented by curve B), the first and second monochrome pictures have a time interval td 1, and the first and second monochrome pictures have a time interval td2. It is assumed that the time intervals tdl, td2 meet a predetermined time. If the time interval is within an error range, then the determining unit 140 determines that the time intervals tcn, td2 meet the predetermined time interval. ^ In another example, 'the assumed time intervals ten and td2 are not all the same, and the time intervals tdl and td2 are respectively matched. If one of the corresponding predetermined time intervals or within an error range, the determining unit 140 determines the time interval 201116692 = gas, corresponding to the predetermined time interval. Of course, the step art can also be implemented with the time interval, σ ^ , ^ β ^ „ /, to order the playback sequence, the combination of the two or all of the scheduled playback, and with the predetermined color value can also achieve this embodiment. The first display | | step S308 'if displayed The sequence meets the predetermined timing' and the second display color value respectively meets the first predetermined color, and the switch unit is just turned on (10) 10. - If the display timing does not meet the predetermined timing, the eighth is equal to the first predetermined color value. Or the second display color value = the predetermined color value, then the switch unit 160 continues to lock the door lock 10. The control method of the door lock disclosed in the above embodiment is the device and the user's advantage. The portable electronic two It Γ pre-printed monochrome picture to open the door lock, the user does not have to draw 4 to open the door lock. In addition, if the user wants to replace the door lock, the whole door lock is also carried out. Replacement 'requires a monochrome image of the portable electronic device and control, so that the door lock can be replaced. In summary, although the present invention has been disclosed in the above embodiments, it is intended to limit the present invention. It is common knowledge in the art to which the invention pertains, and various modifications and refinements can be made without departing from the spirit and scope of the invention. Therefore, the scope of the present invention is defined by the scope of the appended claims. [FIG. 1] FIG. 1 is a schematic diagram showing a control system for a door lock according to an embodiment of the present invention. 201116692
1 wjjLior'A 第2圖繪示乃本發明之一實施例之控制系統之方塊 圖。 第3圖繪示乃本發明之一實施例之門鎖之控制方法 的流程圖。 第4A圖繪示乃由三原色色彩值所組成之第一、第二 單色圖片之時序圖。 第4B圖繪示乃由三原色色彩值所組成之第一、第二 單色圖片之時序圖。 φ 第4C圖繪示乃由三原色色彩值所組成之第一、第二 單色圖片之時序圖。 【主要元件符號說明】 300 :控制系統 220 :顯示單元 200 :可攜式電子裝置 160 :開關單元 140 :判斷單元 φ 120:偵測單元 100 :控制裝置 t :時間 C(t):色彩值 R、G、B :曲線 tl、t2 ·播放區間 tdl、td2 :時間間隔 S302〜310 :步驟流程 111 wjjLior'A Figure 2 is a block diagram showing a control system in accordance with an embodiment of the present invention. Fig. 3 is a flow chart showing a method of controlling a door lock according to an embodiment of the present invention. Fig. 4A is a timing chart showing the first and second monochrome pictures composed of the color values of the three primary colors. Fig. 4B is a timing chart showing the first and second monochrome pictures composed of the color values of the three primary colors. φ Figure 4C shows the timing diagram of the first and second monochrome pictures composed of the color values of the three primary colors. [Main component symbol description] 300: Control system 220: Display unit 200: Portable electronic device 160: Switching unit 140: Judging unit φ 120: Detection unit 100: Control device t: Time C(t): Color value R , G, B: curve tl, t2 · play interval tdl, td2: time interval S302~310: step flow 11