KR920001435B1 - Hook-off detecting circuit - Google Patents
Hook-off detecting circuit Download PDFInfo
- Publication number
- KR920001435B1 KR920001435B1 KR1019890002484A KR890002484A KR920001435B1 KR 920001435 B1 KR920001435 B1 KR 920001435B1 KR 1019890002484 A KR1019890002484 A KR 1019890002484A KR 890002484 A KR890002484 A KR 890002484A KR 920001435 B1 KR920001435 B1 KR 920001435B1
- Authority
- KR
- South Korea
- Prior art keywords
- hook
- state
- cpu
- contact state
- switch
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/04—Supports for telephone transmitters or receivers
- H04M1/06—Hooks; Cradles
- H04M1/10—Hooks; Cradles associated with switches operated by magnetic effect due to proximity of receiver or hand-set
Abstract
Description
제1도는 기계식 접점 스위치를 사용한 훅크 온-오프 검출회로의 회로도.1 is a circuit diagram of a hook on-off detection circuit using a mechanical contact switch.
제2도는 제1도에 대한 동작 파형도.2 is an operational waveform diagram for FIG.
제3도는 마그네틱 스위치를 사용한 훅크 온-오프 검출회로의 회로도.3 is a circuit diagram of a hook on-off detection circuit using a magnetic switch.
제4도는 본 발명에 따른 흐름도.4 is a flow chart according to the present invention.
본 발명은 전화기에 있어서 훅크 온-오프상태를 검출하는 방법에 관한 것이다.The present invention relates to a method for detecting a hook on-off state in a telephone.
일반적으로 전화기는 교환시스템과 접속하여 가입자간의 음성통화를 제공하는 통신용 단말기의 일종으로 아나로그 신호에 의한 음성통화만을 제공하는 아나로그 방식 전화기와, 디지탈 신호에 의해 음성통화를 비롯하여 각종 정보 써비스를 함께 제공할 수 있는 디지탈 방식 전화기가 있다.In general, a telephone is a type of communication terminal that provides a voice call between subscribers by connecting to an exchange system. The telephone is an analog type telephone that provides only a voice call by an analog signal, and a voice call and various information services by a digital signal. There is a digital phone that can provide.
상기 디지탈 방식 전화기는 기존의 아나로그 방식 전화기와 달리 훅크 온-오프(Hook ON-OFF) 상태에 무관하게 전송선로를 항상 폐회로 형태를 유지하여 수시로 디지탈 신호로 교환시스템과 송수신하여야 하는 이유로 훅크 스위치의 온-오프 상태를 검출하여 교환시스템에 훅크 온-오프상태에 대한 디지탈 메시지를 전송한다.Unlike conventional analog telephones, the digital telephones maintain the transmission line always in a closed circuit regardless of the hook on-off state, so that the digital telephone should be frequently transmitted and received with the switching system. Detect on-off status and send digital message about hook on-off status to exchange system.
상기 디지탈 방식 전화기에 있어서 종래의 훅크 온-오프 검출회로는 제1도에 도시한 바와 같이 전화기의 주변회로를 제어 처리하기 위한 CPU(Central Processing Unit)(10)와, 상기 CPU(10)의 작동 프로그램을 저장하고 있는 롬(ROM)(11)과, 상기 CPU(10)에서 처리된 정보를 일시 저장하기 위한 램(RAM)(12)과, 핸드셋(도시하지 않았음)의 착탈상태를 상기 CPU(10)에 알려주기 위한 훅크 스위치로서의 기계식 접점 스위치(SW)와, 상기 기계식 접점 스위치(SW)의 출력을 전원전압(Vcc)으로 풀업(Pull up)하기 위한 저항(R1)으로 구성된다.In the digital telephone, the conventional hook on-off detection circuit includes a CPU (Central Processing Unit) 10 for controlling the peripheral circuit of the telephone as shown in FIG. 1, and the operation of the
상기 제1도의 훅크 온-오프 검출회로는 훅크 스위치로서 사용되는 기계식 접점 스위치(SW)를 접속하여 CPU(10)에 핸드셋의 착탈 상태에 따라 기계식 접점 스위치(SW)의 온-오프 스위칭에 의해 변화되는 라인(1)상의 논리상태를 CPU(10)로 하여금 검사하게 하여 훅크 온-오프 상태를 검출하였다.The hook on-off detection circuit of FIG. 1 is connected to a mechanical contact switch (SW) used as a hook switch and is changed by on-off switching of the mechanical contact switch (SW) in accordance with the detachment state of the handset to the
제1도의 구성중 기계식 접점스위치(SW)는 핸드셋의 착탈시 제2도에서 보는 바와 같이 일정시간동안 논리상태가 불안정한 바운싱(Bouncing) 기간(T)이 있어 CPU(10)가 훅크 온-오프 상태를 잘못 인식할 수 있는 문제점이 있었다.In the configuration of FIG. 1, the mechanical contact switch SW has a bouncing period T in which the logic state is unstable for a predetermined time as shown in FIG. 2 when the handset is attached or detached, so that the
이에 따라 상기한 바와 같은 바운싱 기간을 감소시키기 위하여 제3도에 도시하 바와 같이 CPU(10)와, 롬(11)과, 램(12)과, 마그네틱(Magnetic) 스위치(MSW)와, 영구자석(13)과, 폴업저항(R1)으로 구성되는 훅크 온-오프 검출 회로가 사용되어 왔다.As a result, the
상기 제3도의 구성회로는 전술한 제1도의 구성회로중 기계식 접점 스위치(SW)를 마그네틱 스위치(MSW)로 대치하고 핸드셋에 영구자석(13)을 설치하여 구성한 것이며 CPU(10)와 롬(11)과 램(12)과 풀업저항(r1)은 서로 동일하며 참조부호도 동일하다.The configuration circuit of FIG. 3 is configured by replacing the mechanical contact switch SW of the configuration circuit of FIG. 1 with the magnetic switch MSW and installing a
상기 제3도의 구성중 CPU(10)는 롬(11)에 저장되어진 프로그램에 의해 주변회로를 제어하고 송수신되는 데이터를 처리하며 라인(1)상의 논리상태를 검사하여 훅크 온-오프상태를 체크한다. 그리고 램(12)는 상기 CPU(10)에서 처리된 데이터를 일시 저장한다. 또한 영구자석(13)은 핸드셋의 착탈상태에 따라 상하로 운동하여 훅크 스위치로서 사용되는 마그네틱 스위치(MSW)을 온시키거나 오프시킨다. 그러면 마그네틱 스위치(MSW)는 상기 영구자석(13)의 자기력에 의해 장착시 온되어 라인(1)상에 로우논리상태를 유지시키고 반면에 장찰시 오프되어 라인(1)상에 하이논리상태를 유지시킨다.In the configuration of FIG. 3, the
상기한 바와 같이 상기 제3도의 훅크 온-오프 검출회로에서 상기 마그네틱 스위치(MSW)는 자화력에 의해 작동함으로 스위칭시 전술한 제1도의 기계식 접점스위치(SW)보다 바운싱 기간(T)이 짧게 되어 CPU(10)로 하여금 훅크 온-오프 상태를 보다 정확하게 검출하게 한다.As described above, in the hook on-off detection circuit of FIG. 3, the magnetic switch MSW is operated by a magnetizing force, so that the bounce period T is shorter than that of the mechanical contact switch SW of FIG. Allow
그러나 상기 마그네틱 스위치(MSW)의 스위칭시 여전히 바운싱 기간(T)이 존재하게 되므로 CPU(10)가 훅크 온-오프 상태를 잘못 인식할 수 있는 문제점이 있었다.However, since the bouncing period T still exists when the magnetic switch MSW is switched, the
따라서 본 발명의 목적은 전화기에 있어서 훅크 스위치의 바운싱에 영향을 받지 않고 훅크 온-오프 상태를 정확하게 검출할 수 있는 훅크 온-오프 검출방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a hook on-off detection method capable of accurately detecting a hook on-off state without being affected by bouncing of a hook switch in a telephone.
이하 본 발명을 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
본 발명을 수행하기 위한 회로는 전술한 제1도의 회로도 또는 제3도의 회로도와 같으며 참조부호도 동일하다.The circuit for carrying out the invention is the same as the circuit diagram of FIG. 1 or FIG. 3 described above, and the same reference numerals.
제4도는 본 발명에 따른 흐름도로서, 일정주기마다 훅크 스위치의 현재 접촉 상태와 이전의 접촉 상태를 검사하여 바운싱 접촉상태를 검출하는 바운싱 검출상태 검출과정(30-31,37)과, 상기 바운싱 접촉상태를 검출과정(30-31,37)에서 검출된 바운싱 접촉상태가 일정할 경우 상기 바운싱 접촉상태 검출 횟수를 설정된 일정수까지 카운트하여 일정시간동안 계속 유지되는 상태에 의해 훅크 스위치의 온-오프 상태를 결정하는 훅크상태 결정과정(32-36,38-42)으로 이루어진다.4 is a flow chart according to the present invention, which detects the bounce contact state by checking the current contact state and the previous contact state of the hook switch at regular intervals, and the bouncing contact state. When the bounce contact state detected in the detection process (30-31, 37) is constant, the hook-on state of the hook switch is counted by counting the number of bounce contact state detections up to a predetermined number and being maintained for a predetermined time. The hook state determination process (32-36, 38-42) is determined.
이하 본 발명에 따른 제3도의 동작예를 첨부한 제1도 내지 제3도를 참조하여 상세히 설명한다.Hereinafter, an operation example of FIG. 3 according to the present invention will be described in detail with reference to FIGS. 1 to 3.
우선 본 발명에 따른 제3도의 흐름도에 의한 전화기에 훅크 온-오프 검출 수행은 제1도의 기계식 접점 스위치를 사용한 훅크 온-오프 검출회로 또는 제3도의 마그네틱 스위치를 사용한 훅크 온-오프 검출회로에 공히 적용할 수 있는데, 제3도의 구성 회로에 적용할 경우에 예를들어 설명한다.First, the hook on-off detection performed on the telephone according to the flowchart of FIG. 3 according to the present invention is performed in the hook on-off detection circuit using the mechanical contact switch of FIG. 1 or the hook on-off detection circuit using the magnetic switch of FIG. Although it can apply, it demonstrates, for example, when applying to the structural circuit of FIG.
제3도의 CPU(10)는 일정주기로 인터럽트가 발생할 때마다 제4도의 프로그램을 수행하는데 인터럽트가 발생하면 (30)단계에서 라인(1)상의 논리상태를 검사하여 훅크 스위치로서 사용되는 마그네틱 스위치(MSW)가 온 되었는가 판단한다.The
상기 (30)단계에서 라인(1)상의 논리상태가 로우논리상태인 마그네틱 스위치(MSW)가 온일 경우 CPU(10)는 (31)단계에서 자체내의 레지스터에 할당되어진 훅크상태 플래그가 “1”로 세트되어 있는가 검사하여 이전상태가 훅크 온상태였는가 검사한다.If the magnetic switch (MSW) whose logic state on the line (1) is a low logic state in step (30) is on, the
상기 (31)상태에서 훅크상태 플래그가 “1”이 아닌 훅크 오프상태로 판단되면 CPU(10)는 (32)단계에서 자체내에 내장된 카운터의 카운트값이 일정수인가 검사한다.In the state (31), if the hook state flag is determined to be the hook off state other than "1", the
여기서 상기 일정수는 마그네틱 스위치(MSW)의 온상태가 일정시간 이상 계속유지될 경우에만 훅크 오프상태로 검출하기 위하여 미리 설정되는 값으로서 예를들어 15로 설정하는 것으로 설명한다.Here, the predetermined number is set to, for example, 15 as a preset value for detecting the hook-off state only when the on state of the magnetic switch MSW is maintained for a predetermined time or more.
상기 32단계에서 카운트값이 일정수(예:15)일시 CPU(10)는 (33)단계에서 상기 카운터값을 “0”으로 초기화한 다음 (34)단계로 진행하여 상기 훅크상태 플래그를 “1”로 세트한다.When the count value is a predetermined number (eg, 15) in
상기 (34)단계 수행후 CPU(10)는 (35)단계에서 훅크 온상태에 대한 메시지를 주변회로와 전송선로를 통해 교환시스템으로 전송한 다음 메인 프로그램으로 되돌아간다.After performing step (34), the
상기 훅크 온 메시지를 전송하는 주변회로는 디지탈식 전화기의 일반구성으로 공지의 사실이기 때문에 도면에 도시하지 않았다. 그리고 상기 (32)단계에서 카운터의 카운터값이 일정수(예:15)가 아닐시 CPU(10)는 (36)단계에서 상기 카운트값에 “1”을 가산 카운트한 다음 메인 프로그램으로 되돌아간다.The peripheral circuit for transmitting the hook-on message is not shown in the drawings because it is a known fact in the general configuration of a digital telephone. When the counter value of the counter is not a predetermined number (eg, 15) in step (32), the
한편 상기 (30)단계에서 라인(1)상의 논리상태가 하이논리상태인 마그네틱 스위치(MSW)가 오프인 경우 CPU(10)는 (37)단계에서 자체내에 내장된 훅크상태 플래그가 “0”으로 리세트되어 있는가를 검사하여 이전 상태가 훅크 오프상태였는가를 판단한다.On the other hand, when the magnetic switch (MSW) whose logic state on the line (1) is a high logic state in step (30) is off, the
상기 (37)단계에서 훅크상태 플래그가 “0”인 훅크 오프상태가 아닐 경우 CPU(10)는 (38)단계에서 자체내에 내장된 카운터의 카운트값이 일정수인가 검사한다. 여기서 상기 일정수는 마그네틱 스위치(MSW)의 오프상태가 일정시간 이상 계속 유지될 경우에만 훅크 온상태로 검출하기 위하여 미리 설정되는 값으로서 예를들어 15로 설정하는 것으로 설명한다.If the hook state flag is not "0" in the hook off state in step (37), the
상기 (38)단계에서 카운터의 카운트값이 일정수(예:15)가 아닐 경우 CPU(10)는 (39)단계에서 상기 카운터의 카운트값에 “1”을 가산 카운트한 다음 메인 프로그램으로 되돌아간다.If the count value of the counter is not a predetermined number (for example, 15) in step (38), the
상기 (38)단계에서 카운터의 카운트값이 일정수(예:15)일 경우 CPU(10)는 (40)단계에서 상기 카운터의 카운트값을 “0”으로 초기화한 다음 (41)단계로 진행하여 상기 훅크상태 플래그를 “0”으로 리세트하여 훅크 오프상태임을 표시한다.If the count value of the counter is a predetermined number (eg, 15) in step (38), the
상기 (41)단계 수행후 CPU(10)는 (42)단계에서 훅크 오프상태에 대한 메세지를 주변회로와 전송선로를 통해 교환시스템으로 전송한 다음 메인 프로그램으로 되돌아간다.After performing step (41), the
그리고 (31)단계에서 훅크상태 플래그가 “1”로서 전상태가 훅크 온일경우나 상기 (37)단계에서 훅크 상태 플러그가 “0”으로서 전상태가 훅크 오프인 경우 CPU(10)는 메인 프로그램으로 되돌아간다. 그리고 상기 흐름도중 (30)단계와 (31),(37)단계들은 제2도중 바운싱기간(T)내의 21과 같은 부분들이나 20과 같은 부분들을 검출하기 위한 것이다.If the hook state flag is "1" in step (31) and the whole state is hook on, or in step (37), if the hook state plug is "0" and all state is hook off, the
그리고 (32)단계에서부터 (36)단계까지의 단계들로 이루어지는 부분과 (38)단계에서부터 (41)단계까지의 단계들로 이루어지는 부분은 바운싱 접촉횟수를 카운트하여 훅크 온상태와 훅크 오프상태를 결정하기 위한 것이다. 그리고 인터럽트 주기는 대략 2ms 정도이고 상기 제2도중의 바운싱기간(T)은 대략 30ms 정도로서 바운싱 접촉수 즉 CPU(10)의 카운트값의 한계인 일정수는 바운싱기간(T)을 인터럽트 주기로 나눈값인 15로 설정하는 것이다.The part consisting of the steps from (32) to (36) and the part consisting of the steps from (38) to (41) determine the hook on state and the hook off state by counting the bounce contact times. It is to. The interrupt period is about 2 ms and the bounce period T in the second diagram is about 30 ms, and a certain number, which is the limit of the number of bounce contacts, that is, the count value of the
한편 상기한 바와 같이 제3도의 마그네틱 스위치를 사용한 훅크 온-오프 검출회로에 본 발명을 적용할 경우의 예를들어 설명하였으나 핸드셋의 착탈에 따른 스위칭은 제1도의 기계식 접점 스위치를 사용한 훅크 온-오프 검출회로에서도 동일하므로 본 발명을 동일하게 적용할 수 있음을 알 수 있을 것이다.On the other hand, as described above, an example in which the present invention is applied to the hook on-off detection circuit using the magnetic switch of FIG. 3 has been described. However, switching according to detachment of the handset is performed by hook on-off using the mechanical contact switch of FIG. It will be appreciated that the same can be applied to the present invention because it is the same in the detection circuit.
상술한 바와 같이 본 발명은 훅크스위치의 디바운싱 접촉상태의 수를 카운트하여 일정시간 동안 계속 유지되는 상태에 의해 훅크 온-오프상태를 확정함으로써 정확한 훅크 온-오프상태를 검출할 수 있는 이점이 있다.As described above, the present invention has the advantage of detecting the correct hook on-off state by counting the number of debounced contact states of the hook switch and determining the hook on-off state by the state maintained for a predetermined time. .
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019890002484A KR920001435B1 (en) | 1989-02-28 | 1989-02-28 | Hook-off detecting circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019890002484A KR920001435B1 (en) | 1989-02-28 | 1989-02-28 | Hook-off detecting circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
KR900013746A KR900013746A (en) | 1990-09-06 |
KR920001435B1 true KR920001435B1 (en) | 1992-02-13 |
Family
ID=19284171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019890002484A KR920001435B1 (en) | 1989-02-28 | 1989-02-28 | Hook-off detecting circuit |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR920001435B1 (en) |
-
1989
- 1989-02-28 KR KR1019890002484A patent/KR920001435B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR900013746A (en) | 1990-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5767778A (en) | Event sensing circuit and alert generator | |
EP0689330B1 (en) | Telephone apparatus for caller ID information | |
US3876836A (en) | Remote control system utilizing telephone rings as orders | |
US7089041B2 (en) | Method for managing incoming calls on a mobile phone | |
KR920001435B1 (en) | Hook-off detecting circuit | |
US5987119A (en) | Apparatus for automatically recovering speech path of telephone terminal and method therefor | |
KR100310242B1 (en) | Method for automatically detecting telephone dial pulse of wll cellular phone | |
AU607588B2 (en) | Battery powered radio devices having a battery saving function | |
US5798707A (en) | Pager operated control unit | |
JPH0432580B2 (en) | ||
JPH0218619Y2 (en) | ||
KR940009778B1 (en) | Ring-responding method of an auto-response device | |
JPS6167395A (en) | Telephone set | |
KR100255615B1 (en) | Method for controling a level of receiving call volume and a answering operation in telephone having function auto answering | |
KR0149418B1 (en) | Busy time displaying method for a cellular phone | |
KR970011414B1 (en) | Ring level control | |
WO2005013584A2 (en) | Crescendo telephone ringer | |
JPH07327065A (en) | Off-hook detector | |
JPH0255450A (en) | Pb signal transmission method for telephone system | |
GB2350743A (en) | Signal detecting circuit | |
KR950019746A (en) | Multi-meter connection device of subscriber matching device and pulse counting method thereof | |
JPH0369298A (en) | Key telephone system | |
JPH05219193A (en) | Ringer detecting circuit | |
JPS58197948A (en) | State detection circuit for master-subordinate telephone | |
JPS6315191A (en) | Time correction system of exchange built-in clock |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
G160 | Decision to publish patent application | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20080108 Year of fee payment: 17 |
|
EXPY | Expiration of term |