CN106094666A - A kind of network remote controls intelligent switch system - Google Patents
A kind of network remote controls intelligent switch system Download PDFInfo
- Publication number
- CN106094666A CN106094666A CN201610726002.8A CN201610726002A CN106094666A CN 106094666 A CN106094666 A CN 106094666A CN 201610726002 A CN201610726002 A CN 201610726002A CN 106094666 A CN106094666 A CN 106094666A
- Authority
- CN
- China
- Prior art keywords
- module
- network
- main control
- control
- wireless network
- 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
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/04—Program control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Program control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25257—Microcontroller
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Telephonic Communication Services (AREA)
- Selective Calling Equipment (AREA)
Abstract
Description
技术领域technical field
本发明属于远程控制技术,具体涉及一种网络远程控制智能开关系统。The invention belongs to the remote control technology, in particular to a network remote control intelligent switch system.
背景技术Background technique
随着人们生活水平的不断提高以及科学技术日新月异的发展,人们对家用电器的智能化以及家居的舒适度要求越来越高。比如说,在晚上睡觉的时候,不需要起身,也能用手机自如地控制灯光开关;另外,当外出上班或旅游的时候,也能根据需要实现家里的电器开关的控制。这就要求实现开关设备接入互联网服务,从而实现随时随地的远程控制。家居智能化是未来生活的发展趋势。如今物联网技术飞速发展,智能家居也逐渐接入物联网。但是,很多智能家居产品主要还是以分散的形式发展,如智能插座,以及红外遥控开和触模开关等。传统的建筑中,开关系统大多采用有线机械开关、触模控制开关和感应开关,或者采用无线遥控开关、红外遥控开关、蓝牙遥控开关等。有线机械开关和触模控制开关成本低,但是开关位置摆放的限制和需要人们靠近手动接触控制,灵活性远远不能达到未来智能家居系统的要求。无线遥控开关、红外遥控开关、蓝牙遥控开关等遥控方式虽然在灵活性方面提高了,但设备成本高、消耗电能多,还需要专们的遥控设备,使用起来不方便,不适合大规模的布置开关节点,因此也是不能很好地达到未来智能家居的要求。目前智能家居市场还未发展成熟,各种智能家居产品价格昂贵,难以得到人们的认可,短时间内难以普及。With the continuous improvement of people's living standards and the rapid development of science and technology, people have higher and higher requirements for the intelligence of household appliances and the comfort of home. For example, when you are sleeping at night, you can control the light switch freely with your mobile phone without getting up; in addition, when you go out to work or travel, you can also control the electrical switch at home according to your needs. This requires the realization of switchgear access to Internet services, so as to realize remote control anytime and anywhere. Home intelligence is the development trend of future life. Nowadays, the Internet of Things technology is developing rapidly, and smart homes are gradually connected to the Internet of Things. However, many smart home products are mainly developed in a decentralized form, such as smart sockets, infrared remote control and touch switches. In traditional buildings, the switch system mostly uses wired mechanical switches, touch control switches and induction switches, or uses wireless remote control switches, infrared remote control switches, Bluetooth remote control switches, etc. Wired mechanical switches and tactile control switches are low in cost, but due to the limitation of switch placement and the need for people to be close to manual touch control, the flexibility is far from meeting the requirements of future smart home systems. Although the remote control methods such as wireless remote control switch, infrared remote control switch, and Bluetooth remote control switch have improved in flexibility, the cost of equipment is high, the power consumption is high, and special remote control equipment is required, which is inconvenient to use and not suitable for large-scale layout. Switching nodes, therefore, cannot well meet the requirements of future smart homes. At present, the smart home market has not yet matured, and various smart home products are expensive, difficult to be recognized by people, and difficult to popularize in a short time.
发明内容Contents of the invention
本发明的目的是提供一种网络远程控制智能开关系统,实现通过手机进行远程控制和查询开关状态、一键全关、定时延时和语音等功能。The purpose of the present invention is to provide a network remote control intelligent switch system, which can realize functions such as remote control and inquiry of switch status, one-button all-off, timing delay and voice through the mobile phone.
实现本发明目的的技术方案如下:The technical scheme that realizes the object of the present invention is as follows:
网络远程控制智能开关系统,其特征在于包括移动终端、网络服务器、无线网络模块、主控芯片模块和开关设备5个部分。The network remote control intelligent switch system is characterized in that it includes five parts: a mobile terminal, a network server, a wireless network module, a main control chip module and a switchgear.
所述移动终端的作用是通过软件输入控制命令;所述移动终端是智能手机或掌上电脑PDA。The function of the mobile terminal is to input control commands through software; the mobile terminal is a smart phone or a PDA.
所述网络服务器的作用是实现控制命令的远程传输。The role of the network server is to realize the remote transmission of control commands.
所述无线网络模块的作用是将主控芯片模块和开关设备接入网络;所述无线网络模块是WIFI模块,所述WIFI模块为WIFI232T模块。The function of the wireless network module is to connect the main control chip module and the switching device to the network; the wireless network module is a WIFI module, and the WIFI module is a WIFI232T module.
所述主控芯片模块的作用是实现接受控制命令并控制开关设备;所述主控芯片模块为STC15F104E单片机。The function of the main control chip module is to accept control commands and control the switchgear; the main control chip module is a STC15F104E single-chip microcomputer.
所述开关设备的作用是实现对电器的开关。The function of the switchgear is to switch on and off the electric appliance.
移动终端通过网络服务器与无线网络模块连接,无线网络模块与主控芯片模块连接,主控芯片模块与开关设备连接。The mobile terminal is connected to the wireless network module through the network server, the wireless network module is connected to the main control chip module, and the main control chip module is connected to the switchgear.
本发明采用WIFI模块连接网络,系统用STC15F104E作为主控芯片处理手机通过网络发来的指令,从而达到远程智能控制开关设备。以STC15F104E作为控制开关的核心,采用WIFI模块连接网络,手机作为远程控制端,服务器作为远程数据处理,继电器控制开关设备,LED作为指示。The invention uses a WIFI module to connect to the network, and the system uses STC15F104E as the main control chip to process the instructions sent by the mobile phone through the network, so as to achieve remote intelligent control of the switch equipment. With STC15F104E as the core of the control switch, the WIFI module is used to connect to the network, the mobile phone is used as the remote control terminal, the server is used for remote data processing, the relay controls the switch equipment, and the LED is used as an indicator.
本发明主控芯片处理的工作是对接收到的WIFI信号进行判断,看其是否是控制信号或者是连接信号,然后就是判断控制信号,就可以控制开关,最后需要做的就是进行开关状态显示,还有需要反馈开关状态给远程控制端。The work of the main control chip of the present invention is to judge the received WIFI signal to see whether it is a control signal or a connection signal, and then judge the control signal to control the switch. The last thing to do is to display the switch state. There is also a need to feed back the switch status to the remote control terminal.
与现有技术相比,本发明具有以下优点:利用数字技术、网络技术及智能控制技术设计改进的新型智能家居的系统。利用WIFI 无线网络技术,结合网络通信技术实现对终端的远程操控。除了具备传统开关的功能外,实现通过手机进行远程控制和查询开关状态、一键全关、定时延时和语音等功能。Compared with the prior art, the present invention has the following advantages: use digital technology, network technology and intelligent control technology to design and improve a new smart home system. Using WIFI wireless network technology, combined with network communication technology to realize remote control of the terminal. In addition to the functions of traditional switches, it can realize remote control and query switch status through mobile phones, one-button full switch, timing delay and voice and other functions.
附图说明Description of drawings
图1 为网络远程控制智能开关系统整体结构框图。Figure 1 is a block diagram of the overall structure of the network remote control intelligent switch system.
图2 为网络远程控制智能开关系统主程序流程图。Figure 2 is the main program flow chart of the network remote control intelligent switch system.
具体实施方式detailed description
下面结合附图,通过实施例对本发明内容作进一步详细说明,但不是对本发明的限制。Below in conjunction with the accompanying drawings, the content of the present invention will be further described in detail through the embodiments, but the present invention is not limited thereto.
实施例Example
如图1所示,本发明网络远程控制智能开关系统由移动终端、网络服务器、无线网络模块、主控芯片模块和开关设备5个部分构成。As shown in Figure 1, the network remote control intelligent switch system of the present invention is composed of five parts: a mobile terminal, a network server, a wireless network module, a main control chip module and a switchgear.
移动终端通过网络服务器与无线网络模块连接,无线网络模块与主控芯片模块连接,主控芯片模块与开关设备连接。The mobile terminal is connected to the wireless network module through the network server, the wireless network module is connected to the main control chip module, and the main control chip module is connected to the switchgear.
移动终端的作用是通过软件输入控制命令;所述移动终端是智能手机或掌上电脑PDA。The role of the mobile terminal is to input control commands through software; the mobile terminal is a smart phone or a PDA.
网络服务器的作用是实现控制命令的远程传输。The role of the network server is to realize the remote transmission of control commands.
无线网络模块的作用是将主控芯片模块和开关设备接入网络;所述无线网络模块是WIFI模块,所述WIFI模块为WIFI232T模块。The function of the wireless network module is to connect the main control chip module and the switching device to the network; the wireless network module is a WIFI module, and the WIFI module is a WIFI232T module.
主控芯片模块的作用是实现接受控制命令并控制开关设备;所述主控芯片模块为STC15F104E单片机。The function of the main control chip module is to realize receiving control commands and controlling the switchgear; the main control chip module is a STC15F104E single-chip microcomputer.
开关设备的作用是实现对电器的开关。The function of the switchgear is to realize the switching of the electrical appliances.
网络远程控制智能开关系统主程序流程如下图2所示:The main program flow of the network remote control intelligent switch system is shown in Figure 2 below:
系统通电后,进入S201步骤,开始程序,接着进入S202步骤执行定时器初始化和串口初始化,然后进入S203步骤等待中断的到来;After the system is powered on, enter the S201 step to start the program, then enter the S202 step to perform timer initialization and serial port initialization, and then enter the S203 step to wait for the arrival of the interrupt;
当S203步骤的中断是定时器中断,则进入S204步骤定时器中断,然后进入S205步骤;When the interruption of the S203 step is a timer interruption, then enter the S204 step timer interruption, and then enter the S205 step;
S205步骤判断定时时间是否等于1s:如果为否,则返回S205步骤重新判断;如果为是,则进入S206步骤;The S205 step judges whether the timing time is equal to 1s: if no, then return to the S205 step to rejudge; if yes, then enter the S206 step;
S206步骤判断远程连接是否正常:如果为是,则进入S207步骤指示灯显示继电器状态,然后进入S209步骤返回并再次等待中断;如果为否,则进入S208步骤,指示灯闪烁,然后进入S209步骤;The S206 step judges whether the remote connection is normal: if yes, then enter the S207 step indicator light to display the relay state, then enter the S209 step to return and wait for interruption again; if no, then enter the S208 step, the indicator light flashes, and then enter the S209 step;
当S203步骤的中断是串口中断,则进入S210步骤串口中断,然后进入S211步骤;When the interruption of the S203 step is a serial port interruption, then enter the S210 step serial port interruption, and then enter the S211 step;
S211步骤等待WIFI发来数据并存入变量RBUF,然后对接受到的数据进行判断:如果S212步骤接收到的数据为‘K’则进入S215步骤打开继电器,然后进入S217步骤定时清零远程连接正常;如果S214步骤接收到的数据为‘G’则进入S216步骤关闭继电器然后进入S217步骤定时清零远程连接正常;如果S212步骤接收到的数据为 ‘L’则直接进入S217步骤定时清零远程连接正常;Step S211 waits for WIFI to send data and store it in the variable RBUF, and then judges the received data: if the data received in step S212 is 'K', then enter step S215 to open the relay, and then enter step S217 to regularly reset the remote connection to normal; If the data received in step S214 is 'G', go to step S216 to close the relay and then go to step S217 to clear the remote connection regularly; if the data received in step S212 is 'L', go directly to step S217 to clear the remote connection normally ;
当程序进入S217步骤后,进入S209步骤返回并再次等待中断。After the program enters step S217, enter step S209 to return and wait for interruption again.
本发明选用安卓智能手机作为远程控制端,这需要自行开发手机软件。安卓控制软件是基于安卓开发软件E4A(易安卓)开发的。安卓控制软件通过TCP/IP协议与连接服务器或WIFI模块发送控制命令和接收处理数据,从而可以实现远程或直连模式对开关进行控制和状态查询。安卓控制软件主要功能有:可以通过GPRS或WIFI连接服务器实现远程控制;可以直接连接WIFI模块控制开关;可以设置IP地址和端口;可以显示开关状态;具有语音识别功能和定时功能等。The present invention selects android smart phone as the remote control terminal, which needs to develop mobile phone software by itself. The Android control software is developed based on the Android development software E4A (Easy Android). The Android control software sends control commands and receives and processes data with the connection server or WIFI module through the TCP/IP protocol, so that the remote or direct connection mode can be used to control the switch and query the status. The main functions of the Android control software are: it can be connected to the server through GPRS or WIFI to realize remote control; it can be directly connected to the WIFI module to control the switch; it can set the IP address and port; it can display the switch status; it has voice recognition and timing functions, etc.
在系统中,要实现远程控制,还需要拥有服务器。本系统中的服务器具备公网IP地址,可以对手机和智能开关发来的数据分析处理,也就相当于服务器起到牵线搭桥的作用,把开关和手机连接到一起。In the system, to realize remote control, a server is also required. The server in this system has a public network IP address, which can analyze and process the data sent by the mobile phone and the smart switch, which is equivalent to the role of the server as a matchmaker, connecting the switch and the mobile phone together.
安卓控制软件界面也是本系统的重要组成部分,它方便用户对开关的控制。软件界面主要由三部分组成:主控制界面(如图4所示)、设置界面(如图5所示)、语音识别界面(如图6所示)。打开软件时首先显示的是主控制界面,点击远程连接按钮可以连接远程服务器,点击本地连接可以直接连接WIFI模块进行控制开关。点击设置按钮可设置需要连接的IP地址和控制端口,还可以设置语音识别内容。延时滑动条可以延时控制开关。开关按钮直接控制开关且可以实时显示开关状态。点击语音识别按钮出现语音识别界面,用户可以用语音指令控制开关。The Android control software interface is also an important part of the system, which is convenient for users to control the switch. The software interface is mainly composed of three parts: the main control interface (as shown in Figure 4), the setting interface (as shown in Figure 5), and the voice recognition interface (as shown in Figure 6). When you open the software, the main control interface is displayed first, click the remote connection button to connect to the remote server, and click the local connection to directly connect to the WIFI module to control the switch. Click the setting button to set the IP address and control port to be connected, and also set the voice recognition content. The delay slide bar can delay the control switch. The switch button directly controls the switch and can display the switch status in real time. Click the voice recognition button to display the voice recognition interface, and the user can control the switch with voice commands.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610726002.8A CN106094666A (en) | 2016-08-26 | 2016-08-26 | A kind of network remote controls intelligent switch system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610726002.8A CN106094666A (en) | 2016-08-26 | 2016-08-26 | A kind of network remote controls intelligent switch system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106094666A true CN106094666A (en) | 2016-11-09 |
Family
ID=57225164
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610726002.8A Pending CN106094666A (en) | 2016-08-26 | 2016-08-26 | A kind of network remote controls intelligent switch system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106094666A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108196462A (en) * | 2018-02-09 | 2018-06-22 | 宁夏玲杰科技有限公司 | The long-range control method and device of smart home |
| CN113391559A (en) * | 2021-06-30 | 2021-09-14 | 青岛海信智慧生活科技股份有限公司 | Smart home equipment control method and terminal equipment |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1924743A (en) * | 2005-04-21 | 2007-03-07 | 中国农业科学院农田灌溉研究所 | On-site manual and long-distance remote control method for long-distance remote control system |
| CN102063102A (en) * | 2010-11-19 | 2011-05-18 | 深圳市科陆电子科技股份有限公司 | Remote control system and control method for intelligent home |
| CN202587009U (en) * | 2012-05-16 | 2012-12-05 | 邓振强 | Network host |
| CN103002159A (en) * | 2012-12-25 | 2013-03-27 | 潘伟 | A mobile phone bluetooth control switch and control method |
| CN202957418U (en) * | 2012-04-10 | 2013-05-29 | 陈奇 | General network power strip seat remotely controlled by GSM, WIFI and IP/TCP protocols |
| KR20130074428A (en) * | 2011-12-26 | 2013-07-04 | 김남훈 | Remote terminal of remote controller have self power generating facility |
| CN203455646U (en) * | 2013-07-22 | 2014-02-26 | 杭州瑞琦信息技术有限公司 | WIFI network based intelligent switch controller |
| CN104517336A (en) * | 2014-12-09 | 2015-04-15 | 深圳市麦驰安防技术有限公司 | Mobile internet based cloud entrance guard system and realization method thereof |
| CN205264961U (en) * | 2015-11-11 | 2016-05-25 | 武汉百络优物联科技有限公司 | Smart jack based on zigbee technique |
-
2016
- 2016-08-26 CN CN201610726002.8A patent/CN106094666A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1924743A (en) * | 2005-04-21 | 2007-03-07 | 中国农业科学院农田灌溉研究所 | On-site manual and long-distance remote control method for long-distance remote control system |
| CN102063102A (en) * | 2010-11-19 | 2011-05-18 | 深圳市科陆电子科技股份有限公司 | Remote control system and control method for intelligent home |
| KR20130074428A (en) * | 2011-12-26 | 2013-07-04 | 김남훈 | Remote terminal of remote controller have self power generating facility |
| CN202957418U (en) * | 2012-04-10 | 2013-05-29 | 陈奇 | General network power strip seat remotely controlled by GSM, WIFI and IP/TCP protocols |
| CN202587009U (en) * | 2012-05-16 | 2012-12-05 | 邓振强 | Network host |
| CN103002159A (en) * | 2012-12-25 | 2013-03-27 | 潘伟 | A mobile phone bluetooth control switch and control method |
| CN203455646U (en) * | 2013-07-22 | 2014-02-26 | 杭州瑞琦信息技术有限公司 | WIFI network based intelligent switch controller |
| CN104517336A (en) * | 2014-12-09 | 2015-04-15 | 深圳市麦驰安防技术有限公司 | Mobile internet based cloud entrance guard system and realization method thereof |
| CN205264961U (en) * | 2015-11-11 | 2016-05-25 | 武汉百络优物联科技有限公司 | Smart jack based on zigbee technique |
Non-Patent Citations (1)
| Title |
|---|
| 曾宪舒: "基于WIFI的智能开关设计", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108196462A (en) * | 2018-02-09 | 2018-06-22 | 宁夏玲杰科技有限公司 | The long-range control method and device of smart home |
| CN113391559A (en) * | 2021-06-30 | 2021-09-14 | 青岛海信智慧生活科技股份有限公司 | Smart home equipment control method and terminal equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105022366B (en) | Wearable smart home remote control method and system based on vibration coding | |
| CN205594390U (en) | Two accuse intelligence switch of pair and control system thereof | |
| CN105739318A (en) | Intelligent socket, intelligent household control system and control method thereof | |
| CN105676669A (en) | Intelligent wall switch based on bluetooth 4.1 interconnection technology | |
| CN204044598U (en) | LED light device and intelligent home control system | |
| CN106130838A (en) | Smart Home steward system based on wechat | |
| CN104570745A (en) | Intelligent home-furnishing system | |
| CN104407542A (en) | Intelligent single-switching double-control switch apparatus and application method thereof | |
| CN205304837U (en) | Intelligence house electrical apparatus control communications system based on MQTT agreement | |
| CN205405140U (en) | Wireless Intelligence switching system | |
| CN205691964U (en) | A kind of intelligent switch and control system thereof | |
| CN205921804U (en) | Smart lighting control system | |
| CN106094666A (en) | A kind of network remote controls intelligent switch system | |
| CN104536301A (en) | Centralized control system of intelligent home terminal | |
| CN203930459U (en) | A kind of can acoustic control and the intelligent domestic system of Long-distance Control | |
| CN205318139U (en) | Intelligent electrical devices | |
| CN205863553U (en) | Internet of Things smart jack | |
| CN101321104A (en) | Intelligent Control LAN | |
| CN204925723U (en) | Room appliances control system | |
| CN206573882U (en) | A kind of network remote controls intelligent switch system | |
| CN103941596A (en) | A configuration method used in a controller of a family system | |
| CN106304579A (en) | A kind of intelligent control switch system | |
| TWM416289U (en) | Intelligent domestic control system | |
| CN205787673U (en) | Wireless control module and intelligent home control system | |
| CN102737294A (en) | Method for providing room service, room terminal and management back-stage terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161109 |
|
| RJ01 | Rejection of invention patent application after publication |