CN110738838A - radio frequency communication method for intelligent switch - Google Patents

radio frequency communication method for intelligent switch Download PDF

Info

Publication number
CN110738838A
CN110738838A CN201910915576.3A CN201910915576A CN110738838A CN 110738838 A CN110738838 A CN 110738838A CN 201910915576 A CN201910915576 A CN 201910915576A CN 110738838 A CN110738838 A CN 110738838A
Authority
CN
China
Prior art keywords
information
module
zigbee
communication method
intelligent
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
Application number
CN201910915576.3A
Other languages
Chinese (zh)
Inventor
谢海春
杨梁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin Ronghui Microelectronics Technology Co Ltd
Original Assignee
Tianjin Ronghui Microelectronics Technology Co Ltd
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 Tianjin Ronghui Microelectronics Technology Co Ltd filed Critical Tianjin Ronghui Microelectronics Technology Co Ltd
Priority to CN201910915576.3A priority Critical patent/CN110738838A/en
Publication of CN110738838A publication Critical patent/CN110738838A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/40Remote control systems using repeaters, converters, gateways
    • G08C2201/41Remote control of gateways
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/40Remote control systems using repeaters, converters, gateways
    • G08C2201/42Transmitting or receiving remote control signals via a network
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/60Security, fault tolerance
    • G08C2201/61Password, biometric
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/90Additional features
    • G08C2201/93Remote control using other portable devices, e.g. mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/284Home automation networks characterised by the type of medium used
    • H04L2012/2841Wireless

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Signal Processing (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses an radio frequency communication method for an intelligent switch, which comprises the following steps of S1, sending a control command to a home GSM intelligent gateway by a user through mobile equipment such as a mobile phone and the like, receiving the control command by an information receiving module, S2, analyzing the control command by the intelligent gateway by the information analyzing module, S3, communicating with a related Zigbee module after the analysis is finished, S4, returning data to the GSM intelligent gateway after the Zigbee module receives the command, and S5, sending the command to a household electric control module through an I/O port of the Zigbee module.

Description

radio frequency communication method for intelligent switch
Technical Field
The invention relates to the technical field of intelligent switches, in particular to radio frequency communication methods for an intelligent switch.
Background
The construction of intelligent power generation and intelligent power transmission networks in China is basically synchronous with that in developed countries, but the construction of intelligent homes is relatively lagged. Along with the implementation of national energy conservation and emission reduction and new energy strategy, the construction of smart homes is necessarily paid more and more attention, the rapid development of modern computer technology and communication technology promotes the development and the perfection of smart home systems, and the intellectualization of switches is the important basis of smart homes.
With the continuous improvement of the physical living standard of people and the high-speed development of wireless communication technology, people have strong demands on the intellectualization and remote control of household appliances, and hope to remotely control the household appliances anytime and anywhere, but the current household switch mainly adopts manual close-range opening, has poor timeliness and low time utilization rate, does not meet the requirements of intelligent home furnishing, and can not meet the fast-paced living needs of people, therefore, radio frequency communication methods for intelligent switches are provided to solve the problems.
Disclosure of Invention
The invention aims to solve the defects in the prior art, and provides radio frequency communication methods for an intelligent switch.
In order to achieve the purpose, the invention adopts the following technical scheme:
A radio frequency communication method for an intelligent switch, comprising the steps of:
s1, the user sends a control instruction to the home GSM intelligent gateway through mobile equipment such as a mobile phone, and the information receiving module receives the control instruction;
s2, the intelligent gateway analyzes the control instruction by using the information analysis module;
s3, after the analysis is finished, communicating with a related Zigbee module;
s4, the Zigbee module returns data to the GSM intelligent gateway after receiving the instruction;
s5, sending the instruction to the household appliance control module through the I/O port of the Zigbee module;
and S6, the household appliance control module controls the working state of the switch type household appliance through the relay circuit, so that energy is saved.
Preferably, the information receiving module in S1 integrates short message reception, network information reception, and local Zigbee information reception, and converts the information from these three sources into information in the system format used in the system through information analysis, the short message command reception processing uses a general GSM short message protocol, the network command uses socket communication, and the local Zigbee message reception is based on a dedicated Zigbee communication module.
Preferably, the information analysis module in S2 verifies whether the short message user is an authorized user, verifies whether the network command password is correct, and verifies the home appliance information through short message analysis verification, network information analysis verification, and local Zigbee information analysis verification.
Preferably, in S5, the appliance control module receives a user command and enters a different appliance control program.
Preferably, the household appliances of the switch class in S6 are washing machines, microwave ovens, refrigerators, televisions, air conditioners, electric curtains and floor sweeping robots.
Preferably, the short message analysis and verification process includes obtaining a mobile phone number field from the short signal code field, verifying whether the mobile phone number field is consistent with a prestored mobile phone number , entering the household appliance control module if the mobile phone number field is consistent with the prestored mobile phone number , and discarding data if the mobile phone number field is not consistent with the prestored mobile phone number .
Preferably, the network information analysis and verification process includes analyzing user name and password fields from the network information, verifying whether the user name and password fields are consistent with the prestored user name and password fields , entering the household appliance control module if is consistent, and discarding data if is not consistent.
Preferably, the local Zigbee information parsing and verifying process is: resolving the household appliance name from the Zigbee information, searching the equipment list, acquiring the corresponding mac address, judging whether the mac address is found, successfully returning to 1, and failing to return to 0.
In the invention, a user sends a control instruction to a home GSM intelligent gateway through mobile equipment such as a mobile phone, an information receiving module receives the control instruction, the intelligent gateway analyzes the control instruction by using an information analyzing module and communicates with a related Zigbee module after the analysis is finished, the Zigbee module returns data to the GSM intelligent gateway after receiving the instruction, the instruction is sent to a household appliance control module through an I/O (input/output) port of the Zigbee module, and the household appliance control module controls the working state of a switch household appliance through a relay circuit, thereby achieving the purpose of saving energy. The intelligent household system organically combines various household electrical appliance subsystems into the intelligent household system by utilizing the advanced computer technology, the wireless network communication technology and the Zigbee Internet of things communication technology, ensures more comfortable, safe and efficient household life through overall management, ensures the comfort while meeting the fast-paced life of people, can fully improve the time utilization rate of people, and effectively improves the effectiveness.
Drawings
Fig. 1 is a flowchart of rf communication methods for an intelligent switch according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely below, and it should be understood that the described embodiments are only some embodiments, but not all embodiments, of the present invention .
Referring to fig. 1, a method for rf communication of an intelligent switch, comprising the steps of:
firstly, an intelligent household electronic switch control system is the current technical development situation in the industry and the application scene of an intelligent household system, a low-power consumption personal area network protocol Zigbee based on the IEEE802.15.4 standard is selected, the Zigbee is short-distance and low-power consumption wireless communication technologies, the intelligent household electronic switch control system is characterized by short distance, low complexity, self-organization, low power consumption, low data rate and low cost, the intelligent household electronic switch control system is mainly suitable for the fields of automatic control and remote control, various devices can be embedded, the intelligent household electronic switch control system has the advantages of low cost and low power consumption as short-distance wireless networking communication technologies, the remote control is realized through a GSM module, meanwhile, the economy and the reliability are fully considered, the intelligent household electronic switch control system is designed and developed, when the intelligent household electronic switch control system is used, a user sends a control;
the information receiving module integrates short message receiving, network information receiving and local Zigbee information receiving, and converts the information from the three sources into information in a system format used in the system through information analysis, so that the subsequent operation is facilitated.
The short message command receiving process uses a general GSM short message protocol, comprises a GSM short message sending method and a GSM short message receiving method, is only responsible for receiving and sending short message contents, does not analyze the contents in the short messages, and is completed by an information analysis module.
The network command uses socket communication, and in order to ensure the security of the system, firstly, login verification process based on user name and password is carried out through an information analysis module, and then control signaling is interacted through a socket channel.
The method comprises the steps that local Zigbee message receiving is carried out based on a special Zigbee communication module, the Zigbee modules are divided into a central node mode and a terminal node mode, only central nodes are connected to a GSM intelligent gateway, Zigbee modules embedded in other household appliances are in the terminal node mode, a network ID is a network segment to which the Zigbee modules belong, Zigbee must be set to be in the same network segment to be capable of communicating with each other, a default network segment is FF, in order to prevent signals of a system from interfering with each other, network segments of intelligent household related equipment are set to be in other values, source address output of the central node is selected to be output, therefore, a mac address of a sending source can be seen in Zigbee data received by the central node, the terminal node sets the item to be not output, each terminal node only keeps to communicate with , and does not need to judge the mac address.
Then, the intelligent gateway analyzes the control instruction by using an information analysis module, and the module verifies whether the short message user is an authorized user through short message analysis verification, network information analysis verification and local Zigbee information analysis verification; verifying whether the network command password is correct; and verifying the household appliance information.
Short message analysis and verification process:
(1) and obtaining the mobile phone number field from the short signal code field.
(2) It is verified whether the cell phone number field corresponds to the pre-stored cell phone number .
(3) to enter the appliance control module.
(4) Otherwise the data is discarded.
Network information analysis and verification process:
(1) and analyzing the user name and the password field from the network information.
(2) The username and password fields are verified to match the pre-stored username and password fields .
(3) to enter the appliance control module.
(4) Otherwise the data is discarded.
The local Zigbee information analysis and verification process comprises the following steps:
(1) and analyzing the household appliance name from the Zigbee information.
(2) And searching the equipment list to obtain the corresponding mac address.
(3) And judging whether the mac address is found, successfully returning to 1, and failing to return to 0.
After the analysis is finished, the Zigbee module communicates with a related Zigbee module, returns data to the GSM intelligent gateway after receiving the instruction, sends the instruction to the household appliance control module through an I/O (input/output) port of the Zigbee module, and controls the working state of the switch type household appliances through the relay circuit so as to save energy.
The GSM intelligent gateway sends a command signal character string, writes the command signal character string into a serial port where the zigbee equipment is located, targets the mac address of a zigbee module, and checks a state command, wherein the command character string comprises an actual operation command; the command parameters, command contents and data headers are distinguished by separators.
After the command is sent to the terminal node, the terminal node sets the source address not to output, so the terminal node receives the general signal format.
Then the single chip computer analyzes the signal to control the household appliance.
Taking the control of the air conditioner as an example, if the household appliance with mac address ABCDEF00 receives the command, the household appliance is the air conditioner, and the status command 00 is determined to be the check status command, the household appliance does not perform any control operation, and the household appliance status is directly returned.
And transmitting the household appliance information signal in a format as follows:
&A1&1&+27&23&01&FF&0&0\r\n
among the above signals: each state value is divided by a value A1, wherein the value A represents the type of the household appliance, and the value A refers to a household appliance type definition table, wherein the value A is a value returned by a single chip microcomputer embedded in different household appliances; 1 represents the switch state of the household appliance, +27 represents the current temperature, 23 represents the temperature set by the user, 01 represents the current mode, FF is data which is not acquired, F is used for complementing, and the latter two 0 represent the wind speed and the wind direction.
The data format is a format sent by the terminal node, the source address of the terminal node is set to be not output, the default sending target is the central node, only the content of the following message is filled, and the zigbee modules of data such as the frame header, the length, the mac address and the like can be automatically added. At this time, the intelligent gateway receives the following signals:
0136ABCDEF00&A1&1&+27&23&01&FF&0&0\r\n
for example, after receiving the signal character string, the PC end completes the information of the frame header, mac address, etc., thus completing the control and result acquisition of the home appliance.
The system comprises the following components:
AC/DC power supply circuit: the 220V alternating current is converted into 5V direct current.
A level conversion module: the ZIGBEE module mainly comprises MAX232 chips and an auxiliary circuit, the 5V level is converted into 3.3V, the TTL level of the ZIGBEE module is 3.3V, the TTL level of the CPU is 5V, and two ends are conveniently butted through the two 232 chips.
A ZIGBEE module: the ship SZ05-STD and the GSM communication module gateway realize wireless communication.
A CPU module: STC89C52 singlechip.
A relay circuit: the CPU module controls the on-off state of the relay, and the relay further controls the working state of the switch household appliance.
Power supply indication: indicating the power source.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.

Claims (8)

1, A radio frequency communication method for an intelligent switch, comprising the steps of:
s1, the user sends a control instruction to the home GSM intelligent gateway through mobile equipment such as a mobile phone, and the information receiving module receives the control instruction;
s2, the intelligent gateway analyzes the control instruction by using the information analysis module;
s3, after the analysis is finished, communicating with a related Zigbee module;
s4, the Zigbee module returns data to the GSM intelligent gateway after receiving the instruction;
s5, sending the instruction to the household appliance control module through the I/O port of the Zigbee module;
and S6, the household appliance control module controls the working state of the switch type household appliance through the relay circuit, so that energy is saved.
2. The RF communication method for intelligent switch, according to claim 1, wherein the information receiving module in S1 integrates SMS reception, network information reception, and local Zigbee information reception, and converts the three sources of information into information in the format of system used in the system through information parsing, the SMS command reception process uses the general GSM SMS protocol, the network command uses socket communication, and the local Zigbee message reception is based on the dedicated Zigbee communication module.
3. The RF communication method for intelligent switch, according to claim 1, wherein the S2 message analysis module verifies whether the SMS user is an authorized user, verifies whether the network command password is correct, and verifies the household appliance information through SMS analysis verification, network message analysis verification, and local Zigbee message analysis verification.
4. The RF communication method for intelligent switch of claim 1, wherein the S5 appliance control module receives user command to enter different appliance control programs.
5. The RF communication method for intelligent switch, according to claim 1, wherein the S6 switch-type home appliances are washing machines, microwave ovens, refrigerators, televisions, air conditioners, motorized shades, and floor-sweeping robots.
6. The radio frequency communication method for intelligent switch as claimed in claim 2, wherein the short message parsing and verification process comprises obtaining a phone number field from the short signal code field, verifying whether the phone number field matches a pre-stored phone number , entering the home appliance control module in case of , and discarding data in case of not .
7. The RF communication method for intelligent switch according to claim 2, wherein the network information parsing and verification process includes parsing user name and password field from the network information, verifying whether the user name and password field corresponds to the pre-stored user name and password field , entering the household appliance control module at , and discarding the data if not .
8. The radio frequency communication method for intelligent switch according to claim 2, wherein the local Zigbee information parsing validation process includes parsing a household appliance name from Zigbee information, searching for a device list, obtaining a corresponding mac address, determining whether the mac address is found, successfully returning to 1, and failing to return to 0.
CN201910915576.3A 2019-09-26 2019-09-26 radio frequency communication method for intelligent switch Pending CN110738838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910915576.3A CN110738838A (en) 2019-09-26 2019-09-26 radio frequency communication method for intelligent switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910915576.3A CN110738838A (en) 2019-09-26 2019-09-26 radio frequency communication method for intelligent switch

Publications (1)

Publication Number Publication Date
CN110738838A true CN110738838A (en) 2020-01-31

Family

ID=69269662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910915576.3A Pending CN110738838A (en) 2019-09-26 2019-09-26 radio frequency communication method for intelligent switch

Country Status (1)

Country Link
CN (1) CN110738838A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070255250A1 (en) * 2006-04-28 2007-11-01 Moberg Sheldon B Remote monitoring for networked fluid infusion systems
CN101141336A (en) * 2006-09-07 2008-03-12 海尔集团公司 System and device of short message remote controlled network household appliance
CN101166163A (en) * 2006-10-18 2008-04-23 浙江工业大学 Secure intelligent home gateway based on mobile phone remote control
CN101436972A (en) * 2007-11-16 2009-05-20 海尔集团公司 Remote household electrical appliance control system
CN202524408U (en) * 2011-12-27 2012-11-07 成都众询科技有限公司 Wireless intelligent household network remote control system
CN102938729A (en) * 2012-10-30 2013-02-20 鸿富锦精密工业(深圳)有限公司 Remote control method for intelligent gateway, intelligent home system and appliances
CN203149804U (en) * 2013-04-07 2013-08-21 王根生 Wireless remote controller
CN103365269A (en) * 2013-06-28 2013-10-23 南京邮电大学 Wireless sensor network-based intelligent household electrical appliance multimode remote monitoring system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070255250A1 (en) * 2006-04-28 2007-11-01 Moberg Sheldon B Remote monitoring for networked fluid infusion systems
CN101141336A (en) * 2006-09-07 2008-03-12 海尔集团公司 System and device of short message remote controlled network household appliance
CN101166163A (en) * 2006-10-18 2008-04-23 浙江工业大学 Secure intelligent home gateway based on mobile phone remote control
CN101436972A (en) * 2007-11-16 2009-05-20 海尔集团公司 Remote household electrical appliance control system
CN202524408U (en) * 2011-12-27 2012-11-07 成都众询科技有限公司 Wireless intelligent household network remote control system
CN102938729A (en) * 2012-10-30 2013-02-20 鸿富锦精密工业(深圳)有限公司 Remote control method for intelligent gateway, intelligent home system and appliances
CN203149804U (en) * 2013-04-07 2013-08-21 王根生 Wireless remote controller
CN103365269A (en) * 2013-06-28 2013-10-23 南京邮电大学 Wireless sensor network-based intelligent household electrical appliance multimode remote monitoring system and method

Similar Documents

Publication Publication Date Title
CN203178784U (en) Intelligent household control system based on Internet of Things
CN108200541B (en) Bluetooth control terminal based on Internet of things
CN204810290U (en) Novel wireless Intelligence system
CN204496184U (en) A kind of Internet of Things house control system based on ZIGBEE
CN203616619U (en) Intelligent household system based on Zigbee
CN102594637A (en) Refrigerator-based smart home control system
CN108173728A (en) Intelligent appliance equipment and intelligent appliance system
CN105163364A (en) Intelligent device WiFi connection system and intelligent device WiFi connection method based on intelligent gateway
CN204632096U (en) A kind of all-directional infrared controller
CN204331416U (en) Supply socket identifies the device of electric equipment automatically
Ni et al. Implementation of wireless gateway for smart home
CN105465954A (en) Central air-conditioning ad-hoc network control system based on Zigbee modules and wifi module
CN105511345A (en) Zigbee IOT (Internet of Things) module and low-power-consumption control method therefor
CN205921804U (en) Smart lighting control system
CN104410656A (en) A smart home system controlled through web
Li et al. A kind of intelligent lighting control system using the EnOcean network
CN103762719A (en) Intelligent switch cabinet
CN109286546A (en) A kind of multiple spot access type intelligent interconnection equipment and interconnected communication method
CN105511429A (en) Household IOT (Internet of Things) control system, application method, and building method
CN205158614U (en) Remote photovoltaic data acquisition and transmission device
CN203732953U (en) Intelligent home control system
CN110738838A (en) radio frequency communication method for intelligent switch
CN202503538U (en) Smart home control system based on refrigerator
CN205028063U (en) Smart home system
CN105182943A (en) Intelligent building monitoring system based on Android and power carrier

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

Application publication date: 20200131

RJ01 Rejection of invention patent application after publication