CN110708221A - A home remote control system and method - Google Patents
A home remote control system and method Download PDFInfo
- Publication number
- CN110708221A CN110708221A CN201910936922.6A CN201910936922A CN110708221A CN 110708221 A CN110708221 A CN 110708221A CN 201910936922 A CN201910936922 A CN 201910936922A CN 110708221 A CN110708221 A CN 110708221A
- Authority
- CN
- China
- Prior art keywords
- circuit
- chip microcomputer
- telephone line
- control system
- ringing
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
- H04L12/282—Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/247—Telephone sets including user guidance or feature selection means facilitating their use
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/30—Devices which can set up and transmit only one digit at a time
- H04M1/50—Devices which can set up and transmit only one digit at a time by generating or selecting currents of predetermined frequencies or combinations of frequencies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/82—Line monitoring circuits for call progress or status discrimination
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L2012/284—Home automation networks characterised by the type of medium used
- H04L2012/2845—Telephone line
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明公开了一种家庭远程控制系统及方法,其中系统包括单片机、家用电器对应的控制开关,所述单片机输出端连接控制开关,用于控制家用电器的工作,所述控制系统还包括设置在电话座机内振铃检测电路、DTMF解码电路、语音提醒电路,所述振铃检测电路用于检测电话座机的响铃信号,其输出端与单片机连接,所述单片机的输出端分别连接语音提醒电路、摘挂机电路,所述DTMF解码电路的输出端与单片机连接,所述DTMF解码电路、语音提醒电路分别通过摘挂机电路连接电话线。本发明通过用户拨打家中固定电话的方式并根据语音提醒来输入按键来实现对于家用电器的控制,这种方式结构简单、控制方便,通过改进电话的内部电路结构,增加了家用电器的智能化控制程度。
The invention discloses a home remote control system and method, wherein the system comprises a single-chip microcomputer and a control switch corresponding to a household appliance, the output end of the single-chip microcomputer is connected to the control switch, and is used to control the work of the household appliance, and the control system further comprises a A ringing detection circuit, a DTMF decoding circuit, and a voice reminder circuit in the telephone landline. The ringing detection circuit is used to detect the ringing signal of the telephone landline. and an off-hook circuit, the output end of the DTMF decoding circuit is connected to the single-chip microcomputer, and the DTMF decoding circuit and the voice reminder circuit are respectively connected to the telephone line through the off-hook circuit. The present invention realizes the control of household appliances by means of the user dialing the fixed telephone at home and inputting the keys according to the voice prompt. This method has a simple structure and is convenient to control. By improving the internal circuit structure of the telephone, the intelligent control of the household appliances is increased. degree.
Description
技术领域technical field
本发明涉及智能家居控制领域,特别涉及一种基于家用固定电话机进行家用电器控制的家庭远程控制系统及方法。The invention relates to the field of intelligent home control, in particular to a home remote control system and method for controlling home appliances based on a home fixed telephone.
背景技术Background technique
随着智能家居控制的发展,通过远程或自动等方式来远程控制家庭内的电器工作成为智能家居远程控制的发展方向,现有技术中常采用架设云端服务器的方式来实现,通过云端服务器发送控制信号来实现家居内的电器的控制。但是架设云端平台或注册云端平台账户等对于用户来说仍然不方便。本申请在现有技术的基础上,提出一种新的智能家居的电器控制方式,采用家庭内的固定电话以及电话网络来实现信号传输,从而实现远程信号的传递以控制家用电器的工作。With the development of smart home control, remote control of electrical work in the home through remote or automatic methods has become the development direction of smart home remote control. In the prior art, the method of setting up a cloud server is often used to achieve, and the control signal is sent through the cloud server. To realize the control of electrical appliances in the home. However, setting up a cloud platform or registering a cloud platform account is still inconvenient for users. Based on the prior art, the present application proposes a new smart home appliance control method, which uses a fixed telephone and a telephone network in the home to realize signal transmission, thereby realizing remote signal transmission to control the operation of household appliances.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于克服现有技术的不足,提供一种家庭远程控制系统,用于通过家用固定电话来实现远程控制家用电器。The purpose of the present invention is to overcome the deficiencies of the prior art, and to provide a home remote control system for realizing remote control of household appliances through a home fixed telephone.
为了实现上述目的,本发明采用的技术方案为:一种家庭远程控制系统,包括单片机、家用电器对应的控制开关,所述单片机输出端连接控制开关,用于控制家用电器的工作,所述控制系统还包括设置在电话座机内振铃检测电路、DTMF解码电路、语音提醒电路,所述振铃检测电路用于检测电话座机的响铃信号,其输出端与单片机连接,所述单片机的输出端分别连接语音提醒电路、摘挂机电路,所述DTMF解码电路的输出端与单片机连接,所述DTMF解码电路、语音提醒电路分别通过摘挂机电路连接电话线。In order to achieve the above purpose, the technical solution adopted in the present invention is as follows: a home remote control system, comprising a single-chip microcomputer and a control switch corresponding to a household appliance, wherein the output end of the single-chip microcomputer is connected to a control switch for controlling the work of the household appliance, and the control The system also includes a ringing detection circuit, a DTMF decoding circuit, and a voice reminder circuit arranged in the telephone landline. The ringing detection circuit is used to detect the ringing signal of the telephone landline. The voice reminder circuit and the on-hook circuit are respectively connected, the output end of the DTMF decoding circuit is connected with the single-chip microcomputer, and the DTMF decoding circuit and the voice reminder circuit are respectively connected to the telephone line through the on-hook circuit.
所述摘挂机电路根据单片机的控制信号接通电话线与DTMF解码电路及语音提醒电路之间的连接。The off-hook circuit connects the telephone line with the DTMF decoding circuit and the voice reminder circuit according to the control signal of the single-chip microcomputer.
所述摘挂机电路包括MC1413芯片、三极管、继电器,MC1413芯片的输入端连接单片机,所述MC1413芯片的输出端连接三极管的基极,所述三极管的发射机接地,所述三极管的集电极经过继电器的线圈连接电源VCC,所述继电器的常开触点设置电话线和DTMF解码电路之间以及电话线和语音提醒模块。The on-hook circuit includes an MC1413 chip, a triode, and a relay. The input end of the MC1413 chip is connected to the single-chip microcomputer, the output end of the MC1413 chip is connected to the base of the triode, the transmitter of the triode is grounded, and the collector of the triode passes through the relay. The coil is connected to the power supply VCC, and the normally open contact of the relay is set between the telephone line and the DTMF decoding circuit as well as the telephone line and the voice reminder module.
所述振铃检测电路包括桥式整流模块、光耦电路、与门电路,电话线连接桥式整流电路的输入端,所述桥式整流电路整流输出后的电压经过滤波稳压电路后与光耦电路的输入端连接,光耦电路的输出端连接与门电路的其中一个输入端,与门电路的另一个输入端接地,与门电路的输出端与单片机连接。The ringing detection circuit includes a bridge rectifier module, an optocoupler circuit, and an AND gate circuit. The telephone line is connected to the input end of the bridge rectifier circuit. The input end of the coupling circuit is connected, the output end of the optocoupler circuit is connected to one input end of the AND gate circuit, the other input end of the AND gate circuit is grounded, and the output end of the AND gate circuit is connected to the single-chip microcomputer.
所述语音提醒电路包括ISD2560芯片,用于根据单片机的输入控制信号来输出预先设定的语音提醒信号。The voice reminder circuit includes an ISD2560 chip, which is used to output a preset voice reminder signal according to the input control signal of the single-chip microcomputer.
一种家庭远程控制系统的控制方法,包括如下步骤:A control method for a home remote control system, comprising the following steps:
步骤1:单片机通过振铃检测电路检测响铃信号并对响铃次数进行计数,在响铃次数大于设定次数时,通过摘挂机电路接通电话线与语音提醒模块的连接;Step 1: The single-chip microcomputer detects the ringing signal through the ringing detection circuit and counts the number of rings. When the number of rings is greater than the set number of times, the connection between the telephone line and the voice reminder module is connected through the off-hook circuit;
步骤2:语音提醒模块将提醒对方输入验证密码的语音信号发送至电话线并被拨打电话者接收;Step 2: The voice reminder module sends a voice signal to remind the other party to input the verification password to the telephone line and is received by the caller;
步骤3:单片机通过DTMF解码电路从电话线上接收传来的数据并解码后发送至单片机,并在密码正确后,由单片机驱动语音提醒模块通过电话线将要求输入被控制家用电器对应的数字键;Step 3: The single-chip microcomputer receives the data transmitted from the telephone line through the DTMF decoding circuit, decodes it and sends it to the single-chip computer, and after the password is correct, the single-chip microcomputer drives the voice reminder module to request the input of the digital keys corresponding to the controlled household appliances through the telephone line. ;
步骤4:单片机通过DTMF解码电路获取电话线上的信号得到数字并确定数字对应的家用电器;Step 4: The single-chip microcomputer obtains the signal from the telephone line through the DTMF decoding circuit to obtain the number and determines the household appliance corresponding to the number;
步骤5:单片机对家用电器进行通断电控制;Step 5: The single-chip microcomputer controls the power on and off of the household appliances;
步骤6:单片机控制摘挂机电路进行挂机操作。Step 6: The single-chip microcomputer controls the on-hook circuit to perform the on-hook operation.
在单片机通过DTMF解码电路获取电话线上传来的按键信号时,当在设定时间间隔内没有收到按键信号时,单片机控制摘挂机电路控制挂机。When the single-chip microcomputer obtains the key signal from the telephone line through the DTMF decoding circuit, when the key signal is not received within the set time interval, the single-chip computer controls the on-hook circuit to control the on-hook.
在步骤3中:DTMF解码芯片MT8870会将用户输入的按键信号转换成相应的数字信号,送到单片机中判断;如果密码不正确,则单片机驱动语音提醒模块传递语音提示重新输入,当输入次数超过设定次数时,系统将自动挂机。In step 3: the DTMF decoding chip MT8870 will convert the key signal input by the user into a corresponding digital signal, and send it to the single-chip microcomputer for judgment; if the password is incorrect, the single-chip microcomputer drives the voice reminder module to transmit a voice prompt to re-input. When the number of times is set, the system will automatically hang up.
本发明的优点在于:通过用户拨打家中固定电话的方式并根据语音提醒来输入按键来实现对于家用电器的控制,这种方式结构简单、控制方便,通过改进电话的内部电路结构,借助于电话线进行通信传播数据来实现对于家用电器的控制,方便可靠,增加了家用电器的智能化控制程度。The advantages of the present invention lie in that the control of the household appliances is realized by the user dialing the fixed telephone at home and inputting the keys according to the voice prompt. This method has a simple structure and is convenient to control. By improving the internal circuit structure of the telephone, the telephone line It is convenient and reliable to carry out communication and dissemination of data to realize the control of household appliances, which increases the degree of intelligent control of household appliances.
附图说明Description of drawings
下面对本发明说明书各幅附图表达的内容及图中的标记作简要说明:Below is a brief description of the content expressed in each of the drawings in the description of the present invention and the labels in the drawings:
图1为本发明控制系统结构原理图;Fig. 1 is the control system structure principle diagram of the present invention;
图2为本发明振铃检测原理图;Fig. 2 is the ringing detection principle diagram of the present invention;
图3为本发明解码电路原理图;3 is a schematic diagram of a decoding circuit of the present invention;
图4为本发明摘挂机电路原理图;FIG. 4 is a schematic diagram of an off-hook circuit of the present invention;
图5为本发明家用电器的通断电控制原理图。FIG. 5 is a schematic diagram of the power-on and power-off control of the household appliance of the present invention.
具体实施方式Detailed ways
下面对照附图,通过对最优实施例的描述,对本发明的具体实施方式作进一步详细的说明。The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and through the description of the preferred embodiments.
如图1-5所示,一种家庭远程控制系统,包括单片机、家用电器对应的控制开关,单片机输出端连接控制开关,用于控制家用电器的工作,其中控制开关可以采用继电器来控制家用电器的供断电从而实现对于。控制系统还包括设置在电话座机内振铃检测电路、DTMF解码电路、语音提醒电路,振铃检测电路用于检测电话座机的响铃信号,其输出端与单片机连接,单片机的输出端分别连接语音提醒电路、摘挂机电路,DTMF解码电路的输出端与单片机连接,DTMF解码电路、语音提醒电路分别通过摘挂机电路连接电话线。As shown in Figure 1-5, a home remote control system includes a single-chip microcomputer and control switches corresponding to household appliances. The output end of the single-chip microcomputer is connected to the control switch to control the work of the household appliance. The control switch can use a relay to control the household appliance. The power supply and power off to achieve for. The control system also includes a ringing detection circuit, a DTMF decoding circuit, and a voice reminder circuit arranged in the telephone landline. The ringing detection circuit is used to detect the ringing signal of the telephone landline. The reminding circuit, the on-hook circuit, the output end of the DTMF decoding circuit are connected to the single-chip microcomputer, and the DTMF decoding circuit and the voice reminding circuit are respectively connected to the telephone line through the on-hook circuit.
其中摘挂机电路根据单片机的控制信号接通电话线与DTMF解码电路及语音提醒电路之间的连接。摘挂机电路包括MC1413芯片、三极管、继电器,MC1413芯片的输入端连接单片机,所述MC1413芯片的输出端连接三极管的基极,所述三极管的发射机接地,所述三极管的集电极经过继电器的线圈连接电源VCC,所述继电器的常开触点设置电话线和DTMF解码电路之间以及电话线和语音提醒模块。The on-hook circuit connects the telephone line with the DTMF decoding circuit and the voice reminder circuit according to the control signal of the single-chip microcomputer. The on-hook circuit includes MC1413 chip, triode, and relay. The input end of the MC1413 chip is connected to the single-chip microcomputer, the output end of the MC1413 chip is connected to the base of the triode, the transmitter of the triode is grounded, and the collector of the triode passes through the coil of the relay. Connect the power supply VCC, the normally open contact of the relay is set between the telephone line and the DTMF decoding circuit, as well as the telephone line and the voice reminder module.
振铃检测电路包括桥式整流模块、光耦电路、与门电路,电话线连接桥式整流电路的输入端,所述桥式整流电路整流输出后的电压经过滤波稳压电路后与光耦电路的输入端连接,光耦电路的输出端连接与门电路的其中一个输入端,与门电路的另一个输入端接地,与门电路的输出端与单片机连接。The ringing detection circuit includes a bridge rectifier module, an optocoupler circuit, and an AND gate circuit. The telephone line is connected to the input end of the bridge rectifier circuit. The output end of the optocoupler circuit is connected to one of the input ends of the AND gate circuit, the other input end of the AND gate circuit is grounded, and the output end of the AND gate circuit is connected to the single-chip microcomputer.
语音提醒电路包括ISD2560芯片,用于根据单片机的输入控制信号来输出预先设定的语音提醒信号。The voice reminder circuit includes the ISD2560 chip, which is used to output the preset voice reminder signal according to the input control signal of the single-chip microcomputer.
本申请的一种家庭远程控制系统的控制方法,包括如下步骤:A control method of a home remote control system of the present application includes the following steps:
步骤1:单片机通过振铃检测电路检测响铃信号并对响铃次数进行计数,在响铃次数大于设定次数时,通过摘挂机电路接通电话线与语音提醒模块的连接;Step 1: The single-chip microcomputer detects the ringing signal through the ringing detection circuit and counts the number of rings. When the number of rings is greater than the set number of times, the connection between the telephone line and the voice reminder module is connected through the off-hook circuit;
步骤2:语音提醒模块将提醒对方输入验证密码的语音信号发送至电话线并被拨打电话者接收;Step 2: The voice reminder module sends a voice signal to remind the other party to input the verification password to the telephone line and is received by the caller;
步骤3:单片机通过DTMF解码电路从电话线上接收传来的数据并解码后发送至单片机,并在密码正确后,由单片机驱动语音提醒模块通过电话线将要求输入被控制家用电器对应的数字键;Step 3: The single-chip microcomputer receives the data transmitted from the telephone line through the DTMF decoding circuit, decodes it and sends it to the single-chip computer, and after the password is correct, the single-chip microcomputer drives the voice reminder module to request the input of the digital keys corresponding to the controlled household appliances through the telephone line. ;
步骤4:单片机通过DTMF解码电路获取电话线上的信号得到数字并确定数字对应的家用电器;Step 4: The single-chip microcomputer obtains the signal from the telephone line through the DTMF decoding circuit to obtain the number and determines the household appliance corresponding to the number;
步骤5:单片机对家用电器进行通断电控制;Step 5: The single-chip microcomputer controls the power on and off of the household appliances;
步骤6:单片机控制摘挂机电路进行挂机操作。Step 6: The single-chip microcomputer controls the on-hook circuit to perform the on-hook operation.
在单片机通过DTMF解码电路获取电话线上传来的按键信号时,当在设定时间间隔内没有收到按键信号时,单片机控制摘挂机电路控制挂机。When the single-chip microcomputer obtains the key signal from the telephone line through the DTMF decoding circuit, when the key signal is not received within the set time interval, the single-chip computer controls the on-hook circuit to control the on-hook.
在步骤3中:DTMF解码芯片MT8870会将用户输入的按键信号转换成相应的数字信号,送到单片机中判断;如果密码不正确,则单片机驱动语音提醒模块传递语音提示重新输入,当输入次数超过设定次数时,系统将自动挂机。In step 3: the DTMF decoding chip MT8870 will convert the key signal input by the user into a corresponding digital signal, and send it to the single-chip microcomputer for judgment; if the password is incorrect, the single-chip microcomputer drives the voice reminder module to transmit a voice prompt to re-input. When the number of times is set, the system will automatically hang up.
本发明是介绍了一种基于电话网和单片机的家用电器远程控制系统。利用该发明,用户可通过打电话方便地遥控家中的电器。例如用户下班前,可通过电话将家中的电饭锅、空调器和热水器提前打开。下班到家时,饭已煮好,房间温度正好合适,热水器中水已加热,既舒适又方便。下面具体介绍该发明的组成和控制原理。The invention introduces a remote control system for household appliances based on a telephone network and a single-chip microcomputer. With the invention, the user can conveniently remotely control the electrical appliances in the home by making a phone call. For example, the user can turn on the rice cooker, air conditioner and water heater at home in advance by phone before going off work. When I get home from get off work, the rice has been cooked, the room temperature is just right, and the water in the water heater has been heated, which is both comfortable and convenient. The composition and control principle of the invention are described in detail below.
如图1所示,,ISD2560为语音存储播录芯片。当用户需要控制家中电器时,可用手机或固定电话拨打家中的电话号码,振铃信号通过电话网络传到家中的话机,此时振铃检测电路开始检测铃流信号,一次铃流信号产生一个脉冲,脉冲送到单片机AT89C51中计数。在有人接听或振铃次数不大于6次(可由软件设定)时,控制系统认为是电话呼叫信号或误操作而不动作,以避免干扰正常电话业务。当振铃次数大于6次时,系统认为是对插座和电器的控制,单片机控制摘机并启动语音提示电路(ISD2560)发出提示音,要求用户输入密码。DTMF解码芯片MT8870会将用户输入的按键信号转换成相应的数字信号,送到单片机中判断。如果密码不正确,则语音提示重新输入,当输入次数超过3次(可由软件设定)时,系统将自动挂机;如果输入密码经系统确认正确后,语音提示用户各项操作所对应的数字键,确认操作完成后,系统自动挂机。用户拨打话机按键的过程中,按键时间间隔不能超过一定时间(一般设置为5~10秒),当超过设定时间时,系统同样会自动挂机。As shown in Figure 1, ISD2560 is a voice storage and recording chip. When the user needs to control the home appliances, he can use the mobile phone or fixed phone to dial the home phone number, and the ringing signal is transmitted to the home phone through the telephone network. At this time, the ringing detection circuit starts to detect the ringing current signal, and a ringing current signal generates a pulse. , the pulse is sent to the single chip AT89C51 for counting. When someone answers or the number of rings is not more than 6 times (which can be set by software), the control system considers it to be a telephone call signal or misoperation and does not act to avoid interfering with normal telephone services. When the number of rings is greater than 6 times, the system considers it to be the control of sockets and electrical appliances, and the single-chip microcomputer controls the off-hook and starts the voice prompt circuit (ISD2560) to issue a prompt tone, requiring the user to enter a password. The DTMF decoding chip MT8870 will convert the key signal input by the user into the corresponding digital signal, and send it to the single-chip microcomputer for judgment. If the password is incorrect, it will be prompted to re-enter it by voice. When the number of input exceeds 3 times (which can be set by the software), the system will hang up automatically; if the password is entered and confirmed by the system to be correct, the voice prompts the user for the number keys corresponding to each operation. , after confirming that the operation is completed, the system automatically hangs up. When the user dials the phone key, the time interval between key presses cannot exceed a certain time (generally set to 5 to 10 seconds). When the set time is exceeded, the system will also hang up automatically.
本系统的中央处理单元是AT89C51,所有的控制命令由它发出。当系统上电复位后,CPU不断地检测振铃信号状态。当检测到有效振铃信号后,启动计数程序。计数到设定振铃次数后,CPU送出摘机信号,控制电路自动摘机并送出摘机提示音,提示用户输入密码。同时单片机检测MT8870送来的STD信号,当STD信号有效时,从MT8870读入指令代码并与预设密码比较,不一致就自动挂机。如果一致,用户就可以根据系统的语音提示进行进一步的操作,如检查插在插座上电器的工作状态,或者对其状态的设定等。The central processing unit of this system is AT89C51, and all control commands are issued by it. After the system is powered on and reset, the CPU continuously detects the state of the ringing signal. When a valid ringing signal is detected, the counting procedure is started. After counting to the set number of rings, the CPU sends out the off-hook signal, the control circuit automatically goes off-hook and sends out the off-hook prompt tone, prompting the user to input the password. At the same time, the single-chip microcomputer detects the STD signal sent by the MT8870. When the STD signal is valid, it reads the instruction code from the MT8870 and compares it with the preset password. If it is inconsistent, it will hang up automatically. If they are consistent, the user can perform further operations according to the voice prompt of the system, such as checking the working status of the electrical appliance plugged into the socket, or setting its status.
振铃检测电路如图2所示。当振铃信号经C21、C22输入时,电话线路上的75±15V、25Hz的交流电压经D4桥式整流、C8滤波、D5稳压后的直流电压使光电耦合器导通,+5V的电源电压经光电耦合器、R22和D3给电容C13充电,当电容上的电压充至74L08的开门电压时,74LS08导通,把模拟信号转化为数字脉冲信号,然后输入到AT89C51单片机的T0引脚进行计数。每一个铃流信号产生一个脉冲,单片机计数一次。当计数达到6次时,通过软件使AT89C51的P2.1引脚发出低电平,完成摘机动作。The ringing detection circuit is shown in Figure 2. When the ringing signal is input through C21 and C22, the 75±15V, 25Hz AC voltage on the telephone line is bridge rectified by D4, filtered by C8, and the DC voltage stabilized by D5 makes the optocoupler conduct, and the +5V power supply The voltage charges the capacitor C13 through the photocoupler, R22 and D3. When the voltage on the capacitor is charged to the gate voltage of the 74L08, the 74LS08 is turned on, and the analog signal is converted into a digital pulse signal, and then input to the T0 pin of the AT89C51 microcontroller for processing. count. Each ringing current signal generates a pulse, and the microcontroller counts it once. When the count reaches 6 times, the P2.1 pin of the AT89C51 is issued a low level through software to complete the off-hook action.
解码电路如图3所示。DTMF解码电路的作用是接收从话机输入的双音多频信号并将其转换成二进制编码,然后输至单片机进行数据处理,进而实现控制功能。MT8870是完整的DTMF接收器,可用作界面分离滤波器和数字解码器。滤波部分用于转换电容的高低滤波群,解码器用于数字查询,并将检测到的16位DTMF信号转化成4位代码。外部计数的最小值由不同的输入放大器、时钟振荡器及锁存的三位状态值预先设定。电话线上的信号通过电容C23耦合、R13、R14衰减输入到MT8870的2脚和3脚进行解码,把电话拨号信号转化为对应的二进制编码。用户在电话机的键盘上操作按键后,这些信息均采用双音频方式通过电话线发出。The decoding circuit is shown in Figure 3. The function of the DTMF decoding circuit is to receive the dual-tone multi-frequency signal input from the phone and convert it into binary code, and then input it to the single-chip microcomputer for data processing, and then realize the control function. The MT8870 is a complete DTMF receiver that can be used as an interface separation filter and digital decoder. The filter part is used to convert the high and low filter groups of the capacitor, and the decoder is used for digital inquiry and converts the detected 16-bit DTMF signal into a 4-bit code. The minimum value of the external count is preset by various input amplifiers, clock oscillators, and latched three-bit state values. The signal on the telephone line is coupled by capacitor C23, attenuated by R13, R14 and input to the 2 feet and 3 feet of MT8870 for decoding, and converts the telephone dialing signal into the corresponding binary code. After the user operates the keys on the keyboard of the telephone, the information is sent out through the telephone line in a dual tone mode.
语音提示及监听电路才有用ISD2560芯片,ISD系列语音芯片避免一般固体语音电路的量化噪声和失真现象,能够较好地再现语音的自然效果。ISD2560支持用户对语音信息的直接地址操作,使设计者在对语音信息段进行操作和语音组合时无须知道其地址,仅需知道音段的相对序号即可。ISD2560的操作模式根据引脚A1~A8的高低电平不同组合分为6种不同的模式,实现不同的功能。在启动监听功能时,只需改变相应口的电平就可以将现场的声音转换为电平信号送到电话线路中,电路简单,使用方便。ISD2560 chip is only used for voice prompting and monitoring circuits. ISD series voice chips avoid the quantization noise and distortion of general solid voice circuits, and can better reproduce the natural effect of voice. The ISD2560 supports the user's direct address operation on the voice information, so that the designer does not need to know the address when operating and combining the voice information segments, but only needs to know the relative serial numbers of the voice segments. The operation mode of ISD2560 is divided into 6 different modes according to the different combinations of the high and low levels of pins A1 to A8 to achieve different functions. When the monitoring function is activated, it is only necessary to change the level of the corresponding port to convert the sound of the scene into a level signal and send it to the telephone line. The circuit is simple and easy to use.
摘/挂机电路如图4所示。平时电话挂机时,两条电话线处于开路状态,线上电压加到话机的振铃电路两端。摘机时振铃电路断开,电话线接通。拨打电话时,来自电话线的高压振铃信号经铃流检测电路产生脉冲信号,送到单片机的P3.5口进行振铃脉冲计数。当振铃次数达到6次,单片机程序控制P2.1口输出一个低电平,然后P2.1口的高电平送往MC1413集成开关驱动电路的1脚进行放大,由16脚输出高电平送到三极管9013的基极,使三极管饱和导通。此时,+5V电源经继电器线圈和三极管接地,继电器线圈得电,使继电器的常开触电闭合,电话接通。当用户输入密码错误或者操作结束后,系统软件控制P2.1口输出一个高电平,经MC1413驱动电路,16脚输出低电平,控制9013截止,继电器线圈失电,常开触点断开,电话线又处于开路状态,实现了挂机。Pick up / hang up circuit as shown in Figure 4. Usually when the phone hangs up, the two telephone lines are in an open circuit state, and the line voltage is applied to both ends of the ringing circuit of the phone. When off-hook, the ringing circuit is disconnected and the telephone line is connected. When making a call, the high-voltage ringing signal from the telephone line generates a pulse signal through the ringing current detection circuit, and sends it to the P3.5 port of the single-chip microcomputer for ringing pulse counting. When the number of rings reaches 6 times, the microcontroller program controls the P2.1 port to output a low level, and then the high level of the P2.1 port is sent to the 1 pin of the MC1413 integrated switch drive circuit for amplification, and the 16 pin outputs a high level It is sent to the base of the triode 9013 to make the triode saturate and conduct. At this time, the +5V power supply is grounded through the relay coil and the triode, and the relay coil is energized, so that the normally open electric shock of the relay is closed, and the phone is connected. When the user enters the wrong password or the operation ends, the system software controls the P2.1 port to output a high level, and through the MC1413 drive circuit, pin 16 outputs a low level, the control 9013 is turned off, the relay coil is de-energized, and the normally open contact is disconnected , the telephone line is in the open state again, and the hang-up is realized.
家用电器的通断电控制电路如图5所示,设计采用控制带有继电器的电源插座来实现对家电的最终控制,诸如电饭煲、热水器、空调之类的电器只需插上插头,主控单片机即可通过控制插座中各继电器来控制电器电源的通断。该方式简单且易于实现。The power-on and power-off control circuit of household appliances is shown in Figure 5. The design adopts the control of the power socket with a relay to realize the final control of the household appliances. Electrical appliances such as rice cookers, water heaters, and air conditioners only need to be plugged in, and the main control single-chip microcomputer The on-off of the electrical power supply can be controlled by controlling the relays in the socket. This method is simple and easy to implement.
显然本发明具体实现并不受上述方式的限制,只要采用了本发明的方法构思和技术方案进行的各种非实质性的改进,均在本发明的保护范围之内。Obviously, the specific implementation of the present invention is not limited by the above-mentioned manner, as long as various insubstantial improvements made by adopting the method concept and technical solution of the present invention are all within the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910936922.6A CN110708221A (en) | 2019-09-29 | 2019-09-29 | A home remote control system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910936922.6A CN110708221A (en) | 2019-09-29 | 2019-09-29 | A home remote control system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110708221A true CN110708221A (en) | 2020-01-17 |
Family
ID=69197958
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910936922.6A Pending CN110708221A (en) | 2019-09-29 | 2019-09-29 | A home remote control system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110708221A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111538300A (en) * | 2020-04-26 | 2020-08-14 | 西安工程大学 | Smart home remote control system and control method based on telephone network |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1388680A (en) * | 2002-07-22 | 2003-01-01 | 北京长信嘉信息技术有限公司 | Remote control system and method for digital household network telephone |
CN1453986A (en) * | 2002-04-27 | 2003-11-05 | 清华大学 | Remote control method and device for intelligent telephone |
JP2004266679A (en) * | 2003-03-03 | 2004-09-24 | Matsushita Electric Works Ltd | Remote control system |
CN203241778U (en) * | 2013-02-25 | 2013-10-16 | 洛阳理工学院 | A remote control device for household appliances |
CN204595574U (en) * | 2015-03-16 | 2015-08-26 | 唐山师范学院 | A kind of Intelligent housing Circuits System |
CN206524893U (en) * | 2016-10-20 | 2017-09-26 | 江苏海事职业技术学院 | A kind of intelligent home appliance remote control system |
-
2019
- 2019-09-29 CN CN201910936922.6A patent/CN110708221A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1453986A (en) * | 2002-04-27 | 2003-11-05 | 清华大学 | Remote control method and device for intelligent telephone |
CN1388680A (en) * | 2002-07-22 | 2003-01-01 | 北京长信嘉信息技术有限公司 | Remote control system and method for digital household network telephone |
JP2004266679A (en) * | 2003-03-03 | 2004-09-24 | Matsushita Electric Works Ltd | Remote control system |
CN203241778U (en) * | 2013-02-25 | 2013-10-16 | 洛阳理工学院 | A remote control device for household appliances |
CN204595574U (en) * | 2015-03-16 | 2015-08-26 | 唐山师范学院 | A kind of Intelligent housing Circuits System |
CN206524893U (en) * | 2016-10-20 | 2017-09-26 | 江苏海事职业技术学院 | A kind of intelligent home appliance remote control system |
Non-Patent Citations (1)
Title |
---|
张志武: "智能家居系统中家电的远程控制", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111538300A (en) * | 2020-04-26 | 2020-08-14 | 西安工程大学 | Smart home remote control system and control method based on telephone network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101917530A (en) | Telephone remote button voice dual mode controller | |
CN201710098U (en) | Intelligent curtain with safety precaution alarm function | |
CN101803852B (en) | Intelligent curtain with safety protection alarm function | |
CN202587141U (en) | Device for controlling household appliance remotely by telephone | |
CN110708221A (en) | A home remote control system and method | |
CN204595574U (en) | A kind of Intelligent housing Circuits System | |
CN201114316Y (en) | Telephone control device and telephone control system | |
CN102857652B (en) | Mobile network-based switch control system and method | |
CN201898558U (en) | Household appliance remote control device based on single chip microcomputer | |
CN111538300A (en) | Smart home remote control system and control method based on telephone network | |
CN203241778U (en) | A remote control device for household appliances | |
CN101350866A (en) | Telephone remote control device for household appliances based on single-chip microcomputer and its working method | |
CN201528982U (en) | Microcomputer multifunctional remote control automatic electric rice cooker | |
CN202501558U (en) | Electric heater based on telephone control | |
CN110906406B (en) | Multifunctional range hood control system, range hood and control method | |
CN206524893U (en) | A kind of intelligent home appliance remote control system | |
CN110187656B (en) | A kind of electrical appliance with timing function borrowing WiFi plug-in | |
CN201491094U (en) | Remote Home Appliance Control System | |
CN101350864A (en) | Phone Based Remote Controller | |
CN106412353A (en) | Smart home remote control system and remote control method | |
CN201481127U (en) | Control circuit of microcomputer multifunctional remote-control automatic electric cooker | |
CN202159245U (en) | Air-conditioner alarm and light control system for unattended machine room | |
CN204069111U (en) | Appliance Power Remote Telephone Controller with Voice Prompt | |
CN211826978U (en) | An energy-saving and intelligent control device for household appliances | |
CN205942292U (en) | Intelligent household remote control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200117 |