CN106338974B - A method of so that WiFi module is adapted to plurality of devices communications protocol - Google Patents

A method of so that WiFi module is adapted to plurality of devices communications protocol Download PDF

Info

Publication number
CN106338974B
CN106338974B CN201610779649.7A CN201610779649A CN106338974B CN 106338974 B CN106338974 B CN 106338974B CN 201610779649 A CN201610779649 A CN 201610779649A CN 106338974 B CN106338974 B CN 106338974B
Authority
CN
China
Prior art keywords
wifi module
equipment
integrated communication
command
communications protocol
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.)
Active
Application number
CN201610779649.7A
Other languages
Chinese (zh)
Other versions
CN106338974A (en
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.)
Hangzhou Bolian Intelligent Technology Co., Ltd.
Original Assignee
Hangzhou Gubei Electronic 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 Hangzhou Gubei Electronic Technology Co Ltd filed Critical Hangzhou Gubei Electronic Technology Co Ltd
Priority to CN201610779649.7A priority Critical patent/CN106338974B/en
Publication of CN106338974A publication Critical patent/CN106338974A/en
Application granted granted Critical
Publication of CN106338974B publication Critical patent/CN106338974B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)

Abstract

The invention discloses a kind of methods for enabling WiFi module to be adapted to plurality of devices communications protocol, include the following steps:Step 1, related personnel issues the request of control equipment to WiFi module;Step 2, WiFi module issues querying command request to equipment;Step 3, after equipment receives querying command, integrated communication command is generated;Step 4, equipment returns to integrated communication order to WiFi module, and WiFi module receives integrated communication order;Step 5, WiFi module extracts and parses integrated communication command, obtains the characteristic information of equipment, and then WiFi module is adapted to according to characteristic information with equipment completion;Step 6, related personnel issues the various functions that instruction control equipment realizes equipment by WiFi module.The method for enabling WiFi module to be adapted to plurality of devices communications protocol realizes the purpose of a WiFi module control multiple equipment, and related personnel's operation is greatly simple, improves efficiency, reduces costs.And this method is practical, highly-safe.

Description

A method of so that WiFi module is adapted to plurality of devices communications protocol
Technical field
The present invention relates to smart home field, refer in particular to a kind of WiFi module be enable to be adapted to plurality of devices communications protocol Method.
Background technique
Currently, popularizing with smart home, more and more people are remotely controlled by terminals such as mobile phone plane plate computers Equipment in family, but since each electronic equipment is due to producer, the difference of product type, lead to the communications protocol of each equipment All not quite alike, distribution order, factory survey order, data reporting schemes(Period, triggering, active), data report time interval, super When re-transmission time, Retransmission timeout number, triggering report position, reported data length etc. to be also not quite similar, thus each equipment Wifi module it is all different, cannot be compatible, it is difficult to share.China Patent Publication No. CN104345661A, publication date On 2 11st, 2015, one kind was disclosed in the patent of invention of entitled " intelligent appliance control system based on WIFI " and is based on The intelligent appliance control system of WIFI, including power supply, central processing unit, infrared communication interface, the power supply, the infrared communication Interface is connect with the central processing unit respectively, it is characterised in that further includes WIFI interface, power line, embedded gateway, intelligence Wiring board, the WIFI interface, power line are connect with the central processing unit respectively, and the embedded gateway, the intelligence are inserted Line plate is connect with the WIFI interface respectively, and the Intelligent extension socket is connect with household electrical appliance, the Intelligent extension socket include after Electric appliance, single-chip microcontroller, cyberdog.Be disadvantageous in that, the invention there is still a need for communications protocol is set in advance could be with multiple intelligence Household electrical appliances are communicated, if there is new intelligent appliance, need to re-write communications protocol, using upper greatly inconvenience, are not able to satisfy Related personnel actually uses demand.
Summary of the invention
The purpose of the present invention is overcome in the prior art each electronic equipment caused due to producer, the difference of product type The communications protocol of each equipment is different, and using the disadvantage that a WiFi module control all devices are more difficult, providing one kind makes The method that WiFi module can be adapted to plurality of devices communications protocol.
The purpose of the present invention is be achieved by following technical proposals:
A method of so that WiFi module is adapted to plurality of devices communications protocol, includes the following steps:
Step 1, related personnel issues the request of control equipment to WiFi module;
Step 2, WiFi module issues querying command request to equipment;
Step 3, after equipment receives querying command, integrated communication command is generated;
Step 4, equipment returns to integrated communication order to WiFi module, and WiFi module receives integrated communication order;
Step 5, WiFi module extracts and parses integrated communication command, obtains the characteristic information of equipment, then WiFi module It is adapted to according to characteristic information with equipment completion;
Step 6, related personnel issues the various functions that instruction control equipment realizes equipment by WiFi module.
Integrated communication order includes the various communication informations of equipment, after integrated communication order is extracted parsing by WiFi module, Just it is obtained with the information of equipment, so as to complete to be adapted to according to the information of equipment, related personnel can pass through WiFi Module controls equipment.Since WiFi module can obtain the information of each equipment by obtaining integrated communication order, to realize The purpose of one WiFi module control multiple equipment, related personnel's operation is greatly simple, improves efficiency, reduces costs.
As a preferred embodiment, the integrated communication order includes frame head, reset command, resets successfully to return and order Enable, network state return command, factory survey order, data reporting schemes, trigger report position and postamble.
As a preferred embodiment, the integrated communication order further includes Retransmission timeout time and Retransmission timeout number. Purpose of this design be that of avoiding communication it is unsmooth when, setting retransmit ensure WiFi module can by repeatedly communicate obtain it is integrated logical News order.
As a preferred embodiment, the reset command of the integrated communication order, reset successfully return command, network-like State return command, factory's survey order, data reporting schemes, triggering report the every of position, Retransmission timeout time and Retransmission timeout number The sequence number for distinguishing command type is equipped with before a data.The effect of sequence number is that WiFi module is enable clearly to distinguish each A specific length of order prevents misidentification from causing to extract the integrated communication command failure of parsing.
As a preferred embodiment, the integrated communication command checksum and judge that the whether correct mode of data is CRC Verification.
As a preferred embodiment, the integrated communication order generated in the step 3 is that equipment is added by encryption rule Integrated communication order after close, in the step 5 WiFi module extract and parse integrated communication command include WiFi module to Related personnel can obtain encryption rule, extract again after encrypted integrated communication order is decrypted and parse integrated communication life It enables.This design is to prevent other WiFi modules from controlling equipment, and only related personnel provides encryption rule and can just crack and adds Close integrated communication order, improves safety.
The invention has the advantages that the method for enabling WiFi module to be adapted to plurality of devices communications protocol realizes one WiFi module controls the purpose of multiple equipment, and related personnel's operation is greatly simple, improves efficiency, reduces costs.And we Method is practical, highly-safe.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the invention;
Fig. 2 is integrated communication order schematic diagram of the invention.
Specific embodiment
The present invention is further described with reference to the accompanying drawings and examples.
Embodiment:A method of so that WiFi module is adapted to plurality of devices communications protocol, flow chart as shown in Figure 1, Include the following steps:
Step 1, related personnel issues the request of control equipment to WiFi module;
Step 2, WiFi module issues querying command request to equipment;
Step 3, after equipment receives querying command, integrated communication command is generated;
Step 4, equipment returns to integrated communication order to WiFi module, and WiFi module receives integrated communication order;
Step 5, WiFi module extracts and parses integrated communication command, obtains the characteristic information of equipment, then WiFi module It is adapted to according to characteristic information with equipment completion;
Step 6, related personnel issues the various functions that instruction control equipment realizes equipment by WiFi module.
The integrated communication order is as shown in Fig. 2, including frame head, reset command, resetting successfully return command, network-like State return command, factory's survey order, data reporting schemes, triggering report position, Retransmission timeout time, Retransmission timeout number and are used for The postamble of verification.The reset command of the integrated communication order resets successfully return command, network state return command, factory Survey order, data reporting schemes are equipped with before triggering each data for reporting position, Retransmission timeout time and Retransmission timeout number For distinguishing the sequence number of command type.The integrated communication command checksum and judge that the whether correct mode of data is CRC Verification.Integrated communication order includes the various communication informations of equipment, after integrated communication order is extracted parsing by WiFi module, just The information of equipment can be obtained, so as to complete to be adapted to according to the information of equipment, related personnel can pass through WiFi module Control equipment.Since WiFi module can obtain the information of each equipment by obtaining integrated communication order, to realize one The purpose of a WiFi module control multiple equipment, related personnel's operation is greatly simple, improves efficiency, reduces costs.
By taking WiFi module controls Broadlink intelligence SPCC equipment as an example, WiFi module issues querying command: A5A55A5A000B00000000, then equipment returns to integrated communication order F55F01A5A55A5A98C1E8030000000002A5A55A5A99C1E9030000000003A5A55A5AA2C1EC03040 000000200000004A5A55A5AA3C1EC03040000000300000005A5A55A5AA4C1F403000000000690 010702000803000906000205080B0C0F64EB, WiFi module start to extract and parse integrated communication command, specifically Process is:
1. whether equipment verifies first and judges integrated communication order correct, using CRC check, multinomial 0x8408, Initial value is 0xffff;
2. removing frame head F55F and command type sn: 01,02,03…;
3. extracting reset command:A5 A5 5A 5A 98 C1 E8 03 00 00 00 00;
4. extraction resets successfully return command:A5 A5 5A 5A 99 C1 E9 03 00 00 00 00;
5. filling in network state return command:A5 A5 5A 5A A2 C1 EC 03 04 00 00 00 02 00 00 00, expression has been coupled to AP and A5 A5 5A 5A A3 C1 EC 03 04 00 00 00 03 00 00 00, table Show and is normally connected to cloud service;
6. filling in factory surveys order:A5 A5 5A 5A A4 C1 F4 03 00 00 00 00;
7. filling in the Retransmission timeout time:90 01, expression re-transmission time is 400ms;
8. filling in data reporting schemes:02 00, indicate that triggering reports;
9. filling in Retransmission timeout number:03 00, indicate that number is 3 times;
10. filling in triggering reports position:06 00 02 05 08 0B 0C 0F indicate that trigger position is:2,5,8,11, 12,15 。

Claims (5)

1. a kind of method for enabling WiFi module to be adapted to plurality of devices communications protocol, characterized in that include the following steps:
Step 1, related personnel issues the request of control equipment to WiFi module;
Step 2, WiFi module issues querying command request to equipment;
Step 3, after equipment receives querying command, integrated communication command is generated;
Step 4, equipment returns to integrated communication order to WiFi module, and WiFi module receives integrated communication order;
Step 5, WiFi module extracts and parses integrated communication command, obtains the characteristic information of equipment, then WiFi module according to Characteristic information is adapted to equipment completion;
Step 6, related personnel issues the various functions that instruction control equipment realizes equipment by WiFi module;
The integrated communication order generated in the step 3 is that equipment passes through the encrypted integrated communication order of encryption rule, institute WiFi module extracts and parses integrated communication command to include WiFi module can obtain encryption rule to related personnel in the step 5 stated Then, it is extracted again after encrypted integrated communication order being decrypted and parses integrated communication command.
2. a kind of method for enabling WiFi module to be adapted to plurality of devices communications protocol according to claim 1, characterized in that The integrated communication order includes frame head, reset command, resets successfully return command, network state return command, factory's survey life Enable, data reporting schemes, triggering report position and postamble.
3. a kind of method for enabling WiFi module to be adapted to plurality of devices communications protocol according to claim 2, characterized in that The integrated communication order further includes Retransmission timeout time and Retransmission timeout number.
4. a kind of method for enabling WiFi module to be adapted to plurality of devices communications protocol according to claim 3, characterized in that The reset command of the integrated communication order resets successfully return command, network state return command, factory's survey order, data Reporting schemes are equipped with before triggering each data for reporting position, Retransmission timeout time and Retransmission timeout number for distinguishing life Enable the sequence number of type.
5. a kind of method for enabling WiFi module to be adapted to plurality of devices communications protocol according to Claims 2 or 3 or 4, It is characterized in, the integrated communication command checksum and judges that the whether correct mode of data is CRC check.
CN201610779649.7A 2016-08-31 2016-08-31 A method of so that WiFi module is adapted to plurality of devices communications protocol Active CN106338974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610779649.7A CN106338974B (en) 2016-08-31 2016-08-31 A method of so that WiFi module is adapted to plurality of devices communications protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610779649.7A CN106338974B (en) 2016-08-31 2016-08-31 A method of so that WiFi module is adapted to plurality of devices communications protocol

Publications (2)

Publication Number Publication Date
CN106338974A CN106338974A (en) 2017-01-18
CN106338974B true CN106338974B (en) 2018-11-23

Family

ID=57823570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610779649.7A Active CN106338974B (en) 2016-08-31 2016-08-31 A method of so that WiFi module is adapted to plurality of devices communications protocol

Country Status (1)

Country Link
CN (1) CN106338974B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106992892A (en) * 2017-05-10 2017-07-28 广东美的制冷设备有限公司 Agreement input method and device based on WIFI module

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098345A (en) * 2006-06-26 2008-01-02 海尔集团公司 Communication interface and communication method for network household electrical appliance
EP1942618A2 (en) * 2007-01-04 2008-07-09 Palo Alto Research Institute Incorporated Distributed determination of dynamic frame sizes in a network
CN102314764A (en) * 2011-09-13 2012-01-11 中兴通讯股份有限公司 Remote control terminal, method for realizing remote control and system thereof
CN102843315A (en) * 2012-08-31 2012-12-26 鸿富锦精密工业(深圳)有限公司 Intelligent home network system and intelligent gateway thereof
CN103412832A (en) * 2013-08-27 2013-11-27 深圳市视维科技有限公司 Automatic WIFI (Wireless Fidelity) adaptation method
CN103945369A (en) * 2013-01-18 2014-07-23 杭州古北电子科技有限公司 Internet access configuration method for WIFI device by checking length of WIFI data packets
CN103973762A (en) * 2013-11-21 2014-08-06 成都力淼科技有限公司 Method for communication between host and intelligent terminal of intelligent home system
CN105049227A (en) * 2015-06-12 2015-11-11 杭州德澜科技有限公司 Wifi non-networking control and setting method
CN105739464A (en) * 2016-01-27 2016-07-06 四川长虹电器股份有限公司 Main control communication method used for intelligent household electrical appliances
CN105843046A (en) * 2016-03-17 2016-08-10 四川长虹电器股份有限公司 Intelligent household electrical appliance master control communication method and system thereof

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098345A (en) * 2006-06-26 2008-01-02 海尔集团公司 Communication interface and communication method for network household electrical appliance
EP1942618A2 (en) * 2007-01-04 2008-07-09 Palo Alto Research Institute Incorporated Distributed determination of dynamic frame sizes in a network
CN102314764A (en) * 2011-09-13 2012-01-11 中兴通讯股份有限公司 Remote control terminal, method for realizing remote control and system thereof
CN102843315A (en) * 2012-08-31 2012-12-26 鸿富锦精密工业(深圳)有限公司 Intelligent home network system and intelligent gateway thereof
CN103945369A (en) * 2013-01-18 2014-07-23 杭州古北电子科技有限公司 Internet access configuration method for WIFI device by checking length of WIFI data packets
CN103412832A (en) * 2013-08-27 2013-11-27 深圳市视维科技有限公司 Automatic WIFI (Wireless Fidelity) adaptation method
CN103973762A (en) * 2013-11-21 2014-08-06 成都力淼科技有限公司 Method for communication between host and intelligent terminal of intelligent home system
CN105049227A (en) * 2015-06-12 2015-11-11 杭州德澜科技有限公司 Wifi non-networking control and setting method
CN105739464A (en) * 2016-01-27 2016-07-06 四川长虹电器股份有限公司 Main control communication method used for intelligent household electrical appliances
CN105843046A (en) * 2016-03-17 2016-08-10 四川长虹电器股份有限公司 Intelligent household electrical appliance master control communication method and system thereof

Also Published As

Publication number Publication date
CN106338974A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
CN103973748B (en) Intelligent domestic system and its monitoring method
CN103078904B (en) Household electric appliance control method and household electrical appliances thereof and server
CN103384367B (en) Equipment searching method
WO2015106702A1 (en) Cloud platform control method, based on sdmp protocol, for smart device
WO2016058366A1 (en) Smart home appliance control method and home control center
WO2016058367A1 (en) Smart home control system
US20110230236A1 (en) Integrated System for Remote Monitoring Home Appliances by Cell Phone
CN103164938B (en) The method of pairing, remote controller and controlled device between a kind of equipment
CN104426750A (en) Method, equipment and system for instant messaging
CN103236960A (en) Method and system for data interaction between home server and plurality of terminals
CN104407599B (en) Portable intelligent home controller and intelligent home control system
CN204215241U (en) A kind of soymilk machine
CN103716129A (en) Internet of Things-used wireless communication method and Internet of Things-used wireless communication apparatus
CN102130802A (en) Internet of things home appliance management system and management method
WO2013131477A1 (en) Remote monitoring device and method
CN107926075A (en) The system and method for supporting the data communication under isomerous environment
CN106781422A (en) A kind of household electric appliances telecontrol management system
CN104811358A (en) Wireless communication method of network household appliance
CN106033641A (en) A multifunctional intelligent control system achieved by a power line carrier and a controlling method thereof
CN103442250A (en) System and method for debugging television
CN104217560A (en) All-purpose remote controller module used for smartphone and operation method thereof
CN105093982A (en) Method and server associating sweeping robot with terminal, and system
CN106338974B (en) A method of so that WiFi module is adapted to plurality of devices communications protocol
CN206640595U (en) A kind of home gateway
CN106331284A (en) Communication system based on WIFI Internet of things technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
CB03 Change of inventor or designer information

Inventor after: Yao Bo

Inventor after: Liu Zongru

Inventor after: Li Zhiwei

Inventor after: Jin Chao

Inventor after: Quan Zechang

Inventor after: Li Feilong

Inventor before: Yao Bo

COR Change of bibliographic data
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310000 Room 101, 1st Floor, Block C, No. 57, Changhe Street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Bolian Intelligent Technology Co., Ltd.

Address before: Room 106, Building No. 1, 611 Jianghong Road, Changhe Street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Gubei Electronic Technology Co., Ltd.

CP03 Change of name, title or address