A kind of remote control system of household electrical appliance and method
Technical field
The present invention relates to a kind of remote control system of household electrical appliance and method, a kind of based on electricity
Words communication network or IP network, utilize the communication apparatus such as mobile phone to realize the system of control long-range to household electrical appliance
And method.
Background technology
Along with development and the growth in the living standard of society, household electrical appliance are more and more abundanter, and people are to life
Comfortableness and safety there has also been higher requirement, domestic environment the most increasingly trends towards networking, intelligence
Energyization and hommization.
The appearance of remote control system of household electrical appliance, makes the people can by mobile phone or phone anywhere
Various electrical equipment in family are remotely controlled.Such as, way home is opened air-conditioning in advance, after getting home
Comfortable temperature and ozone can be enjoyed at once.
In recent years, occur in that a kind of remote control system of household electrical appliance based on GSM mobile communications network,
It mainly includes gsm wireless communication module and single-chip microcomputer, and user is by sending short message by mobile phone order to GSM
Wireless receiving module, is then delivered to single-chip microcomputer, single-chip microcomputer and then control various household electrical appliance.But this is
System has following defects that and needs to set up gsm wireless receiver module, adds the cost of system;Used
Journey also can produce communication cost.
In order to solve drawbacks described above, someone devises a kind of household electrical appliance based on the Internet and remotely controls and is
Uniting, it uses computer to be communicated with computer by the Internet as control centre, mobile phone, and computer receives
Various electrical equipment in family are controlled by control instruction after treatment that send to mobile phone.Though this system
So well solve drawbacks described above, but in order to guarantee in real time household electrical appliance remotely to be controlled,
Computer must be in open state all the time, causes the waste of electricity undoubtedly;It addition, this mode requires hands
Machine must be Internet enabled, could communicate with computer, and control mode is single, and range is limited.
Summary of the invention
It is an object of the invention to provide the variation of a kind of remote control, good energy-conserving effect, the family of low cost
Electrical appliance tele-control system;Control method based on said system is provided simultaneously.
For achieving the above object, the present invention is by the following technical solutions:
A kind of remote control system of household electrical appliance, including remote control end, IP telephone machine and control actuating station,
Described remote control end is connected with described IP telephone machine and sends control instruction to described IP telephone machine,
Described IP telephone machine is connected with described control actuating station and is controlled described control actuating station, wherein:
Described IP telephone machine includes network interface processing unit and CPU, at described network interface
Reason unit is connected with IP network by the network port being attached thereto, and the signal of described CPU is defeated
Enter end to be connected with described network interface processing unit;
Described control actuating station includes controlling modular converter, relay drive circuit and multiple relay, institute
The signal input part stating control modular converter is connected with the signal output part of described CPU, described
The signal output part controlling modular converter is connected with the input of described relay drive circuit, described relay
The outfan of device drive circuit is connected with described relay, and the series connection of described relay accesses the main electricity of household electrical appliance
Source circuit.
Preferably, described remote control end is mobile phone, and described mobile phone is provided with instruction sending module, described finger
Sending module is made to be communicated with described network interface processing unit by the communication module that mobile phone is intrinsic.
Preferably, described IP telephone machine is also built-in with PSTN communication module, ring detecting circuit, simulation
Off-hook module and DTMF decoder module, the signal input part of described PSTN communication module connects landline telephone
Network, the signal output part of described PSTN communication module connects described ring detecting circuit respectively and simulation is plucked
Machine module, described ring detecting circuit, simulation off-hook module and DTMF decoder module respectively with described central authorities
Processing unit is connected.
Preferably, described control modular converter uses AT89C4052 single-chip microcomputer.
A kind of household electrical appliance long-range control method, comprises the following steps:
A, user select the control mode of control long-range to household electrical appliance according to current communication condition, and lead to
Cross long-range manipulation end and send manipulation instruction to IP telephone machine.
After B, IP telephone machine receive described manipulation instruction, process, be subsequently sent to control modulus of conversion
Block;
C, control modular converter and receive the control instruction that sends of IP telephone machine, and control relay Guan Bi or
Disconnect, and then control being switched on or switched off of Domestic electric appliances power source.
Preferably, described step A particularly as follows:
A1, set up by the instruction sending module of embedded in mobile phone and IP telephone machine and be connected, with the shape of packet
Formula sends manipulation instruction to IP telephone machine;
Or A2, set up and be connected by putting through telephone number and IP telephone machine, and input corresponding key information,
Manipulation instruction is sent to IP telephone machine with the form of dtmf signal.
Preferably, in described step A2 put through telephone number particularly as follows: user's calling IP phone machine number
Code, bell signal is sent to CPU by ring detecting circuit, when ringing number reaches preset value
Time, CPU sends control signals to simulate off-hook module, and simulation off-hook module is made simulation and plucked
Motor-driven work also connects speech channel.
Preferably, described step B particularly as follows:
If B1 performs described step A1, network interface processing unit receives the number from instruction sending module
According to bag, it is then forwarded to the intrinsic CPU of IP telephone machine and translates into control instruction, then passing through
Control instruction is sent to control modular converter by the communication interface that CPU carries;
If or B2 perform described step A2, PSTN communication module receives after dtmf signal by DTMF mould
Block is decoded, more decoded information is sent to CPU carry out process formed control instruction,
Control instruction is sent to control modular converter by the communication interface carried finally by CPU.
After using technique scheme, the present invention, compared with background technology, has the advantage that
1, the present invention uses IP telephone machine replacement computer as control centre, can effectively reduce power consumption,
And without additional communication expense, save use cost.
2, user can select control mode flexibly according to practical situation, carries out the electrical equipment in family remotely at any time
Control system of switching on or off electricity, it is to avoid the standby power consumption that household electrical appliance are meaningless, enhance and household electrical appliance used
Safety and reliability.
3, the present invention uses mobile phone as remote control end, and arranges instruction sending module in mobile phone, makes
Obtain user and manipulate more intuitive and convenient.
4, when user needs to carry out each electrical equipment simple on/off operation at home, it is not necessary to find out also
Using the remote controller that each electrical equipment is equipped with, as long as carrying out shirtsleeve operation on mobile phone, can realize respectively
The control of individual electrical equipment, brings facility to user.
5, based on the present invention utilizes existing IP telephone machine and IP network, and without additionally laying line
Road or set up new network, greatly reduces implementation cost, and beneficially families with low and middle income is universal.
Accompanying drawing explanation
Fig. 1 is the structural representation of a kind of remote control system of household electrical appliance of the present invention.
Fig. 2 is the circuit diagram of inventive network interface processing unit.
Fig. 3 is the Wiring port figure of CPU of the present invention.
Fig. 4 is the circuit diagram that the present invention controls actuating station.
Fig. 5 is the flow chart of the present invention a kind of household electrical appliance long-range control method.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and
Embodiment, is further elaborated to the present invention.Should be appreciated that described herein being embodied as
Example only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, a kind of remote control system of household electrical appliance, it includes IP telephone machine 100, remotely
Manipulation end 200 and control actuating station 300, remote control end 200 be connected with IP telephone machine 100 and to
IP telephone machine 100 sends control instruction, and IP telephone machine 100 is connected and to control with controlling actuating station 300
Actuating station 300 processed is controlled, wherein:
IP telephone machine 100 includes that network interface processing unit 110, CPU 120, PSTN are logical
News module 130, ring detecting circuit 140, simulation off-hook module 150 and DTMF decoder module 160, net
Network interface processing unit 110, network interface processing unit 110 and PSTN communication module 130 are IP phones
Machine 100 is intrinsic, ring detecting circuit 140, simulation off-hook module 150 and DTMF decoder module 160
It is connected with network interface processing unit 110 respectively.Use IP telephone machine 100 as above-mentioned long-range control system
The control centre of system, can effectively reduce power consumption, and without additional communication expense, save and use into
This;Meanwhile, in IP telephone machine 100, it is additionally arranged ring detecting circuit 140, simulation off-hook module 150
With DTMF decoder module 160 so that user carries out corresponding button operation after putting through phone, can realize
Long-range control to household electrical appliance, adds motility and the reliability of remote control.
Seeing Fig. 2, network interface processing unit 110 uses Ethernet access based on RJ45 network interface
Processing and Communication processing chip, it is connected with IP network by the network port X201 being attached thereto, and
Realize mutually transmitting data stream with remote control terminal, and hand at network interface processing unit 110
Reason.
Seeing Fig. 3, CPU 120 uses AC495L single-chip microcomputer, 4 of its signal input part
Port (P1_RX_P, P1_RX_N, P1_TX_P, P1_TX_N) respectively with network interface processing unit 110
Same Name of Ends be connected, the data that can realize spreading out of network interface processing unit 110 carry out A/D digital-to-analogue and turn
Change, amplify, the calculation process such as filtering, and process corresponding remote control commands.
PSTN communication module 130, ring detecting circuit 140, simulation off-hook module 150 and DTMF decoding
The physical circuit structure of module 160 belongs to prior art, does not repeats them here.
Remote control end 200 can be mobile phone, phone or computer, can be clever according to the communication condition that user is current
Live and select.In the present embodiment, remote control end 200 is mobile phone, and mobile phone is provided with instruction sending module (figure
Not shown in), instruction sending module has operation interface and protocol convertor, and user is by operation interface
Input corresponding manipulation instruction is also converted accordingly by protocol convertor, and then instruction sends mould
Block connects external network by the communication module that mobile phone is intrinsic, and then enters with network interface processing unit 110
Row communication, so makes user manipulate more intuitive and convenient.User also can put through IP telephone machine by mobile phone
The number of 100, by simulation off-hook module 150 and DTMF decoder module 160 by the key command of user
Information delivery network interface processing unit 110.
See Fig. 1 and Fig. 4, control actuating station 300 and include controlling modular converter 310, relay driving electricity
Road 320 and multiple relay 330, control modular converter 310 and use AT89C4052 single-chip microcomputer, its signal
Input port (UART_RX, UART_TX) is same with the signal output part of network interface processing unit 110
Name end is connected, and controls the signal output part of modular converter 310 and the input of relay drive circuit 320
Being connected, the outfan of relay drive circuit 320 is connected with multiple relays 330, and relay 330 is gone here and there
Couple into household electrical appliance main power line.
Referring to Fig. 5, the invention also discloses a kind of household electrical appliance long-range control method, it includes following step
Rapid:
Step 10, user selects the control mode of control long-range to household electrical appliance according to current communication condition,
And send manipulation instruction by remote control end 200 to IP telephone machine 100.
User can be connected, with data with IP telephone machine 100 foundation by the instruction sending module of embedded in mobile phone
The form of bag sends manipulation instruction to IP telephone machine 100;Also and can input corresponding by putting through telephone number
Key information, send manipulation instruction with the form of dtmf signal to IP telephone machine 100.
Needing exist for explanation, above-mentioned " putting through telephone number ", its detailed process is: user
The number of calling IP phone machine 100, bell signal is sent at network interface by ring detecting circuit 140
Reason unit 110, when ringing number reaches preset value, network interface processing unit 110 sends control signal
To simulation off-hook module 150, simulation off-hook module 150 is made simulation off-hook action and connects speech channel.
Step 20, after IP telephone machine 100 receives manipulation instruction, processes, and is subsequently sent to control
Modular converter 310.
IP telephone machine 100, according to the control instruction of the multi-form received, uses different instruction process sides
Formula.The packet from instruction sending module can be received by network interface processing unit 110, then turn
It is dealt into the intrinsic network interface processing unit 110 of IP telephone machine 100 and translates into control instruction, then passing through
Control instruction is sent to control modular converter 310 by the communication interface that network interface processing unit 110 carries;
Also can receive dtmf signal by IP telephone machine 100 and be decoded by DTMF module, then will decoding
After information be sent to network interface processing unit 110 carry out process formed control instruction, finally by net
Control instruction is sent to control modular converter 310 by the communication interface that network interface processing unit 110 carries.
Step 30, controls modular converter 310 and receives the control instruction that IP telephone machine 100 sends, and control
Relay 330 closes or disconnects, and then controls being switched on or switched off of Domestic electric appliances power source.
The above, the only present invention preferably detailed description of the invention, but protection scope of the present invention is not
Being confined to this, any those familiar with the art, can in the technical scope that the invention discloses
The change readily occurred in or replacement, all should contain within protection scope of the present invention.Therefore, the present invention
Protection domain should be as the criterion with scope of the claims.