CN106338974A - Method for enabling WiFi module to adapt to communication protocols of different devices - Google Patents

Method for enabling WiFi module to adapt to communication protocols of different devices Download PDF

Info

Publication number
CN106338974A
CN106338974A CN201610779649.7A CN201610779649A CN106338974A CN 106338974 A CN106338974 A CN 106338974A CN 201610779649 A CN201610779649 A CN 201610779649A CN 106338974 A CN106338974 A CN 106338974A
Authority
CN
China
Prior art keywords
wifi module
integrated communication
command
equipment
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.)
Granted
Application number
CN201610779649.7A
Other languages
Chinese (zh)
Other versions
CN106338974B (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

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by the network communication
    • G05B19/4186Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by the network communication by protocol, e.g. MAP, TOP
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • 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)
  • Mobile Radio Communication Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)

Abstract

The invention discloses a method for enabling a WiFi module to adapt to communication protocols of different devices. The method comprises the following steps that 1) a related staff emits a device control request to the WiFi module; 2) the WiFi module emits a query command request to devices; 3) the device generates an integrated communication command after receiving a query command; 4) the device returns the integrated communication command to the WiFi module, and the WiFi module receives the integrated communication command; 5) the WiFi module extracts and analyzes the integrated communication command, obtains feature information of the device, and adapts to the device according to the feature information; and 6) the related staff emits the instruction via the WiFi module to control the devices and further realize different functions of the devices. According to the method, one WiFi module can control multiple devices, operation of the related staff is very simple, the efficiency is improved, the cost is reduce, and the method is highly practical and safe.

Description

A kind of method enabling wifi module to be adapted to plurality of devices communications protocol
Technical field
The present invention relates to can only household field, refer in particular to a kind of enable wifi module to be adapted to plurality of devices communications protocol Method.
Background technology
At present, with the popularization of smart home, increasing people is by terminals such as mobile phone plane plate computers come remotely control Equipment in family, but because each electronic equipment is due to the difference of producer, product type, lead to the communications protocol of each equipment All not quite alike, order is surveyed in distribution order, factory, data reporting schemes (cycle, triggering, actively), data report time interval, surpass When re-transmission time, Retransmission timeout number of times, triggering report position, reported data length etc. to be also not quite similar, thus each equipment Wifi module all different it is impossible to compatible it is difficult to shared.China Patent Publication No. cn104345661a, publication date On 2 11st, 2015, disclose one kind in the patent of invention of entitled " intelligent appliance control system based on wifi " and be based on The intelligent appliance control system of wifi, including power supply, central processing unit, infrared communication interface, described power supply, described infrared communication Interface is connected with described central processing unit respectively it is characterised in that also including wifi interface, electric lines of force, embedded gateway, intelligence Wiring board, described wifi interface, electric lines of force are connected with described central processing unit respectively, and described embedded gateway, described intelligence are inserted Line plate is connected with described wifi interface respectively, and described Intelligent extension socket is connected with household electrical appliance, and described Intelligent extension socket includes continuing Electrical equipment, single-chip microcomputer, cyberdog.Be disadvantageous in that, this invention still need in advance set communications protocol could be with multiple intelligence Household electrical appliances are communicated, if there being new intelligent appliance, need to re-write communications protocol, using upper greatly inconvenience it is impossible to meet The actually used demand of related personnel.
Content of the invention
The purpose of the present invention is to overcome each electronic equipment in prior art due to the difference of producer, product type, to lead to The communications protocol of each equipment is different, controls the more difficult shortcoming of all devices using a wifi module, provides one kind to make The method that wifi module can be adapted to plurality of devices communications protocol.
The purpose of the present invention is to be achieved by following technical proposals:
A kind of method enabling wifi module to be adapted to plurality of devices communications protocol, comprises the following steps:
Step 1, related personnel sends the request of control device to wifi module;
Step 2, wifi module sends querying command request to equipment;
Step 3, after equipment accepts querying command, generates integrated communication command;
Step 4, equipment returns integrated communication order to wifi module, and wifi module receives integrated communication order;
Step 5, integrated communication command is extracted and parsed to wifi module, obtains the characteristic information of equipment, then wifi module according to Characteristic information completes to be adapted to equipment;
Step 6, related personnel sends, by wifi module, the various functions that instruction control device realizes equipment.
Integrated communication order comprises the various communication informations of equipment, and integrated communication order is extracted after parsing by wifi module, Just it is obtained with the information of equipment, such that it is able to complete to be adapted to according to the information of equipment, related personnel just can pass through wifi Module control device.Because wifi module can obtain the information of each equipment by obtaining integrated communication order, thus realizing One wifi module controls the purpose of multiple equipment, and related personnel's operation is greatly simple, improves efficiency, reduces cost.
As a kind of preferred version, described integrated communication order includes frame head, reset command, resetting successfully returns life Make, network state return command, factory survey order, data reporting schemes, trigger report position and postamble.
As a kind of preferred version, described integrated communication order also includes Retransmission timeout time and Retransmission timeout number of times. The purpose of this design be that of avoiding communication smooth when, it is integrated logical that setting re-transmission guarantees that wifi module can be obtained by multiple communication News order.
As a kind of preferred version, the described reset command of 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 of times It is equipped with the serial number for distinguishing command type before individual data.The effect of serial number is to enable wifi module clearly to distinguish each The specific length of individual order, prevents misidentification from causing to extract parsing integrated communication command failure.
As a kind of preferred version, described integrated communication command checksum and judge whether correctly mode is crc to data Verification.
As a kind of preferred version, the integrated communication order generating in described step 3 is added by encryption rule for equipment Integrated communication order after close, in described step 5 wifi module extract and parse integrated communication command include wifi module to Related personnel can obtain encryption rule, extract again and parse integrated communication life after the integrated communication order after encryption is decrypted Order.This design is to prevent other wifi module that equipment is controlled, and only related personnel provides encryption rule just can crack and adds Close integrated communication order, improves safety.
The invention has the beneficial effects as follows, enable the method that wifi module is adapted to plurality of devices communications protocol to achieve one Wifi module controls the purpose of multiple equipment, and related personnel's operation is greatly simple, improves efficiency, reduces cost.And we Method is practical, safe.
Brief description
Fig. 1 is a kind of flow chart of the present invention;
Fig. 2 is the integrated communication order schematic diagram of the present invention.
Specific embodiment
With reference to the accompanying drawings and examples the present invention is further described.
Embodiment: a kind of method enabling wifi module to be adapted to plurality of devices communications protocol, its flow chart as shown in figure 1, Comprise the following steps:
Step 1, related personnel sends the request of control device to wifi module;
Step 2, wifi module sends querying command request to equipment;
Step 3, after equipment accepts querying command, generates integrated communication command;
Step 4, equipment returns integrated communication order to wifi module, and wifi module receives integrated communication order;
Step 5, integrated communication command is extracted and parsed to wifi module, obtains the characteristic information of equipment, then wifi module according to Characteristic information completes to be adapted to equipment;
Step 6, related personnel sends, by wifi module, the various functions that instruction control device realizes equipment.
Described integrated communication order is as shown in Fig. 2 include frame head, reset command, reset successfully return command, network-like State return command, factory's survey order, data reporting schemes, triggering report position, Retransmission timeout time, Retransmission timeout number of times and are used for The postamble of verification.The described reset command of integrated communication order, reset successfully return command, network state return command, factory Survey order, data reporting schemes, trigger report each data of position, Retransmission timeout time and Retransmission timeout number of times before be equipped with For distinguishing the serial number of command type.Described integrated communication command checksum and judge whether correctly mode is crc to data Verification.Integrated communication order comprises the various communication informations of equipment, and integrated communication order is extracted after parsing by wifi module, just The information of equipment can be obtained, such that it is able to complete to be adapted to according to the information of equipment, related personnel just can pass through wifi module Control device.Because wifi module can obtain the information of each equipment by obtaining integrated communication order, it is achieved thereby that one Individual wifi module controls the purpose of multiple equipment, and related personnel's operation is greatly simple, improves efficiency, reduces cost.
Controlled as a example broadlink intelligence spcc equipment by wifi module, wifi module issues querying command: A5a55a5a000b00000000, then equipment return integrated communication order f55f01a5a55a5a98c1e8030000000002a5a55a5a99c1e9030000000003a5a55a5aa2c1ec03040 000000200000004a5a55a5aa3c1ec03040000000300000005a5a55a5aa4c1f403000000000690 010702000803000906000205080b0c0f64eb, wifi module starts to extract and parse integrated communication command, specifically Process is:
1. equipment verifies first and judges whether integrated communication order is correct, and using crc verification, multinomial is 0x8408, initially It is worth for 0xffff;
2. remove frame head f55f and command type sn: 01,02,03 ...;
3. extraction reset command: a5 a5 5a 5a 98 c1 e8 03 00 00 00 00;
4. extract the successfully return command that resets: a5 a5 5a 5a 99 c1 e9 03 00 00 00 00;
5. fill in network state return command: a5 a5 5a 5a a2 c1 ec 03 04 00 00 00 02 00 00 00, Represent and have been coupled to ap, and a5 a5 5a 5a a3 c1 ec 03 04 00 00 00 03 00 00 00, represent Through normally linking cloud service;
6. fill in factory and survey order: a5 a5 5a 5a a4 c1 f4 03 00 00 00 00;
7. fill in the Retransmission timeout time: 90 01, expression re-transmission time is 400ms;
8. fill in data reporting schemes: 02 00, represent that triggering reports;
9. fill in Retransmission timeout number of times: 03 00, represent that number of times is 3 times;
10. fill in triggering and report position: 06 00 02 05 08 0b 0c 0f, represent that trigger position is: 2,5,8,11,12, 15 .

Claims (6)

1. a kind of method enabling wifi module to be adapted to plurality of devices communications protocol, is characterized in that, comprises the following steps:
Step 1, related personnel sends the request of control device to wifi module;
Step 2, wifi module sends querying command request to equipment;
Step 3, after equipment accepts querying command, generates integrated communication command;
Step 4, equipment returns integrated communication order to wifi module, and wifi module receives integrated communication order;
Step 5, integrated communication command is extracted and parsed to wifi module, obtains the characteristic information of equipment, then wifi module according to Characteristic information completes to be adapted to equipment;
Step 6, related personnel sends, by wifi module, the various functions that instruction control device realizes equipment.
2. a kind of method enabling wifi module to be adapted to plurality of devices communications protocol according to claim 1, is characterized in that, Described integrated communication order includes frame head, reset command, reset successfully return command, network state return command, factory survey life Make, data reporting schemes, triggering report position and postamble.
3. a kind of method enabling wifi module to be adapted to plurality of devices communications protocol according to claim 2, is characterized in that, Described integrated communication order also includes Retransmission timeout time and Retransmission timeout number of times.
4. a kind of method enabling wifi module to be adapted to plurality of devices communications protocol according to claim 3, is characterized in that, The described reset command of integrated communication order, reset successfully return command, network state return command, factory survey order, data Reporting schemes, triggering are equipped with for distinguishing life before reporting each data of position, Retransmission timeout time and Retransmission timeout number of times Make the serial number of type.
5. a kind of method enabling wifi module to be adapted to plurality of devices communications protocol according to Claims 2 or 3 or 4, its Feature is, described integrated communication command checksum and judge that the whether correct mode of data is that crc verifies.
6. a kind of method enabling wifi module to be adapted to plurality of devices communications protocol according to claim 1, is characterized in that, Integrated communication order after the integrated communication order of generation is encrypted by encryption rule for equipment in described step 3, described In step 5, wifi module is extracted and is parsed integrated communication command and include wifi module and can obtain encryption rule to related personnel, right Integrated communication order after encryption is extracted after being decrypted again and is parsed integrated communication command.
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 true CN106338974A (en) 2017-01-18
CN106338974B 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)

Cited By (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

Cited By (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

Also Published As

Publication number Publication date
CN106338974B (en) 2018-11-23

Similar Documents

Publication Publication Date Title
US10275967B2 (en) Method, system, and computer-readable medium relating to internet of things-enabled remote controls
WO2015106702A1 (en) Cloud platform control method, based on sdmp protocol, for smart device
CN106408923A (en) A remote wireless infrared transponding control system based on cloud infrared code base data
CN103442250B (en) Television set debugging system and method
US20110230236A1 (en) Integrated System for Remote Monitoring Home Appliances by Cell Phone
CN102739484B (en) The driver update method of equipment
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
US20150311649A1 (en) Method and system to automatically identify electrical devices
CN103259781A (en) Data transmission system based on image recognition
CN104539712A (en) Intelligent household appliance data transmission method
CN104467187A (en) Intelligent power grid remote monitoring system based on IOS
CN106033641A (en) A multifunctional intelligent control system achieved by a power line carrier and a controlling method thereof
WO2013131477A1 (en) Remote monitoring device and method
CN103679230A (en) Device, method and system for programming product sequence codes
CN107481504A (en) A kind of method that home wiring control linkage is realized based on infrared transponder
CN104217560A (en) All-purpose remote controller module used for smartphone and operation method thereof
CN106330632A (en) Intelligent home Internet of Things communication device
CN206640595U (en) A kind of home gateway
CN106338974B (en) A method of so that WiFi module is adapted to plurality of devices communications protocol
CN103997533A (en) System and method for remotely maintaining dynamic terminals based on wireless network
CN102905257B (en) Intelligent-terminal-based non-contact information transmission system and transmission method thereof
CN203872292U (en) Wireless cloud monitor with infrared forwarding function
CN104539493B (en) Based on the intelligent terminal that USB interface is realized to the managing and control system and its implementation of intelligent appliance
CN102611759A (en) Internet of things (IOT) household appliance management system and IOT household appliance management method

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
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.