TWI447711B - System and method for controlling a button of a cd-rom - Google Patents
System and method for controlling a button of a cd-rom Download PDFInfo
- Publication number
- TWI447711B TWI447711B TW099110650A TW99110650A TWI447711B TW I447711 B TWI447711 B TW I447711B TW 099110650 A TW099110650 A TW 099110650A TW 99110650 A TW99110650 A TW 99110650A TW I447711 B TWI447711 B TW I447711B
- Authority
- TW
- Taiwan
- Prior art keywords
- button
- disc
- drive
- optical
- optical disc
- Prior art date
Links
Landscapes
- Optical Recording Or Reproduction (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Description
本發明涉及一種光碟機按鍵控制系統及方法。 The invention relates to a disc drive key control system and method.
能夠提供給用戶觀看光碟以及安裝程式等功能的光碟機,是電腦的一個重要組成部分。隨著科技的不斷進步,電腦的體積設計得越來越小,如筆記本電腦以及一體式電腦等。無彈出按鍵的超薄式光碟機以及吸入式光碟機因其佔用空間小的優點而被廣泛的使用於筆記本電腦以及一體式電腦中。由於無彈出按鍵的超薄式光碟機以及吸入式光碟機沒有彈出按鍵功能,需要使用軟體來類比彈出按鍵的功能,用戶每次在彈出光碟時,都必須通過操作軟體來實現,這樣的使用方式顯得不夠方便。解決上述問題的常用方法有以下兩種: A CD player that provides users with the ability to view CDs and install programs is an important part of the computer. With the continuous advancement of technology, the size of computers is becoming smaller and smaller, such as laptops and integrated computers. Ultra-thin disc players and drop-in disc players without eject buttons are widely used in notebook computers and integrated computers because of their small footprint. Since the ultra-thin disc player and the slot-loading disc player without the eject button do not have the eject button function, the software needs to be used to analogize the function of the eject button. Each time the user ejects the disc, it must be realized by operating the software. It is not convenient enough. There are two common ways to solve the above problems:
(1)找廠商定制光碟機,預留針腳,然後把機械按鍵佈置好以後用電纜線直接連接,缺點為價格非常高,且必須考慮外接電纜線的佈局,不利於設計。 (1) Find the manufacturer's custom CD player, reserve the stitches, and then connect the mechanical buttons directly after connecting the cable. The disadvantage is that the price is very high, and the layout of the external cable must be considered, which is not conducive to the design.
(2)在光碟機附近佈置嵌入式控制晶片,控制光碟機的彈出,缺點為增加了一片控制晶片的成本,且需要進行PCB佈線和額外的電力供應。 (2) Arranging an embedded control chip near the optical disk drive to control the ejection of the optical disk drive has the disadvantage of increasing the cost of one control chip and requiring PCB wiring and additional power supply.
鑒於以上內容,有必要提供一種光碟機按鍵控制系統及方法,其可當電腦的輸入輸出晶片上連接的光碟機按鍵被按下時,控制該光碟機彈出光碟,實現無彈出按鍵的光碟機的彈出按鍵功能。 In view of the above, it is necessary to provide a disc player button control system and method, which can control the disc player to eject a disc when the disc player button connected to the input/output chip of the computer is pressed, thereby realizing the disc player without the eject button. The button function is popped up.
所述光碟機按鍵控制系統,運行於電腦中,該電腦的輸入輸出晶片與該光碟機以及一個光碟機按鍵相連接。該系統包括:檢測模組,用於檢測所述光碟機按鍵是否被按下;判斷模組,用於當檢測到所述光碟機按鍵被按下時,判斷所述光碟機中是否存在光碟;控制模組,用於當判斷出所述光碟機中存在光碟時,發出控制信號至該光碟機,控制該光碟機彈出光碟。 The CD player button control system runs in a computer, and the input and output chips of the computer are connected to the CD player and a CD player button. The system includes: a detecting module, configured to detect whether the button of the optical disk drive is pressed; and a determining module, configured to determine whether a optical disk exists in the optical disk drive when detecting that the optical disk drive button is pressed; The control module is configured to: when it is determined that the optical disc exists in the optical disc drive, send a control signal to the optical disc drive, and control the optical disc drive to eject the optical disc.
所述光碟機按鍵控制方法,應用於電腦中,該電腦的輸入輸出晶片與該光碟機以及一個光碟機按鍵相連接。(a1)當電腦處於正常運作狀態時,檢測所述光碟機按鍵是否被按下;(a2)當檢測到光碟機按鍵被按下時,判斷所述光碟機中是否存在光碟,如果存在光碟,則執行步驟(a3),否則,返回步驟(a1);(a3)發出控制信號至所述光碟機,控制該光碟機彈出光碟。 The CD player button control method is applied to a computer, and the input/output chip of the computer is connected to the CD player and a CD player button. (a1) detecting whether the button of the optical disc drive is pressed when the computer is in a normal operation state; (a2) determining whether a disc is present in the optical disc drive when the disc player button is pressed, and if there is a disc, Then, step (a3) is performed; otherwise, the process returns to step (a1); (a3) sends a control signal to the optical disk drive to control the optical disk drive to eject the optical disk.
相較於習知技術,所述光碟機按鍵控制系統及方法,無硬體增加成本,即可實現當電腦的輸入輸出晶片上連接的光碟機按鍵被按下時,控制該光碟機中的光碟彈出,實現無彈出按鍵的光碟機的彈出按鍵功能,方便了用戶的使用。 Compared with the prior art, the optical disc button control system and method can control the optical disc in the optical disc drive when the optical disc button connected to the input/output chip of the computer is pressed without hardware and cost increase. Pop-up, the function of the eject button of the CD-ROM without the eject button is convenient for the user to use.
1‧‧‧電腦 1‧‧‧ computer
10‧‧‧輸入輸出晶片 10‧‧‧Input and output wafer
11‧‧‧光碟機按鍵 11‧‧‧Disc button
12‧‧‧處理器 12‧‧‧ Processor
13‧‧‧光碟機 13‧‧‧CD player
14‧‧‧記憶體 14‧‧‧ memory
20‧‧‧光碟機按鍵控制系統 20‧‧‧Disc button control system
201‧‧‧檢測模組 201‧‧‧Detection module
202‧‧‧判斷模組 202‧‧‧Judgement module
203‧‧‧控制模組 203‧‧‧Control Module
圖1係為本發明光碟機按鍵控制系統的架構圖。 1 is a structural diagram of a button control system of an optical disc drive of the present invention.
圖2係為本發明較佳實施例中光碟機與光碟機按鍵在電腦中的相對位置示意圖。 2 is a schematic view showing the relative positions of the optical disk drive and the optical disk drive button in the computer according to the preferred embodiment of the present invention.
圖3係為本發明光碟機按鍵控制系統的功能模組圖。 3 is a functional block diagram of a button control system of the optical disc drive of the present invention.
圖4係為本發明光碟機按鍵控制方法較佳實施例的流程圖。 4 is a flow chart of a preferred embodiment of a method for controlling a button of an optical disk drive according to the present invention.
如圖1所示,係本發明光碟機按鍵控制系統的架構圖。該光碟機按鍵控制系統20運行於電腦1中,該電腦1可為筆記本電腦或一體式電腦。該電腦1還包括輸入輸出晶片10、光碟機按鍵11、處理器12、光碟機13以及記憶體14。所述光碟機按鍵11、處理器12、光碟機13以及記憶體14分別與輸入輸出晶片10相連接。所述輸入輸出晶片10可為一南橋晶片或超級輸入輸出晶片,該輸入輸出晶片集成了GPIO(General Purpose Input Output:通用輸入輸出)以及SMBUS(System Management Bus:系統管理匯流排)。所述光碟機13是指無彈出按鍵的超薄式光碟機或吸入式光碟機。 As shown in FIG. 1, it is an architectural diagram of the button control system of the optical disc drive of the present invention. The CD player button control system 20 operates in a computer 1, which can be a laptop or an integrated computer. The computer 1 further includes an input/output chip 10, a disc player button 11, a processor 12, a disc player 13, and a memory 14. The disc player button 11, the processor 12, the optical disc drive 13 and the memory 14 are connected to the input/output wafer 10, respectively. The input/output chip 10 can be a south bridge chip or a super input/output chip. The input/output chip integrates GPIO (General Purpose Input Output) and SMBUS (System Management Bus). The optical disk drive 13 refers to an ultra-thin optical disk drive or a suction type optical disk drive without an eject button.
如圖2所示,係本發明較佳實施例中光碟機與光碟機按鍵在電腦中的相對位置示意圖。所述光碟機按鍵11可設置在光碟機13附近,該光碟機按鍵11隸屬於電腦1,與所述輸入輸出晶片10連接,並不隸屬於光碟機13。此處所應說明的是,圖2僅為一張示意光碟機按鍵11與光碟機13在電腦1中的相對位置關係的示意圖,其並未對該光碟機按鍵11與光碟機13在電腦1中的絕對位置做任何限定。 2 is a schematic view showing the relative positions of the optical disk drive and the optical disk drive button in the computer according to the preferred embodiment of the present invention. The disc player button 11 can be disposed in the vicinity of the disc player 13. The disc player button 11 is attached to the computer 1 and is connected to the input/output chip 10 and is not affiliated with the disc player 13. It should be noted that FIG. 2 is only a schematic diagram showing the relative positional relationship between the optical disk drive button 11 and the optical disk drive 13 in the computer 1, which is not in the computer 1 for the optical disk drive button 11 and the optical disk drive 13 Do not limit the absolute position.
如圖3所示,係本發明光碟機按鍵控制系統的功能模組圖。所述光碟機按鍵控制系統20用於當所述光碟機按鍵11被按下時,控制所述光碟機13中的光碟彈出。該光碟機按鍵控制系統20包括檢測模組201、判斷模組202以及控制模組203。該光碟機按鍵控制系統20可安裝在所述記憶體14中,由所述處理器12控制該光碟機按 鍵控制系統20的運行。以下結合圖4描述該光碟機按鍵控制系統的各個功能模組。 As shown in FIG. 3, it is a functional module diagram of the button control system of the optical disc drive of the present invention. The disc player button control system 20 is configured to control the disc ejecting in the disc player 13 when the disc player button 11 is pressed. The CD player button control system 20 includes a detection module 201, a determination module 202, and a control module 203. The CD player button control system 20 can be installed in the memory 14, and the processor 12 controls the CD player to press The keys control the operation of system 20. The various functional modules of the CD player key control system are described below in conjunction with FIG.
如圖4所示,係本發明光碟機按鍵控制方法較佳實施例的流程圖。 As shown in FIG. 4, it is a flowchart of a preferred embodiment of the method for controlling the button of the optical disc drive of the present invention.
步驟S1,所述電腦1開機,處於正常運作狀態。 In step S1, the computer 1 is turned on and is in a normal operating state.
步驟S2,所述檢測模組201檢測所述光碟機按鍵11是否被按下,當檢測到光碟機按鍵11被按下時,觸發所述判斷模組202執行步驟S3,否則,重複步驟S2。其中,所述檢測模組201可以通過輪詢或中斷觸發兩種方式來檢測所述光碟機按鍵11是否被按下。 In step S2, the detecting module 201 detects whether the disc player button 11 is pressed. When it is detected that the disc player button 11 is pressed, the determining module 202 is triggered to perform step S3. Otherwise, step S2 is repeated. The detection module 201 can detect whether the CD player button 11 is pressed by two methods, polling or interrupt triggering.
所謂輪詢是指該檢測模組201每隔一定時間(如50ms)讀取一次所述輸入輸出晶片10中對應的光碟機按鍵11的輸出埠的位準信號,根據該位準信號來判定該光碟機按鍵11是否被按下,如讀取的位準信號為1則可判定光碟機按鍵11已經被按下。該輪詢的方式是通過所述處理器12控制該檢測模組201主動詢問的方式實現,需要該處理器12一直處於運行狀態。 The polling means that the detecting module 201 reads the level signal of the output port of the corresponding disk player button 11 in the input/output chip 10 at regular intervals (for example, 50 ms), and determines the level signal according to the level signal. Whether or not the disc player button 11 is pressed, if the read level signal is 1, it can be determined that the disc player button 11 has been pressed. The manner of the polling is implemented by the processor 12 controlling the detection module 201 to actively query, and the processor 12 is required to be in an operating state.
所謂中斷觸發的方式是指當所述輸入輸出晶片10產生中斷信號時,觸發所述檢測模組201去讀取該中斷信號,該檢測模組201通過判斷該中斷信號的信號源是否來自所述光碟機按鍵11來判定該光碟機按鍵11是否被按下。中斷觸發的方式只需要當所述輸入輸出晶片10產生中斷信號時,所述處理器12才控制該檢測模組201去處理該中斷信號,該處理器12不需要一直處於運行的狀態。 The method of interrupt triggering refers to triggering the detecting module 201 to read the interrupt signal when the input/output chip 10 generates an interrupt signal, and the detecting module 201 determines whether the signal source of the interrupt signal is from the The disc player button 11 determines whether or not the disc player button 11 has been pressed. The interrupt triggering mode only needs to control the detecting module 201 to process the interrupt signal when the input/output chip 10 generates an interrupt signal, and the processor 12 does not need to be in an operating state all the time.
步驟S3,所述判斷模組202判斷所述光碟機13中是否存在光碟,如果存在光碟,則觸發所述控制模組203執行步驟S4,否則,返 回步驟S2。具體而言,該判斷模組202通過發送命令給所述光碟機13,如發送ATAPI(AT Attachment Packet Interface:AT嵌入式介面/AT附加分組介面)命令,然後讀取該光碟機13的控制暫存器中所表述的數值,依據該控制暫存器中所表述的數值來判斷該光碟機13內是否有光碟存在。如當讀取的該控制暫存器中的數值為00A1則可判定有光碟存在,當讀取的該控制暫存器中的數值為00A0則表示無光碟存在。 In step S3, the determining module 202 determines whether there is a disc in the optical disk drive 13. If the optical disc exists, the control module 203 is triggered to perform step S4, otherwise, Go back to step S2. Specifically, the determining module 202 sends a command to the optical disk drive 13 to transmit an ATAPI (AT Attachment Packet Interface: AT Attachment Packet Interface) command, and then reads the control of the optical disk drive 13 The value expressed in the memory determines whether or not a disc exists in the optical disk drive 13 based on the value expressed in the control register. If the value in the control register is 00A1, it can be determined that a disc exists. When the value in the read register is 00A0, it means that no disc exists.
步驟S4,所述控制模組203發出控制信號至所述光碟機13,控制該光碟機13彈出光碟。 In step S4, the control module 203 sends a control signal to the optical disk drive 13 to control the optical disk drive 13 to eject the optical disk.
最後應說明的是,以上實施方式僅用以說明本發明的技術方案而非限制,儘管參照較佳實施方式對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。 It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and the present invention is not limited thereto. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that Modifications or equivalents are made without departing from the spirit and scope of the invention.
1‧‧‧電腦 1‧‧‧ computer
10‧‧‧輸入輸出晶片 10‧‧‧Input and output wafer
11‧‧‧光碟機按鍵 11‧‧‧Disc button
12‧‧‧處理器 12‧‧‧ Processor
13‧‧‧光碟機 13‧‧‧CD player
14‧‧‧記憶體 14‧‧‧ memory
20‧‧‧光碟機按鍵控制系統 20‧‧‧Disc button control system
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW099110650A TWI447711B (en) | 2010-04-06 | 2010-04-06 | System and method for controlling a button of a cd-rom |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW099110650A TWI447711B (en) | 2010-04-06 | 2010-04-06 | System and method for controlling a button of a cd-rom |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201135720A TW201135720A (en) | 2011-10-16 |
TWI447711B true TWI447711B (en) | 2014-08-01 |
Family
ID=46752017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW099110650A TWI447711B (en) | 2010-04-06 | 2010-04-06 | System and method for controlling a button of a cd-rom |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI447711B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5831613A (en) * | 1997-01-06 | 1998-11-03 | Apple Computer, Inc. | Removable storage media stop/eject system for personal computers |
TW589628B (en) * | 2002-02-27 | 2004-06-01 | Behavior Tech Computer Corp | Method to execute direct-writing of data by read/write-able optical disk driver |
US20080288801A1 (en) * | 2004-01-09 | 2008-11-20 | Matsushita Electric Industrial Co., Ltd. | Information Processing Apparatus and Power Supply Control Method for Information Processing Apparatus |
-
2010
- 2010-04-06 TW TW099110650A patent/TWI447711B/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5831613A (en) * | 1997-01-06 | 1998-11-03 | Apple Computer, Inc. | Removable storage media stop/eject system for personal computers |
TW589628B (en) * | 2002-02-27 | 2004-06-01 | Behavior Tech Computer Corp | Method to execute direct-writing of data by read/write-able optical disk driver |
US20080288801A1 (en) * | 2004-01-09 | 2008-11-20 | Matsushita Electric Industrial Co., Ltd. | Information Processing Apparatus and Power Supply Control Method for Information Processing Apparatus |
Also Published As
Publication number | Publication date |
---|---|
TW201135720A (en) | 2011-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10515040B2 (en) | Data bus host and controller switch | |
US6725318B1 (en) | Automated selection between a USB and PS/2 interface for connecting a keyboard to a computer | |
TWI528165B (en) | System for power management | |
US7509444B2 (en) | Data access device for working with a computer of power off status | |
EP1085399B1 (en) | Software-based temperature controller circuit in an electronic apparatus | |
TWI516940B (en) | System method, and computer program product for managing a thermal policy of a receiving device that couples to a portable computing device | |
US8166224B2 (en) | Apparatus and method for docking of mobile device supporting docking station | |
US8516510B2 (en) | Information processing apparatus and drive control method | |
WO2017112094A1 (en) | Power management system | |
JP4764454B2 (en) | Pen input type information processing apparatus, warning method thereof, and computer-executable program | |
TWI447711B (en) | System and method for controlling a button of a cd-rom | |
TWI286763B (en) | Dual-interface SD flash memory card | |
US20150026367A1 (en) | Computer device and identification device therein | |
JP4387493B2 (en) | Computer system and method for controlling the same | |
TW200534083A (en) | Method for monitoring power state of computer system | |
US20030084354A1 (en) | Method and apparatus for configuration control and power management through special signaling | |
JP2011210355A (en) | Eject button control system and control method of the same | |
TWI740320B (en) | Low voltage control system, low voltage protection method for an electronic device and a computer program product thereof | |
TWI784165B (en) | Usb host-to-usb host chip | |
US10429988B2 (en) | Touch screen support by emulating a legacy device | |
US6438701B1 (en) | Method and apparatus for externally generating system control interrupts as resume events from power-on suspend mode | |
US9164571B2 (en) | Electronic apparatus and power saving control method | |
CN203350872U (en) | Computer processing module | |
TWI402677B (en) | Interface system and operating method thereof | |
WO2011105843A2 (en) | External storage apparatus and method for controlling same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |