KR950000530B1 - Ring detection method utilizing a microprocessor - Google Patents

Ring detection method utilizing a microprocessor Download PDF

Info

Publication number
KR950000530B1
KR950000530B1 KR1019920013380A KR920013380A KR950000530B1 KR 950000530 B1 KR950000530 B1 KR 950000530B1 KR 1019920013380 A KR1019920013380 A KR 1019920013380A KR 920013380 A KR920013380 A KR 920013380A KR 950000530 B1 KR950000530 B1 KR 950000530B1
Authority
KR
South Korea
Prior art keywords
ring
signal
detection
value
input
Prior art date
Application number
KR1019920013380A
Other languages
Korean (ko)
Other versions
KR940003262A (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 KR1019920013380A priority Critical patent/KR950000530B1/en
Publication of KR940003262A publication Critical patent/KR940003262A/en
Application granted granted Critical
Publication of KR950000530B1 publication Critical patent/KR950000530B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

In the telephone terminal using microprocessor, the ring signal detecting method from PSTN not using ring detecting IC employs an RF module (12) that sends and receives RF signal, a modem (14), a memory (EEPROM) (16) that saves ID code, a CPU (18) that controls peripheral units and processes the program, a communication circuit (20) that receives and sends the voice signal, and a wave shaper (24).

Description

마이크로 프로세서를 이용한 링 검출 방법Ring Detection Method Using Microprocessor

제 1 도는 종래 무선전화기의 하드웨어 블럭도,1 is a hardware block diagram of a conventional wireless telephone,

제 2 도는 본 발명에 따른 무선전화기의 회로도,2 is a circuit diagram of a radiotelephone according to the present invention;

제 3 도는 제 2 도의 동작을 설명하기 위한 링신호의 파형 정형도,3 is a waveform normalization diagram of a ring signal for explaining the operation of FIG.

제 4 도는 본 발명에 따른 링 인터럽트 흐름도,4 is a ring interrupt flowchart according to the present invention;

제 5 도는 본 발명에 따른 타이머 제어 흐름도,5 is a timer control flowchart according to the present invention;

제 6 도는 본 발명에 따른 링 검사 제어 흐름도.6 is a ring check control flow chart according to the present invention.

본 발명은 전화망으로 부터의 링신호를 검출하는 방법에 관한 것으로, 특히 전화망에 연결된 장치(이하 ; 고정장치)와 사용자가 휴대하면서 전화를 걸거나 받는 장치(이하 ; 휴대장치)로 구성된 시스템에 있어서 전화망으로 부터 전달된 링(Ring)신호를 기타의 다른 신호와 구별하여 효과적으로 검출하는 링 검출 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for detecting a ring signal from a telephone network, and more particularly, to a system comprising a device connected to a telephone network (hereinafter referred to as a fixed device) and a device for making or receiving a call while the user carries it. The present invention relates to a ring detection method for effectively detecting a ring signal transmitted from a telephone network by distinguishing it from other signals.

통상적으로 대다수의 유무선 단말, 특히 전화망(PSTN)의 전화라인에 접속된 전화단말등은 전화망으로 부터의 링(Ring)신호에 응답하여 통화가 이루어 지도록 되어 있다. 상기와 같은 동작을 위하여 모든 유선 전화 단말장치는 전화망으로 부터의 링신호를 검출하는 회로를 구비하고 있다.Typically, the majority of wired and wireless terminals, especially telephone terminals connected to the telephone line of the telephone network (PSTN) are to be made in response to the ring signal from the telephone network. For the above operation, all wired telephone terminals are provided with a circuit for detecting a ring signal from the telephone network.

종래 무선전화기의 고정장치는 전화망에 접속되어 상기 전화망으로 부터의 링을 검출하고, 상기 링을 검출시 휴대장치와의 통화채널을 형성하도록 되어 있으며, 이의 구성을 살피면 하기 제 1 도와 같다.The conventional radiotelephone fixing device is connected to a telephone network to detect a ring from the telephone network, and when the ring is detected, establishes a call channel with a portable device.

제 1 도는 종래 무선전화기의 고정장치의 블럭도로서, 상기 고정장치는 신호(음성 및 데이타)를 수신하는 송수신 장치를 포함하고 있는 RF모듈(12)과, 아날로그 신호입력을 디지탈 신호로 변환하고 디지탈 신호를 아날로그 신호로 변환하는 모뎀 및 로직회로(이하"모뎀"이라함)(14)과, 고정장치의 고유번호(ID CODE)를 저장하고 있는 메모리(EEPROM)(16)와, 사용자에게 여러상태를 알려줄 수 있는 스피커(23)와, 내장된 프로그램에 의하여 상기의 주변장치를 제어하고 처리과정을 수행하는 중앙처리장치(18), 전화망(PSTN)과 음성 신호를 송, 수신하는 통화회로(SPEECH IC)(20)와, 상기 전화망(PSTN)으로 부터의 링(RING)을 검출하는 링검출부(22)로 구성되어 있다.1 is a block diagram of a fixing device of a conventional radiotelephone, wherein the fixing device converts an analog signal input into a digital signal and converts an analog signal input into a digital signal including an RF module 12 including a transmitting and receiving device for receiving signals (voice and data). Modem and logic circuits (hereinafter referred to as "modems") 14 for converting signals into analog signals, memory (EEPROM) 16 that stores ID numbers of fixed devices, and various states to users. A speaker 23 capable of informing the user, and a central processing unit 18 for controlling the peripheral device by a built-in program and performing a processing process, and a call circuit for transmitting and receiving a voice signal with a telephone network (PSTN). IC) 20 and a ring detector 22 for detecting a ring from the telephone network PSTN.

상기 제 1 도의 구성중 링검출부(22)는 외부로 부터의 신호를 입력하여 링신호를 검출하는 링 검출 전용 집적회로이다.The ring detection unit 22 in the configuration of FIG. 1 is a ring detection dedicated circuit for detecting a ring signal by inputting a signal from the outside.

지금 제 1 도의 회로에 공중망으로 부터 링이 전달되면, 이는 링검출부(22)에 입력된다. 이때 상기 링검출부(22)는 상기 입력되는 링 신호를 감지하여 링신호로 판명되면 링 검출단자(Ring Detect Pin)을 세트(set)하여 링이 검출되었음을 나타내는 신호를 CPU(18)에 입력시킨다. 이때 상기 CPU(18)는 상기 검출신호를 소정주기로 체크(check)하여 링신호가 있음을 알게된다.If a ring is now transmitted from the public network to the circuit of FIG. 1, it is input to the ring detector 22. At this time, the ring detector 22 detects the input ring signal and sets a ring detection pin to set the ring detection terminal to input the signal indicating that the ring is detected to the CPU 18. At this time, the CPU 18 checks the detection signal at predetermined intervals and knows that there is a ring signal.

따라서 상기 제 1 도와 같은 종래의 회로는 링검출 전용 집적회로로서 링을 검출함을 알 수 있다.Therefore, it can be seen that a conventional circuit such as the first diagram detects a ring as a ring detection dedicated integrated circuit.

그러나 상기와 같이 링검출 전용 집적회로를 사용하는 회로는 하기와 같은 문제가 있었다.However, the circuit using the ring detection dedicated integrated circuit as described above has the following problems.

예를들면, 일정크기 이상의 잡음신호가 전화선에 인가되어 상기 링검출부(22)로 입력되면 상기 링검출부(22)가 상기 신호를 링신호로 오검출하여 링검출신호를 출력하는 상태가 발생된다.For example, when a noise signal of a predetermined magnitude or more is applied to the telephone line and input to the ring detector 22, the ring detector 22 misdetects the signal as a ring signal and generates a ring detection signal.

중앙처리장치(18)는 상기 링검출 신호를 링으로 인식하게 되는 경우가 발생하여 외부에서 여러가지 H/S(High-Speed)소자로서 이를 방지하여야 하며, 이 또한 실제의 전화선로가 노후하거나 하는 사정에 의하여 펄스(pulse) 형태의 노이즈(noise)신호가 신호선에 인가되면 링을 효율적으로 검출할 수 없는 단점을 가지게 된다.The central processing unit 18 recognizes the ring detection signal as a ring, and prevents it as various high-speed (H / S) elements from the outside, which also causes the telephone line to age. When a noise signal in the form of a pulse is applied to the signal line, the ring cannot be detected efficiently.

따라서 본 발명의 목적은 마이크로 프로세서를 이용하는 전화단말에 있어서 링검출 집적회로를 사용하지 않고 전화망으로 부터의 링신호를 효율적으로 검출하는 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a method for efficiently detecting a ring signal from a telephone network without using a ring detection integrated circuit in a telephone terminal using a microprocessor.

본 발명의 다른 목적은 전화망으로 부터 입력되는 신호의 특정 레벨의 듀레이션(Duration)를 검사하여 링신호를 검출하는 방법을 제공함에 있다.Another object of the present invention is to provide a method for detecting a ring signal by checking a duration of a specific level of a signal input from a telephone network.

이하 본 발명을 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

제 2 도는 본 발명에 따른 무선전화기의 고정장치의 회로도로서, RF신호(음성 및 데이타)를 안테나를 통하여 송, 수신하는 RF모듈(12)과, 상기 RF모듈(12)과 연결되어 아나로그 신호입력을 디지탈 신호로 변환하고 디지탈 신호를 아나로그 신호로 변환하는 모뎀(14)과, 고정장치의 고유번호(ID COED)를 저장하고 있는 메모리(EEPROM)(16)와, 내장된 프로그램에 의해 상기의 주변장치를 제어하고 처리과정을 수행하는 중앙처리장치(이하 : CPU)(18)와, 전화망(PSTN)에 접속되어 음성신호를 송수신하는 통화회로(20)와, 상기 전화망(PSTN)과 접속되어 있으며, 소정레벨 이상의 신호를 파형 정형하여 상기 CPU(18)로 출력하는 파형정형부(24)로 구성되어 있다.2 is a circuit diagram of a fixing device for a radiotelephone according to the present invention, and an RF signal (12) for transmitting and receiving RF signals (voice and data) through an antenna and an analog signal connected to the RF module (12). The modem 14 converts the input into a digital signal and converts the digital signal into an analog signal, a memory (EEPROM) 16 storing a fixed number (ID COED) of a fixed device, and a built-in program. A central processing unit (hereinafter referred to as CPU) 18 for controlling peripheral devices and performing processing processes, a communication circuit 20 connected to a telephone network PSTN to transmit and receive voice signals, and a connection to the telephone network PSTN. And a waveform shaping unit 24 for waveform shaping a signal of a predetermined level or more and outputting the same to the CPU 18.

상기의 파형정형부(24)는 캐패시터(26), 저항(28,32,38)과, 발광 다이오드(34), 포토 트랜지스터(26)로 구성되어 있다.The waveform shaping section 24 is composed of a capacitor 26, resistors 28, 32, 38, a light emitting diode 34, and a photo transistor 26.

제 3 도는 제 2 도의 일부분의 동작 파형도로서, (3a)는 링신호의 파형도이고, (3b)는 레벨 제한된 링신호 파형이며, (3c)는 파형정형된 링신호의 파형도이다.3 is an operational waveform diagram of a portion of FIG. 2, where (3a) is a waveform diagram of a ring signal, (3b) is a level limited ring signal waveform, and (3c) is a waveform diagram of a waveform-shaped ring signal.

제 4 도는 본 발명에 따른 링인터럽트 흐름도로서, 이는 링신호의 입력에 의한 인터럽트에 응답하여 RFCF(Ring Freguency Check flag)를 체크함과 동시에 현재 입력 되는 링신호의 듀레이션을 검출하는 타이머를 구동하고, 상기 입력신호의 주파수를 계산하기 위한 TRC(Temp Ring Counter : 임시링 카운터)에 저장된 값을 RC(Ring Counter : 링 카운터)에 저장하고, 상기 TRC에 최소 주파수의 값을 저장하는 수순을 가지며, 이의 상세 흐름은 하기와 같은 수순을 가진다.4 is a ring interrupt flow chart according to the present invention, which drives a timer that checks a ring frequency check flag (RFCF) and detects a duration of a currently input ring signal in response to an interrupt by an input of a ring signal, Storing a value stored in a TRC (Temp Ring Counter) to calculate a frequency of the input signal in a ring counter (RC), and storing a value of a minimum frequency in the TRC, The detailed flow has the following procedure.

링신호의 입력에 의한 인터럽트에 의해 응답하여 현재 입력신호가 하강 에지(failing Edge)에 의한 신호인지를 검색하는 입력신호 상태 검색과정과, 상기 신호상태 검색과정에서 하강에지에 의한 신호라고 판단시 상승 에지 검출플래그를 리세트함과 동시에 TRC의 값을 RC에 로드하는 RC초기화 과정과, 상승 에지 검출요구 비트를 세트하고, 링을 검출하기 위한 최소의 주파수 값을 상기 TRC에 로드하는 TRC 초기화과정과, 상기 신호상태 검색과정에서 상승 에지에 의한 신호라고 판단시 상승 에지 검출 플래그를 세트함과 동시에 입력신호의 제 1 레벨(예 : 하이구간)구간 검출 타이머를 세트하고, 링 인터럽트를 디스에이블 하는 과정으로 이루어져 있다.An input signal state search process for searching whether the current input signal is a signal due to a falling edge in response to an interrupt caused by a ring signal input, and a signal rising when a signal is detected by a falling edge in the signal state search process. An RC initialization process for resetting an edge detection flag and loading TRC values into RC, a rising edge detection request bit, and a TRC initialization process for loading a minimum frequency value for detecting a ring into the TRC; And setting a rising edge detection flag and setting a first level (eg, high section) section detection timer of the input signal and disabling a ring interrupt when determining that the signal is a rising edge signal in the signal state search process. Consists of

제 5 도는 본 발명에 따른 타이머 제어 흐름도로서, 이는 소정주기로 동작되어 TRC에 로드된 최대 주파수 값을 감소(Decrease)시키고, 제 1 레벨 구간 검출 타이머가 타임아웃(종료)시 링인터럽트를 인에이블하는 수순을 감지며, 하기와 같다.5 is a flowchart of a timer control according to the present invention, which is operated at a predetermined period to decrease the maximum frequency value loaded in the TRC, and enables the ring interrupt when the first level interval detection timer times out. The procedure is sensed as follows.

소정의 주기로 TRC의 값을 "1"감소하고, 상승 에지 검출플래그가 세트되어 있을시 "하이"구간 검출 타이머가 종료되었는가를 검색하는 타이밍 검색과정과, 상기 타이머 검색과정에서 상기 타이머가 종료하였다고 판단시 링인터럽트를 인에이블하고, 링검출모드가 "하이"인가를 검색하는 링신호 검색과정과, 상기 링신호를 입력검색과정에서 링검출 포트가 "하이"시에 하이에지 검출요구 비트를 세트함과 동시에 상승 에지 검출플래그를 리세트하고, 상기 검출포트가 "로우"시 바로 상기 상승 에지 검출플래그를 리세트하는 과정으로 이루어져 있다.Decreases the value of TRC by a predetermined period by "1", and detects whether the "high" section detection timer has expired when the rising edge detection flag is set, and determines that the timer has ended in the timer search process. Enable ring interrupt at the time of detection, and set the high edge detection request bit at the time when the ring detection port is "high" during the ring signal input search process to search whether the ring detection mode is "high" And resetting the rising edge detection flag at the same time, and immediately resetting the rising edge detection flag when the detection port is "low".

제 6 도는 본 발명에 따른 링검사 흐름도로서, 이미 링이 검출되었는가를 검색하는 링검출상태 검색과정과, 상기 검색과정에서 이미 링이 검출되지 않았다고 판단시 RC에 저장된 값과 미리 설정된 최소 주파수 값과 비교하여 링주파수를 검색하는 링주파수 제 1 검색과정과, 상기 링 주파수 제 1 검색과정의 검색결과 상기 RC값이 미리 설정된 최소주파수 값보다 클때 호접속을 실행하는 호접속과정과, 상기 검색과정에서 이미 링이 검출되었다고 판단시 RC에 저장된 값과 미리 설정된 최소 주파수값과 비교하여 링주파수를 검색하는 링주파수 제 2 검색과정과, 상기 링 주파수 제 2 검색의 검색결과 상기 RC값이 미리 설정된 최소주파수값보다 작다고 판단시 링종료 카운터(Ring Ecd Counter)(REC)를 카운트하고, 상기 RC값이 상기 최소 주파수값 보다 크다고 판단시 상기 REC 종료되었는가를 검색하는 링입력상태 검색과정과, 상기 링입력 검색가정에서 REC가 미종료시라고 판단시 링음을 중지하고, REC가 종료시 호연결을 중지하는 과정으로 이루어져 있다.6 is a ring inspection flow chart according to the present invention, which includes a ring detection state searching process for searching whether a ring has already been detected, a value stored in RC and a preset minimum frequency value when it is determined that no ring is already detected in the search process. A ring frequency first search process for searching a ring frequency by comparison, a call connection process for executing a call connection when the RC value is greater than a predetermined minimum frequency value as a result of the search of the ring frequency first search process, and in the search process A second ring frequency search process for searching for a ring frequency by comparing a value stored in RC with a preset minimum frequency value when it is determined that a ring is already detected; and a minimum frequency in which the RC value is preset as a result of the search for the ring frequency second search Counting Ring Ecd Counter (REC) when determined to be less than the value and determining that the RC value is greater than the minimum frequency value And a ring input state searching process for searching whether the REC is terminated, and stopping a ring sound when the ring input search home determines that the REC is not finished, and stopping a call connection when the REC ends.

이하 본 발명의 동작 일예를 상세히 설명한다.Hereinafter, an example of the operation of the present invention will be described in detail.

지금 전화망(PSTN)으로 부터 제 3 도 3a와 같은 링 신호가 입력되면, 상기 링 신호는 캐패시터(26) 저항(28), 제너다이오드(30)에 의해 제 3 도 3b와 같이 된다. 따라서 발광다이오드(34)의 양단(A,B)간에는 제 3 도(3b)와 같은 신호가 나타나게 된다. 이때 상기 발광다이오드(34)는 제 3 도 3b의 "하이"구간(+주기)동안 발광됨으로써, 포토트랜지스터(36)의 출력점(E)에서의 파형은 제 3 도 3c와 같이 나타나게 된다. 상기 제 3 도 3c와 같은 신호는 CPU(18)의 인터럽트단자(INT)와 링검출포트(ROT)로 입력된다.When a ring signal as shown in FIG. 3A is input from the telephone network PSTN, the ring signal is made as shown in FIG. 3B by the capacitor 26 resistor 28 and the zener diode 30. Accordingly, a signal as shown in FIG. 3B appears between both ends A and B of the light emitting diode 34. At this time, the light emitting diode 34 emits light during the “high” period (+ period) of FIG. 3B, so that the waveform at the output point E of the phototransistor 36 is displayed as shown in FIG. 3C. The signal as shown in FIG. 3C is input to the interrupt terminal INT and the ring detection port ROT of the CPU 18.

이때 상기 CPU(18) 인터럽트가 발생되며, 상기 인터럽트 발생에 의해 상기 CPU(18)는 링검출 포트(ROF)의 신호입력을 검출하여 이 신호의 주파수를 검사하고, 상기 주파수가 링신호인지 여부를 하기와 같은 수순으로 판별하게 되는 것이다.At this time, the CPU 18 interrupt is generated, and by the interrupt generation, the CPU 18 detects the signal input of the ring detection port ROF and checks the frequency of the signal, and determines whether the frequency is a ring signal. It is determined by the following procedure.

먼저 CPU(18)는 인터럽트가 검출되면 지금 검출된 인터럽트가 하강 에지(Falling edge)인가 상승 에지인가를 검사하여(41과정) 하강 에지에서 검출된 인터럽트이면 상승 에지(rising edge)가 검출되었음을 표시하는 플래그를 리세트하고(42과정), 지금까지 계산된 TRC(temp-ring-counter)에 저장된 내용을 램에 설정된 링 카운터(RC)("ring counter")에 옮겨 저장한다(43과정).First, when the interrupt is detected, the CPU 18 checks whether the currently detected interrupt is a falling edge or a rising edge (step 41). If the interrupt is detected at the falling edge, the CPU 18 indicates that a rising edge has been detected. The flag is reset (step 42), and the contents stored in the TRC (temp-ring-counter) calculated so far are transferred to the ring counter RC ("ring counter") set in the RAM (step 43).

그리고, 상기 CPU(18)은 이후 상승 에지(rising edge) 검출요구 비트(request bit)를 세트하고(44과정), 링 신호의 최소 주파수에 해당하는 카운터의 값을 TRC(temp-ring-counter)의 영역에 저장한다(45과정). 이때 일정시간(상기 TRC에 저장된 값은 더 작으면 작을수록 더 큰 주파수 해상도를 갖게된다)마다 상기 TRC(temp-ring-counter)에 저장된 값은 감소되고 있게 된다.The CPU 18 then sets a rising edge detection request bit (step 44) and sets a counter value corresponding to the minimum frequency of the ring signal to a temp-ring-counter (TRC). Save to the area of (45). At this time, the value stored in the TRC (temp-ring-counter) decreases every predetermined time (the smaller the value stored in the TRC, the larger the frequency resolution is).

만일 상기 41과정에서 상승 에지가 검출된 상태라면 상기 CPU(18)는 상승 에지가 검출되었음을 표시하는 상승 에지 검출 플래그(Rising edge detection flag)을 리세트하고(46과정), 현재 입력되는 링신호의 하이(high)상태의 지속시간을 검사하기 위한(timer)를 세트하고(47과정), 링 인터럽트를 디스 에이블(disable)한다(48과정).If the rising edge is detected in step 41, the CPU 18 resets the rising edge detection flag indicating that the rising edge is detected (step 46), and then the A timer is set to check the duration of the high state (step 47) and the ring interrupt is disabled (step 48).

한편, 상기 제 4 도의 동작에 의해 TRC에 링을 검출하기 위한 최소의 값을 세트한 CPU(18)는 매 2Msec마다 제 5 도의 동작을 수행하여 TRC의 값을 조정하고, 링신호의 하이 구간을 검색하는데, 이는 하기와 같다.On the other hand, the CPU 18 having set the minimum value for detecting the ring in the TRC by the operation of FIG. 4 performs the operation of FIG. 5 every 2 Msec to adjust the value of the TRC, and sets the high section of the ring signal. The search is as follows.

제 5 도는 매 일정시간(2msec)마다 수행되는 루틴(routine)으로 임시 링주파수 카운터인 TRC(temp ring counter)의 값을 1감소하고(51과정), 상승 에지 검출 플래그가 세트되어 있는가를 검사한다(52과정).FIG. 5 is a routine performed every predetermined time (2 msec) to decrease the value of the temporary ring frequency counter TRC (temp ring counter) by 1 (step 51) and to check whether the rising edge detection flag is set (step 51). Course 52).

상기 52과정의 검색 결과 하강에지(failling edge)가 검출된 상태이면 상기 CPU(28)는 제 5 도의 루틴(routine)을 종료한다.If a falling edge is detected as a result of the search in step 52, the CPU 28 terminates the routine of FIG.

만일 상승 에지가 검출된 상태이면 상기 CPU(18)는 4msec 타이머(timer)가 종료되었는가를 검사하여(53과정), 종료되지 않았다면 이 루틴을 종료하고, 상기 4msec 타이머가 종료되었으면 상기 CPU(18)는 링(ring) 인터럽트를 인에이블(enable)하고(54과정) 아직 링(ring)신호가 하이를 유지하고 있는가를 링신호 입력포트(ROT)의 입력을 검사하여 검색한다(55과정).If the rising edge is detected, the CPU 18 checks whether or not the 4 msec timer has expired (step 53). If not, the CPU 18 terminates this routine, and if the 4 msec timer expires, the CPU 18 Enables the ring interrupt (step 54) and checks the input of the ring signal input port (ROT) to see if the ring signal remains high (step 55).

상기 55과정의 검색결과 입력포트(ROT)의 입력이 아직 하이상태를 유지하고 있으면 상기 CPU(18)는 정상적인 신호 파형의 일부로 생각하여 하강 에지 요구검출 플래그를 세트하고(56과정), 상승 에지 검출 플래그를 리세트한다(57과정). 만약 상기 55과정에서 링신호가 이미 로우 상태이면 상기 CPU(18)는 아직 정상적인 하이신호가 검출되지 않은 것으로 판단하여 바로 57과정에서 상승 에지검출 플래그를 리세트하고 이 루틴을 종료한다.If the input of the search result input port ROT of step 55 is still high, the CPU 18 considers it as a part of a normal signal waveform and sets a falling edge request detection flag (step 56), and detects a rising edge. Reset the flag (step 57). If the ring signal is already low in step 55, the CPU 18 determines that a normal high signal has not yet been detected, and immediately resets the rising edge detection flag in step 57 and terminates this routine.

이후 CPU(18)는 제 6 도에서, 링이 검출되었는가(61과정)를 검사하여 이미 링이 검출만 되었으면 링 주파수 검출 플래그(flag-check-ring-freeq)(RFCF)가 세트되었는가를 검사한다(62과정). 상기 62과정에서 RFCF가 세트되어 있지않으면 상기 CPU(18)는 TRC(임시 링 카운터)에 저장된 값이 20보다 큰가를 검사하여(63과정), 20보다 크면 TRC(temp-ring-counter)의 값을 롤 FF로 세트한다(65과정). 만일 상기 63과정에서 TRC의 값이 20보다 작으면 상기 CPU(18)는 현재 링(ring) 주파수를 감시하고 있는 과정 이므로 그냥 이 과정을 종료한다.Then, the CPU 18 checks whether a ring has been detected (step 61) in FIG. 6 and checks whether a ring frequency check flag (RFCF) is set if the ring has already been detected. (62 courses). If RFCF is not set in step 62, the CPU 18 checks whether the value stored in the TRC (temporary ring counter) is greater than 20 (step 63). If the value is greater than 20, the value of the temp-ring-counter (TRC) is increased. Is set to the roll FF (step 65). If the TRC value is less than 20 in step 63, the CPU 18 is currently monitoring the ring frequency and thus simply terminates this process.

상기 62과정에서 링주파수 검사 플래그인 RFCF가 세트되어 있으면 링 카운터(RC)의 값이 최고 주파수에 해당하는 값보다 작은가를 검사하여(66과정), 만일 작으면 링 검출 플래그(flag-Detect-ring)를 세트하고 아니면 링 검출 플래그를 리세트한다. 이후 만일 링 검출 플래그가 세트되어 있으면 이미 한번의 링이 검출된 상태인가를 검사하여 이미 검출된 상태이면 전화망으로 부터의 링 신호가 있는 것으로 판단한다. 만일 처음 링 신호로 판단되었으면 첫번째 링이 검출되었음을 알리는 링 검출 플래그(flag first ring)을 세트하고 이 과정을 마친다.If RFCF, which is a ring frequency check flag, is set in step 62, it is checked whether the value of the ring counter RC is smaller than a value corresponding to the highest frequency (step 66), and if it is small, a ring-detect flag (flag-Detect-ring). ) Is set, or the ring detection flag is reset. Thereafter, if the ring detection flag is set, it is checked whether one ring has already been detected, and if it is already detected, it is determined that there is a ring signal from the telephone network. If it is determined that the first ring signal is set, a flag first ring indicating that the first ring is detected is set and the process is completed.

전화망으로 부터 링 신호가 있는 것으로 판단되면 스피커를 통하여 링음을 발생하여 사용자에게 전화망으로 부터의 호출이 있음을 알림과 동시에 정해진 방법에 따라 빈 채널을 찾아 휴대장치로 호의 연결을 시도한다(68과정).If it is determined that there is a ring signal from the telephone network, a ring tone is generated through the speaker to inform the user that there is a call from the telephone network, and at the same time, the user attempts to connect a call to a mobile device by searching for an empty channel according to a predetermined method (step 68). .

만일 상기한 61과정에서 링 신호가 이미 검출되어 있는 상태이면 CPU(18)는 다시 링 검사 플래그인 RFCF(flag-check-ring-freq)가 세트되어 있나를 검사하여(68), 세트되어 있지 않으면 링 중지 감시 타이머(time-ring-End)가 "0"으로 감소 되었나를 검사한다(72과정). 상기 검색 과정에서 링중지 감시 타이머(time-ring-Ecd)가 "0"이 되었으면 상기 CPU(18)는 이미 링이 정지되었다고 판단하여 현재 진행중인 휴대장치로의 호 연결과정을 강제적으로 종료하게 된다(73과정).If the ring signal is already detected in step 61, the CPU 18 checks again whether a flag-check-ring-freq (RFCF), which is a ring check flag, is set (68). Check if the ring stop watchdog timer (time-ring-End) has been reduced to " 0 " (step 72). If the ring-stop monitoring timer (time-ring-Ecd) becomes "0" in the search process, the CPU 18 determines that the ring is already stopped and forcibly terminates the call connection process to the mobile device currently in progress ( 73 courses).

한편 상기한 68과정에서 RFCF(flag-check-ring-freq)가 세트되어 있다면, 상기 CPU(18)는 68과정에서 TRC에의 값을 읽어 링주파수를 검사하고, 70과정에서 RC의 값이 최소의 주파수 보다 적은가를 검사한다.On the other hand, if a flag-check-ring-freq (RFCF) is set in step 68, the CPU 18 checks the ring frequency by reading the value of TRC in step 68, and the value of RC is the minimum in step 70. Check for less than frequency.

상기 70과정에서 임시 링 카운터인 TRC(temp-ring-counter)에 저장된 값이 가장 작은 링 주파수에 해당하는 카운터 값보다 더 작으면 현재 링 주파수를 카운트하는 과정에 있다고 판단할 수 있으며, 다시 72과정을 수행하여 링 중지 감시 타이머(timer-ring-End)가 "0"으로 감소되었으면 역시 시도중인 휴대장치로의 호연결과정을 강제로 종료한다(73과정).In step 70, if the value stored in the temporary ring counter TRC (temp-ring-counter) is smaller than the counter value corresponding to the smallest ring frequency, it may be determined that the current ring frequency is being counted. If the ring stop watchdog timer (timer-ring-End) is reduced to " 0 ", the call connection process to the attempted portable device is also forcibly terminated (step 73).

만일 상기 72과정에서 링 중지 감시 타이머(timer-ring-End)가 "0"으로 아직 감소된 상태가 아니면 마지막으로 링이 검출된지 아직 일정 시간이 지나지 않았다고 판단하여 스피커를 통해 발생중인 링음을 중지하고 이를 휴대장치로 통보한다.If the ring stop watch timer (timer-ring-End) is not yet reduced to "0" in step 72, it is determined that the ring is not yet reached a certain time since the ring was detected. Notify this to the portable device.

또한 링 온 상태 플래그(flag-ring-ON)을 리세트하여 현재 상태는 링이 검출되고 있지 않은 상태임을 표시하고 종료한다.In addition, the ring-ring-ON flag is reset, and the current state indicates that the ring is not detected and ends.

상술한 바와 같이 본 발명은 전화망으로 전달된 링 신호를 CPU를 이용하여 다른 신호와 정확히 구별하여 링신호만을 선별적으로 검출할 수 있어 노이즈에 의한 링검출의 오동작을 방지할 수 있다.As described above, the present invention can selectively detect the ring signal by accurately distinguishing the ring signal transmitted to the telephone network from other signals using the CPU, thereby preventing malfunction of ring detection due to noise.

Claims (3)

RF신호를 안테나를 통하여 송, 수신하는 RF모듈(12)과, 상기 RF모듈(12)과 연결되어 아나로그 신호입력을 디지탈 신호로 변환하고 디지탈 신호를 아나로그 신호로 변환하는 모뎀(14)과, 고정장치의 고유번호(ID COED)를 저장하고 있는 메모리(16)와, 내장된 프로그램에 의해 상기의 주변장치를 제어하고 처리과정을 수행하는 중앙처리장치(18)와, 전화망(PSTN)에 접속되어 음성신호를 송수신하는 통화회로(20)와, 상기 전화망(PSTN)과 접속되어 있으며, 소정레벨 이상의 신호를 파형 정형하여 상기 CPU(18)로 출력하는 파형정형부(24)를 구비한 링 검출 방법에 있어서, 상기 전화망(PSTN)통한 링신호의 입력에 의한 인터럽트에 응답하여 RFCF를 체크함과 동시에 현재 입력되는 링신호의 듀레이션을 검출하는 타이머를 구동하고, 상기 입력신호의 주파수를 계산하기 위한 TRC에 저장된 값을 RC에 저장하고, 상기 TRC에 최소 주파수의 값을 저장하는 신호입력 검출 과정과, 소정주기로 동작되어 상기 TRC에 로드된 최대 주파수 값을 감소시키고, 제 1 레벨 구간 검출 타이머가 타임아웃(종료)시 상기 링 인터럽트를 인에이블하는 신호 검출과정과, 이미 링이 검출되었는가를 검색하는 링검출상태 검색과정과, 상기 검색과정에서 이미 링이 검출되지 않았다고 판단시 RC에 저장된 값과 미리 설정된 최소 주파수 값과 비교하여 링주파수를 검색하는 링주파수 제 1 검색과정과, 상기 링 주파수 제 1 검색과정의 검색결과 상기 RC값이 미리 설정된 최소주파수 값보다 클때 호접속을 실행하는 호접속과정과, 상기 검색과정에서 이미 링이 검출되었다고 판단시 RC에 저장된 값과 미리설정된 최소 주파수값과 비교하여 링주파수를 검색하는 링주파수 제 2 검색과정과, 상기 링 주파수 제 2 검색의 검색결과 상기 RC값이 미리 설정된 최소 주파수값보다 작다고 판단시 링종료 카운터(REC)를 카운트하고, 상기 RC값이 상기 최소 주파수값 보다 크다고 판단시 상기 REC 종료되었는가를 검색하는 링입력상태 검색과정과, 상기 링 입력 검색과정에서 REC가 미종료시라고 판단시 링음을 중지하고, REC가 종료시호연결을 중지하는 과정으로 이루어 짐을 특징으로 하는 방법.An RF module 12 which transmits and receives an RF signal through an antenna, and a modem 14 connected to the RF module 12 to convert an analog signal input into a digital signal and convert the digital signal into an analog signal; In addition, the memory 16 stores the ID number of the fixed device (ID COED), the central processing unit (18) for controlling the peripheral device by the built-in program and performs a process, and the telephone network (PSTN) A ring having a call circuit 20 connected and transmitting and receiving a voice signal, and a waveform shaping unit 24 connected to the telephone network PSTN and waveform-shaping a signal of a predetermined level or more and outputting the signal to the CPU 18. A detection method comprising: driving a timer for checking a duration of a ring signal currently input while checking an RFCF in response to an interrupt by an input of a ring signal through the telephone network (PSTN), and calculating a frequency of the input signal TRC for A signal input detection process of storing the stored value in RC, and storing the value of the minimum frequency in the TRC, and reducing the maximum frequency value loaded in the TRC by operating a predetermined period, and the first level interval detection timer is timed out. A signal detection process for enabling the ring interrupt at the end), a ring detection state search process for searching whether a ring has already been detected, and a value stored in RC and a preset minimum value when it is determined that no ring has already been detected in the search process. A ring frequency first search process for searching a ring frequency compared to a frequency value, a call connection process for executing a call connection when the RC value is greater than a predetermined minimum frequency value as a result of the search in the ring frequency first search process; Ring note that searches for ring frequency by comparing the value stored in RC with the preset minimum frequency value when it is determined that the ring has already been detected in the search process The ring termination counter REC is counted when it is determined that the RC value is smaller than a preset minimum frequency value as a result of the second search process and the search of the ring frequency second search, and determines that the RC value is larger than the minimum frequency value. And a ring input state searching process for searching whether the REC is terminated when the REC is terminated, and stopping ringing when the REC is not finished in the ring input searching process, and stopping the call connection when the REC terminates. 제 1 항에 있어서, 신호 입력 검출과정은 링신호의 입력에 의한 인터럽트에 의해 응답하여 현재 입력신호가 하강 에지에 의한 신호인지를 검색하는 입력신호 상태 검색과정과, 상기 신호상태 검색과정에서 하강 에지에 의한 신호라고 판단시 상승 에지 검출플래그를 리세트함과 동시에 TRC의 값을 RC에 로드하는 RC초기화 과정과, 상승 에지 검출요구 비트를 세트하고, 링을 검출하기 위한 최소의 주파수 값을 상기 TRC에 로드하는 TRC 초기화과정과, 상기 신호상태 검색과정에서 상승 에지에 의한 신호라고 판단시 상승 에지 플래그를 세트함과 동시에 입력신호의 제 1 레벨구간 검출 타이머를 세트하고, 링 인터럽트를 디스에이블 하는 과정으로 이루어짐을 특징으로 하는 방법.The signal input detection process of claim 1, wherein the signal input detection process comprises: an input signal state search process for searching whether a current input signal is a signal due to a falling edge in response to an interrupt by an input of a ring signal, and a falling edge during the signal state search process; The RC initializing process of resetting the rising edge detection flag and loading TRC value into RC when the signal is determined by the signal, setting the rising edge detection request bit, and setting the minimum frequency value to detect the ring. A TRC initialization process for loading a signal into the TRC, a process of setting a rising edge flag when setting the rising edge flag when determining that the signal is a rising edge signal, and disabling a ring interrupt. Method characterized in that consisting of. 제 2 항에 있어서, 신호 검출과정은 소정의 주기로 TRC의 값을 "1"감소하고, 상승 에지 검출플래그가 세트되어 있을시 "하이"구간 검출 타이머가 종료되었는가를 검색하는 타이밍 검색과정과, 상기 타이머 검색과정에서 상기 타이머가 종료되었다고 판단시 링인터럽트를 인에이블하고, 링검출모드가 "하이"인가를 검색하는 링신호 검색과정과, 상기 링신호를 입력검색과정에서 링검출 포트가 "하이"시에 하이에지 검출요구 비트를 세트함과 동시에 상승 에지 검출플래그를 리세트하고, 상기 검출포트가 "로우"시 바로 상기 상승 에지 검출플래그를 리세트하는 과정으로 이루어짐을 특징으로 하는 방법.3. The signal detection process according to claim 2, wherein the signal detection process includes: a timing search process for decrementing the value of TRC by a predetermined period and searching whether the "high" section detection timer expires when the rising edge detection flag is set; A ring signal search process for enabling a ring interrupt upon determining that the timer has expired in the timer search process and searching for whether the ring detection mode is “high”, and a ring detection port is “high” during the input search process for the ring signal. And resetting the rising edge detection flag at the same time as setting the high edge detection request bit at the same time, and immediately resetting the rising edge detection flag when the detection port is "low".
KR1019920013380A 1992-07-25 1992-07-25 Ring detection method utilizing a microprocessor KR950000530B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019920013380A KR950000530B1 (en) 1992-07-25 1992-07-25 Ring detection method utilizing a microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019920013380A KR950000530B1 (en) 1992-07-25 1992-07-25 Ring detection method utilizing a microprocessor

Publications (2)

Publication Number Publication Date
KR940003262A KR940003262A (en) 1994-02-21
KR950000530B1 true KR950000530B1 (en) 1995-01-24

Family

ID=19337012

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019920013380A KR950000530B1 (en) 1992-07-25 1992-07-25 Ring detection method utilizing a microprocessor

Country Status (1)

Country Link
KR (1) KR950000530B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102379238B1 (en) * 2019-01-07 2022-03-24 주식회사 엘지화학 Acrylic based copolymer composition, method for preparing the same and acrylic based rubber composition

Also Published As

Publication number Publication date
KR940003262A (en) 1994-02-21

Similar Documents

Publication Publication Date Title
US4626845A (en) Subscriber validation system
US5522087A (en) System for selectively operating in different modes depending upon receiving signal from a host computer within a time window upon power up
US6802016B2 (en) User proximity sensor and signal processing circuitry for determining whether to power a computer on or off
JPH0232828B2 (en)
US5267301A (en) Data communication apparatus and method capable of discriminating calling stations
US5659602A (en) Telephone apparatus for caller ID
US4860359A (en) Method of voice operated transmit control
KR950000530B1 (en) Ring detection method utilizing a microprocessor
US6167130A (en) Conditional autodialer
US5287402A (en) Data communication apparatus
US4811386A (en) Called party response detecting apparatus
CN106092130B (en) Step-recording method, device and the mobile terminal of pedometer
JPS62152256A (en) Calling signal setting system
US5933779A (en) Protocol for exchanging signaling signals in a cordless telephone
JP3585669B2 (en) Ending method of wireless communication device with code squelch function and wireless communication device provided with the method
KR19990002520A (en) How to check your pulse on your phone
JPH09224101A (en) Communication terminal equipment
JP2893665B2 (en) Information and communication equipment
JP2553687B2 (en) Remote control receiver circuit
JP2872479B2 (en) Ringer detection circuit
JPH07175982A (en) Fire sensor
JP2001339781A (en) Receiving circuit for remote control signal
KR950001526B1 (en) Ringing signal detecting method
KR940000458B1 (en) Doorphone system
KR970011413B1 (en) Auto-loop system of a telephone

Legal Events

Date Code Title Description
A201 Request for examination
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: 20080102

Year of fee payment: 14

LAPS Lapse due to unpaid annual fee