M443048 五、新型說明: 【新型所屬之技術領域】 * 本新型是有關於一種鎖具,特別是一種光學鎖具。 【先前技術】 現今一般的鎖具多為精密的機械元件結構,並使用相 對應的鑰匙以產生解開或鎖定的功能,因此可應用於現今 Φ 生活中對於安全防盜機制的保護。 隨著科技發展的日新月異,各種具有安全保護機制的 結構鎖具紛紛出籠,進而將其所附加之防盜功能大幅的提 升,但是,前述之機械元件組成之鎖具仍然存在著容易複 製及破解的問題,因而產生防盜安全上的疑慮。 習知鎖具乃藉由鑰匙上之刻痕與鑰匙孔内的卡凸部做 比對,若刻痕凹陷處與卡凸部互補,即可打開卡榫而驅動 鎖頭,然此種設計容易被竊賊解開。 φ 因此,現今一般鎖具之鑰匙容易被複製,使得傳統鎖 具的安全性一再遭受挑戰,因此建立新的鎖具安全機制乃 為必然之趨勢。 【新型内容】 有鑑於先前技術所造成的問題,本新型提供了 一種光 學鎖具以克服先前技術所造成的問題。 本新型之一技術態樣為一種光學鎖具。 根據本新型一實施方式,一種光學鎖具包含光學鑰匙 3 M443048 以及光學鎖固件。 光學鑰匙包含第一本體、第一控制模組以及光訊號發 *送器。第一本體具有至少一發射孔。第一控制模組容置於 .第一本體内且第一控制模組預設的第一光學密碼資料用以 產生光控制訊號。光訊號發送器容置於第一本體内且電性 耦接第一控制模組,根據光控制訊號產生閃爍訊號,且經 由發射孔發出閃燦訊號。 光學鎖固件包含鎖固件、第二本體、光訊號接收器、 籲第二控制模組以及驅動單元。第二本體具有接收孔,且第二 本體連接鎖固件。光訊號接收器容置於第二本體且自接收孔 接收閃爍訊號。第二控制模組容置於第二本體且電性耦接光 訊號接收器用以解碼閃爍訊號,產生解碼訊號,並與第二控 制模組内預設的第二光學密碼資料比對,而產生控制訊號。 驅動單元電性耦接第二控制模組與鎖固件,根據控制訊號發 出警告或對鎖固件進行解鎖或上鎖。 在本新型一實施方式中,光訊號發送器為發光二極體。 • 在本新型一實施方式中,預設的第一光學密碼資料為 摩斯密碼。 在本新型一實施方式中,光學鑰匙更包含第一輸入/輸 出單元電性耦接第一控制模組以及第一外部輸入裝置,使 得預設的第一光學密碼資料,在第一控制模組之控制下被 儲存於光學鑰匙内。 在本新型一實施方式中,光學鑰匙更包含第一儲存單 元容置於第一本體内部,且電性連接第一控制模組用以儲 存預設的第一光學密碼資料。 4 M443048 在本新型一實施方式中,光學鎖固件更包含第二輸入/ 輸出單元,電性耦接第二控制模組以及第二外部輸入裝 •置,使得預設的第二光學密碼資料,在第二控制模組之控 .制下被儲存於該光學鎖固件内。 在本新型一實施方式中,光學鎖固件更包含第二儲存 單元,容置於第二本體内部,且電性耦接第二控制模組用 以儲存預設的第二光學密碼資料。 在本新型一實施方式中,第一外部輸入裝置或第二外 籲部輸入裝置為電腦、行動電話或記憶體媒體、鍵盤或可供 使用者輸入密碼之輸入裝置。 在本新型一實施方式中,光學鑰匙更包含第一電力單 元,電性耦接第一控制模組,光學鎖固件更包含第二電力 單元電性耦接第二控制模組。 在本新型一實施方式中,使用者介面位於第一本體表 面上且電性耦接第一控制模組。 在本新型一實施方式中,使用者介面包括有上鎖以及 *開鎖兩種選項。 本新型之光學鎖具具有多種變化的編碼,可因應需求 而設計複雜度不同的編碼,以提高光學鎖具的安全性。另 外,光學鑰匙係使用發光二極體設計,因此鑰匙裝置的體 積輕薄而便於攜帶。 【實施方式】 以下將以圖式及詳細說明本新型之精神’任何所屬技 術領域中具有通常知識者在暸解本新型之較佳實施例後, M443048 當可由本新型所教示之技術加以改變及修飾,其並不脫離 本新型之精神與範圍。 • 請參照第1圖,其繪示依照本新型一實施方式的一種 .光學鎖具100之立體圖。如第1圖所示,光學鎖具100包 含光學鑰匙110以及光學鎖固件120。其中,光學鑰匙110 可用以啟動或解除光學鎖固件120的鎖固狀態。 光學鑰匙110在第一本體111内部具有預設的第一光 學密碼資料,利用預設的第一光學密碼資料使容置於第一 鲁本體111内的光訊號發送器112產生一具特定閃爍頻率的 閃爍訊號。因此,閃爍訊號透過第一本體111之發射孔Ilia 發出,使得光學鎖固件120透過第二本體122之接收孔122a 而接收此閃爍訊號。另外,第一本體111的表面上可進一 步設置一使用者介面116供使用者操作,而控制光訊號發 送器112啟動或停止發射閃爍訊號。在本實施例中,光訊 號發送器112可為發光二極體。在其他實施例中,光訊號 發送器112可為其他具有閃爍頻率之發光元件。 • 在本實施例中,光學鎖固件120的第二本體122上可 進一步設置一卡合槽122b,可供光學鑰匙110中具發射孔 111a的端部111b卡入其内,使發射孔111a與接收孔122a 能對準而利於光訊號的傳遞。然而,利用此端部111b卡入 光學鎖固件120的卡合槽122b後,光學鎖固件120之光訊 號接收器123可自接收孔122a接收光學鑰匙110所發出之 閃爍訊號。自接收孔122a接收的閃燦訊號可在第二本體 122内將進行解碼,閃爍訊號解碼完成後與第二本體122 内部預設的第二光學密碼資料進行比對。第二本體122内 6 M443048 部的驅動單元(此圖未示)針對比對後的結果,進而對鎖 固件121發出解鎖或上鎖的指令,或發出警告的指令,使 *鎖固件121解鎖或上鎖,或發出除了解鎖、上鎖外的其他 .警告訊息。舉例來說,當閃爍訊號解碼後的密碼資料與預 設的第二光學密碼資料比對相同時,即表示此光學鎖固件 120可進行啟動或解除鎖固件121鎖固的狀態。其中,預 設的第二光學密碼資料可為一提供啟動鎖固件121或解除 鎖固件121鎖固的預設指令。另外,當閃爍訊號經解碼後 鲁的密碼資料不同於預設的第二光學密碼資料時,光學鎖固 件120會發出警告,而告知使用者使用此光學鑰匙110無 法啟動或解除所連接的光學鎖固件120的鎖固狀態。 在本實施例中,光學鑰匙110可進一步設置一第一輸 入/輸出單元117,光學鎖固件120可進一步設置一第二輸 入/輸出單元128。光學鑰匙110可利用第一輸入/輸出單元 117自第一本體111外部輸入一密碼資料以作為預設的第 一光學密碼資料。相同地,光學鎖固件120可利用第二輸 鲁入/輸出單元128自第二本體122外部輸入一密碼資料以作 為預設的第二光學密碼資料。另外,光學鑰匙110與光學 鎖固件120也可藉第一輸入/輸出單元117與第二輸入/輸出 單元128而彼此電性連接,使得預設的第一光學密碼資料 自第一輸入/輸出單元117經第二輸入/輸出單元128而輸入 第二本體122内部,以作為預設的第二光學密碼資料。反 之,也可將預設的第二光學密碼資料自第二輸入/輸出單元 128經第一輸入/輸出單元117而輸入第一本體111内部, 以作為預設的第一光學密碼資料。在本實施例中,第一輸 7 M443048 輪出單7G 117與第二輸入/輪出單元128可為通用串列匯 ^排(USB)以進行有線的資料傳輪。而在其他實施例中, 弟-輸入/輸出單元117與第二輸入/輸出單元128也可使用 -例如是藍芽等無線訊號接收器以進行無線的資料傳輸。 請參照第2圖,其繪示依照本新型另一實施方式的一 •=學鎖具贈之立體圖。如第2圖所示,本實施例之光 +祕no,設有兩個紐號發送^ 112,兩個光訊號發送 盗112可透過兩個相應的發射孔uu發出具閃蝶頻率的閃 燦訊號。其中,兩個閃燦訊號可為兩個具有不同閃炸頻率 的,號。另外,光學鎖固件12㈣接收孔122a及光訊號接 收益123分別與發射孔1113及光訊號發送器ιΐ2的數目相 同以及位置相對應。因此,光訊號發送器112透過接收孔 122a將閃爍訊號傳送至相應的接收孔U2a 收器⑵以進行解碼,進而比對預設的第二光學;= 與解碼後的閃爍訊號。第二本體122内部的驅動單元(圖 未不)針對比對結果而發出警告或對鎖固件121進行解鎖 #或上鎖的指令。在其他實施例中,光學输匙ιι〇,也可設置 兩個以上的光訊號發送器112,配合設置相同數目的光訊 號接收器123並設計每一光訊號發送器112發出之閃爍訊 號的閃爍頻率以產生更多變化的閃爍訊號,而可提高光學 鎖具100的保密性。 同時參照第3圖與第4圖’第3圖係繪示依照本新 型一實施方式的一種光學鎖具100之功能方塊圖。第4圖 係繪示依照本新型一實施方式的一種光學鎖具1〇〇的光學 鑰蛀11 〇之功能方塊圖。如第3圖及第4圖所示,光學鎖 8 M443048 3光學輸匙110以及光學鎖固件120。光學鑰匙 m含光訊號發送器112以及第—控制模 /、甲苐—控制模組113容置於第一本體U1内並 料si的第—光學密碼資料S1。預設的第一光學密碼資 控制模組113轉換為光控制訊號S2。另外, 先说遠發迗器112宏署笛 U3〇^f^ I1 一且有特戒么 根據光控制訊號S2產生 二有特疋閃爍頻率的閃爍訊?虎S3 >照第…發出嶋喊〜 llla(參 斯心t本實施财,預設的第—光學㈣資料si可以是摩 斯二碼。可_摩斯密碼,不同的編碼排 = 二=::長度與間隔時間以產蝴頻率的變 =其他不_柄編錢__S3具有特定的閃燦^ 另外,光學鑰匙110可進—步 117以電性耦接第_控制槿相二3弟一輸入/輸出單元 200。預設的第—光學資 以及第-外部輸入褒置 經由第-輸入/輸出單=3 在第一控龍組113之控制下 1仏組113。 而儲存於第一本體lu内二=:=密碼 4輸入裝置200可為電腦、行動 ’ ,—外 或可供使用者輪入密碼之輸入穿:體媒體、鍵盤 網路的方式將㈣資料經由第=或無線 而進入第-本體⑴内作為預設的第==輪 9 M443048 些實施例令,光學鑰匙110可更包含第 元114〇1中,第—〜υ 含弟—儲存單 且電性連接114容置於第一本體Π1内部, 資料Sl #龍組113以·預設的第-光學密碼 另外,光學鑰匙110可進 ^ 少巴甘弟一電力單元115, 他第組113’以供給第一控難^ 弟本肢111内元件運作上需求的電力。M443048 V. New description: [New technical field] * This new type is related to a lock, especially an optical lock. [Prior Art] Most of today's locks are precision mechanical components and use corresponding keys to create unlocking or locking functions, so they can be used to protect the security anti-theft mechanism in today's Φ life. With the rapid development of science and technology, various structural locks with security protection mechanisms have been released, and the anti-theft function attached to them has been greatly improved. However, the locks composed of the aforementioned mechanical components still have problems of easy copying and cracking. Generate doubts about anti-theft security. The conventional lock is compared with the convex portion of the key hole in the key hole. If the notch is complementary to the convex portion of the card, the card can be opened to drive the lock, but the design is easy to be The thief untied. φ Therefore, the key of today's general locks is easily copied, making the safety of traditional locks repeatedly challenged, so it is an inevitable trend to establish new lock safety mechanisms. [New content] In view of the problems caused by the prior art, the present invention provides an optical lock to overcome the problems caused by the prior art. One of the technical aspects of the present invention is an optical lock. In accordance with an embodiment of the present invention, an optical lock includes an optical key 3 M443048 and an optical lock. The optical key comprises a first body, a first control module and an optical transmitter. The first body has at least one emission aperture. The first control module is disposed in the first body and the first optical password data preset by the first control module is used to generate the light control signal. The optical signal transmitter is disposed in the first body and electrically coupled to the first control module, generates a blinking signal according to the light control signal, and emits a flashing signal through the transmitting hole. The optical lock firmware includes a lock firmware, a second body, an optical signal receiver, a second control module, and a drive unit. The second body has a receiving aperture and the second body is coupled to the locking firmware. The optical signal receiver is received in the second body and receives a blinking signal from the receiving hole. The second control module is disposed on the second body and electrically coupled to the optical signal receiver for decoding the blinking signal, generating a decoded signal, and comparing with the preset second optical password data in the second control module to generate Control signal. The driving unit is electrically coupled to the second control module and the lock firmware, and issues a warning according to the control signal or unlocks or locks the lock firmware. In an embodiment of the invention, the optical signal transmitter is a light emitting diode. • In an embodiment of the present invention, the preset first optical password material is a Morse code. In an embodiment of the present invention, the optical key further includes a first input/output unit electrically coupled to the first control module and the first external input device, such that the preset first optical password data is in the first control module. It is stored in the optical key under the control. In an embodiment of the present invention, the optical key further includes a first storage unit disposed inside the first body, and electrically connected to the first control module for storing the preset first optical password data. 4 M443048 In an embodiment of the present invention, the optical lock further includes a second input/output unit electrically coupled to the second control module and the second external input device, so that the preset second optical password data is It is stored in the optical lock under the control of the second control module. In an embodiment of the present invention, the optical lock further includes a second storage unit that is disposed inside the second body and electrically coupled to the second control module for storing the preset second optical password data. In an embodiment of the present invention, the first external input device or the second external input device is a computer, a mobile phone or a memory medium, a keyboard, or an input device for inputting a password by a user. In an embodiment of the present invention, the optical key further includes a first power unit electrically coupled to the first control module, and the optical lock further includes a second power unit electrically coupled to the second control module. In an embodiment of the invention, the user interface is located on the first body surface and electrically coupled to the first control module. In an embodiment of the present invention, the user interface includes two options: a lock and an unlock. The optical lock of the present invention has a variety of varying codes, and can design codes with different complexity according to requirements to improve the safety of the optical lock. In addition, the optical key is designed with a light-emitting diode, so the size of the key device is light and easy to carry. [Embodiment] The spirit of the present invention will be described in the following drawings and the detailed description of the preferred embodiments of the present invention. The M443048 can be modified and modified by the teachings of the present invention. It does not depart from the spirit and scope of the present invention. Please refer to FIG. 1 , which is a perspective view of an optical lock 100 according to an embodiment of the present invention. As shown in Fig. 1, the optical lock 100 includes an optical key 110 and an optical lock 120. Wherein, the optical key 110 can be used to activate or unlock the locking state of the optical lock 120. The optical key 110 has a preset first optical cryptographic data inside the first body 111, and the optical signal transmitter 112 accommodated in the first ram body 111 generates a specific blinking frequency by using the preset first optical cryptographic data. Flashing signal. Therefore, the blinking signal is transmitted through the transmitting hole Ilia of the first body 111, so that the optical locking member 120 receives the blinking signal through the receiving hole 122a of the second body 122. In addition, a user interface 116 can be further disposed on the surface of the first body 111 for the user to operate, and the control optical signal transmitter 112 can start or stop transmitting the blinking signal. In this embodiment, the optical signal transmitter 112 can be a light emitting diode. In other embodiments, the optical signal transmitter 112 can be other light emitting elements having a blinking frequency. In this embodiment, an engaging groove 122b is further disposed on the second body 122 of the optical fastener 120, and the end portion 111b of the optical key 110 having the emission hole 111a is inserted therein to make the emission hole 111a and The receiving hole 122a can be aligned to facilitate the transmission of the optical signal. However, after the end portion 111b is engaged with the engaging groove 122b of the optical lock 120, the optical signal receiver 123 of the optical lock 120 can receive the blinking signal from the optical key 110 from the receiving hole 122a. The flash signal received from the receiving hole 122a can be decoded in the second body 122, and the second optical code data preset in the second body 122 is compared after the blinking signal is decoded. The drive unit (not shown) of the 6 M443048 portion of the second body 122 is for the result of the comparison, thereby issuing an unlocking or locking command to the lock 121, or issuing a warning command to unlock the *lock firmware 121 or Lock, or issue a warning message other than unlocking or locking. For example, when the cryptographic signal decoded by the blinking signal is identical to the preset second optical cryptographic data, it indicates that the optical locking component 120 can be activated or unlocked. The preset second optical password data may be a preset instruction for providing the startup lock 121 or unlocking the lock 121. In addition, when the cryptographic signal is decoded and the cryptographic data is different from the preset second optical cryptographic data, the optical locking device 120 issues a warning, and informs the user that the optical key 110 cannot be used to activate or unlock the connected optical lock. The locked state of the firmware 120. In the embodiment, the optical key 110 may further be provided with a first input/output unit 117, and the optical lock 120 may further be provided with a second input/output unit 128. The optical key 110 can input a password data from the outside of the first body 111 by using the first input/output unit 117 as the preset first optical password material. Similarly, the optical lock 120 can input a password data from the outside of the second body 122 by using the second input/output unit 128 as the preset second optical password data. In addition, the optical key 110 and the optical lock 120 can also be electrically connected to each other by the first input/output unit 117 and the second input/output unit 128, so that the preset first optical password data is from the first input/output unit. 117 is input to the inside of the second body 122 via the second input/output unit 128 as a preset second optical password material. Conversely, the preset second optical cipher data may be input from the second input/output unit 128 to the inside of the first body 111 via the first input/output unit 117 as the preset first optical cipher data. In this embodiment, the first 7 M443048 round 7G 117 and the second input/round unit 128 may be a universal serial port (USB) for wired data transfer. In other embodiments, the input/output unit 117 and the second input/output unit 128 may also use a wireless signal receiver such as a Bluetooth to perform wireless data transmission. Please refer to FIG. 2, which is a perspective view of a •= learning lock according to another embodiment of the present invention. As shown in FIG. 2, the light + secret no of the present embodiment is provided with two new numbers to transmit ^ 112, and the two optical signal transmitting spears 112 can emit a flashing light with a flashing butterfly frequency through two corresponding transmitting holes uu. Signal. Among them, the two flash signals can be two numbers with different flash frequencies. In addition, the optical lock 12 (four) receiving hole 122a and the optical signal receiving revenue 123 are respectively the same as the number of the transmitting hole 1113 and the optical signal transmitter ι 2 and corresponding to the position. Therefore, the optical signal transmitter 112 transmits the blinking signal to the corresponding receiving hole U2a (2) through the receiving hole 122a for decoding, and then compares the preset second optical;= with the decoded blinking signal. The drive unit inside the second body 122 (not shown) issues a warning for the result of the comparison or an instruction to unlock or lock the lock 121. In other embodiments, the optical input port ιι can also be configured with two or more optical signal transmitters 112, and the same number of optical signal receivers 123 are provided to design and design the blinking of the blinking signal emitted by each optical signal transmitter 112. The frequency is used to generate more varying blinking signals, which increases the confidentiality of the optical lock 100. Referring also to Figures 3 and 4, FIG. 3 is a functional block diagram of an optical lock 100 in accordance with an embodiment of the present invention. Fig. 4 is a functional block diagram showing an optical key 11 of an optical lock 1 according to an embodiment of the present invention. As shown in Figures 3 and 4, the optical lock 8 M443048 3 optical input 110 and optical lock 120. The optical key m includes an optical signal transmitter 112 and a first control mode /, and the control module 113 is received in the first body U1 to receive the first optical code data S1 of the si. The preset first optical code control module 113 converts to the light control signal S2. In addition, let's say that the far-end device 112 Hongfu flute U3〇^f^ I1 and there is a special ring according to the light control signal S2 to generate a flashing signal with a special flashing frequency? Tiger S3 > ~ llla (Shen Sixin t this implementation of the financial, the default - optical (four) data si can be Moss two yards. Can _ Moss password, different coding row = two =:: length and interval time to produce frequency The change of the other = not _ handle __S3 has a specific flash chan ^ In addition, the optical key 110 can be advanced 117 to electrically couple the _ control 二 phase 2 3 brother one input / output unit 200. Preset The first-optical and first-input input devices are set to the group 113 by the first input/output list = 3 under the control of the first control group 113. And stored in the first body lu 2 =: = password 4 input The device 200 can be a computer, an action, or an external input for the user to enter a password: the physical media, the keyboard network, the (4) data enters the first body (1) via the first or wireless as a preset. The first == wheel 9 M443048 Some embodiments, the optical key 110 can further include the first element 114〇1, the first ~ ~ υ with the brother - storage and electricity The sexual connection 114 is accommodated inside the first body Π1, and the data S1#龙组113 is preset to the first-optical code. In addition, the optical key 110 can be reduced to a power meter 115, and the first group 113' Supplying the first control is difficult to control the power required by the components in the body 111.
,而’光學鱗11()可具有使用者介面116。其令,使 制r:1,^16位於第—本體111表面上且電性耗接第-控 S3 ^屮赤本使用者可利用使用者介面116進行閃爍訊號 的卷出或者進行密碼資料的存取或改變。 =時參照第3圖與第5圖,第3圖係_依照本新 / -貫施方式的-種光學鎖具1〇〇之功能方塊圖。第$圖 係綠示依照本新型—實施方式的—種光學鎖具⑽的光學 鎖固件120之功能方塊圖。如第3圖及第5圖所示,光學 鎖固件120包含鎖固件⑵、第二本體122、光訊號接收器 123、第一控制模組124以及驅動單元125。閃燦訊號S3 自第二本體122的接收孔122a (請參照第1圖)進入而被 光訊號接收器123接收。光訊號接收器123接收閃爍訊號 S3後,將閃爍訊號S3傳輸至第二控制模組124。第二控制 模組124的解碼單元124a可將閃爍訊號S3解碼而產生解 瑪訊號S4,將解碼訊號S4與第二控制模組124内預設的 弟一光學岔碼資料_S5在第二控制模組124的比對模組124b 内比對,而產生控制訊號S6。驅動單元125可根據控制訊 號S6提供的警告訊號、解鎖訊號或上鎖訊號而發出警告或 10 M443048 對鎖固件121進行解鎖或上鎖的動作。 在本實施例中,光學鎖固件120可更包含第二輸入/輸 •出單元128。第二輸入/輸出單元128電性耦接第二控制模 .組124以及第二外部輸入裝置300。預設的第二光學密碼 資料S5可自第二外部輸入裝置300經由第二輸入/輸出單 元128傳入第二控制模組124。在第二控制模組124之控 制下,作為預設的第二光學密碼資料S5而儲存於第二本體 122内。在本實施例中,第二外部輸入裝置300可為電腦、 籲行動電話或記憶體媒體、鍵盤或可供使用者輸入密碼之輸 入裝置,透過有線網路或無線網路的方式將密碼資料經由 第二輸入/輸出單元128的傳輸而進入第二本體122内作為 預設的第二光學密碼資料S5。 在一些實施例中,光學鎖固件120更包含第二儲存單 元126。第二儲存單元126容置於第二本體122内部,且 電性耦接第二控制模組124以儲存預設的第二光學密碼資 料S5。 • 另外,光學鎖固件120更包含第二電力單元127電性 耦接第二控制模組124。第二電力單元127可提供光學鎖 固件120内各元件運作時所需的電力。 由上述本新型實施方式可知,應用本新型具有以下優 點: (1) 本新型之光學鎖具具有多種變化的編碼,可因應 需求而設計複雜度不同的編碼,以提高光學鎖具 的安全性。 (2) 本新型之光學鎖具其光學錄匙係使周發光二極體 M443048 設計,因此鑰匙裝置的體積輕薄而便於攜帶。 【圖式簡單說明】 為讓本新型之上述和其他目的、特徵、優點與實施例 能更明顯易懂,所附圖式之說明如下: 第1圖係繪示依照本新型一實施方式的一種光學鎖具 之立體圖。 第2圖係繪示依照本新型另一實施方式的一種光學鎖 具之立體圖。 第3圖係繪示依照本新型一實施方式的一種光學鎖具 之功能方塊圖。 第4圖係繪示依照本新型一實施方式的一種光學鎖具 的光學鑰匙之功能方塊圖。 第5圖係繪示依照本新型一實施方式的一種光學鎖具 的光學鎖固件之功能方塊圖。 【主要元件符號說明】 100 :光學鎖具 123 :光訊號接收器 100’ :光學鎖具 124 :第二控制模組 110 :光學鑰匙 124a :解碼單元 110’ :光學鑰匙 124b:比對模組 111 :第一本體 125 :驅動單元 111a :發射孔 126 :第二儲存單元 mb :端部 127 :第二電力單元 12 M443048 112 :光訊號發送器 113 :第一控制模組 114 :第一儲存單元 115 :第一電力單元 116 :使用者介面 117 :第一輸入/輸出單元 120 :光學鎖固件 121 :鎖固件 122 :第二本體 122a :接收孔 122b :卡合槽 128 :第二輸入/輸出單元 200 :第一外部輸入裝置 300 :第二外部輸入裝置 51 :預設的第一光學密碼資 料 52 :光控制訊號 53 :閃爍訊號 54 :解碼訊號 55 :預設的第二光學密碼資 料 56 :控制訊號 13And the 'optical scale 11' can have a user interface 116. Therefore, the system r:1, ^16 is located on the surface of the first body 111 and is electrically connected to the first control S3. The user can use the user interface 116 to perform the flashing signal or save the password data. Take or change. When referring to Fig. 3 and Fig. 5, Fig. 3 is a functional block diagram of the optical lock 1 according to the present invention. Figure # is a functional block diagram of the optical lock 120 of the optical lock (10) in accordance with the present invention. As shown in Figures 3 and 5, the optical lock 120 includes a lock (2), a second body 122, an optical receiver 123, a first control module 124, and a drive unit 125. The flash signal S3 enters from the receiving hole 122a (refer to Fig. 1) of the second body 122 and is received by the optical signal receiver 123. After receiving the blinking signal S3, the optical signal receiver 123 transmits the blinking signal S3 to the second control module 124. The decoding unit 124a of the second control module 124 can decode the blinking signal S3 to generate the semaphore signal S4, and the decoded signal S4 and the preset optical optical code data _S5 in the second control module 124 are in the second control. The comparison module 124b of the module 124 is compared to generate a control signal S6. The driving unit 125 can issue a warning according to the warning signal, the unlocking signal or the locking signal provided by the control signal S6 or 10 M443048 to unlock or lock the locking member 121. In the present embodiment, the optical lock 120 may further include a second input/output unit 128. The second input/output unit 128 is electrically coupled to the second control module group 124 and the second external input device 300. The preset second optical cipher data S5 can be transmitted from the second external input device 300 to the second control module 124 via the second input/output unit 128. Under the control of the second control module 124, it is stored in the second body 122 as a preset second optical cipher data S5. In this embodiment, the second external input device 300 can be a computer, a mobile phone or a memory medium, a keyboard, or an input device for a user to input a password, and the password data is transmitted through a wired network or a wireless network. The transmission of the second input/output unit 128 enters the second body 122 as a preset second optical cipher data S5. In some embodiments, the optical lock 120 further includes a second storage unit 126. The second storage unit 126 is disposed inside the second body 122 and electrically coupled to the second control module 124 to store the preset second optical code information S5. In addition, the optical locker 120 further includes a second power unit 127 electrically coupled to the second control module 124. The second power unit 127 can provide the power required to operate the various components within the optical lock 120. According to the above-mentioned novel embodiment, the application of the present invention has the following advantages: (1) The optical lock of the present invention has a plurality of varying codes, and codes with different complexity can be designed according to requirements to improve the safety of the optical lock. (2) The optical lock of the present invention has an optical keying system for designing the peripheral light-emitting diode M443048, so that the key device is light and thin and easy to carry. BRIEF DESCRIPTION OF THE DRAWINGS In order to make the above and other objects, features, advantages and embodiments of the present invention more obvious, the description of the drawings is as follows: FIG. 1 is a diagram showing an embodiment according to an embodiment of the present invention. A perspective view of an optical lock. Figure 2 is a perspective view of an optical lock in accordance with another embodiment of the present invention. Figure 3 is a functional block diagram of an optical lock in accordance with an embodiment of the present invention. Figure 4 is a functional block diagram of an optical key of an optical lock in accordance with an embodiment of the present invention. Figure 5 is a functional block diagram of an optical lock of an optical lock in accordance with an embodiment of the present invention. [Main component symbol description] 100: Optical lock 123: Optical signal receiver 100': Optical lock 124: Second control module 110: Optical key 124a: Decoding unit 110': Optical key 124b: Comparison module 111: A body 125: a driving unit 111a: an emission hole 126: a second storage unit mb: an end portion 127: a second power unit 12 M443048 112: an optical signal transmitter 113: a first control module 114: a first storage unit 115: A power unit 116: user interface 117: first input/output unit 120: optical lock 121: lock 122: second body 122a: receiving hole 122b: engaging groove 128: second input/output unit 200: An external input device 300: a second external input device 51: a preset first optical password data 52: a light control signal 53: a blinking signal 54: a decoding signal 55: a preset second optical password data 56: a control signal 13