CN104539712A - Intelligent household appliance data transmission method - Google Patents
Intelligent household appliance data transmission method Download PDFInfo
- Publication number
- CN104539712A CN104539712A CN201410855693.2A CN201410855693A CN104539712A CN 104539712 A CN104539712 A CN 104539712A CN 201410855693 A CN201410855693 A CN 201410855693A CN 104539712 A CN104539712 A CN 104539712A
- Authority
- CN
- China
- Prior art keywords
- byte
- intelligent appliance
- data
- control command
- message
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 51
- 239000008264 clouds Substances 0.000 claims abstract description 25
- 238000004891 communication Methods 0.000 claims abstract description 15
- 235000010384 tocopherol Nutrition 0.000 claims abstract description 4
- 235000019731 tricalcium phosphate Nutrition 0.000 claims abstract description 4
- 230000000875 corresponding Effects 0.000 claims description 20
- 230000001839 systemic circulation Effects 0.000 claims description 7
- 230000001186 cumulative Effects 0.000 claims description 3
- 280000255884 Dispatching companies 0.000 abstract 2
- 229920001276 Ammonium polyphosphate Polymers 0.000 description 1
- 280000334252 Appliance Control Technology companies 0.000 description 1
- 230000000712 assembly Effects 0.000 description 1
- 238000010586 diagrams Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering processes Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000000034 methods Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network-specific arrangements or communication protocols supporting networked applications
- H04L67/10—Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network-specific arrangements or communication protocols supporting networked applications
- H04L67/12—Network-specific arrangements or communication protocols supporting networked applications adapted for proprietary or special purpose networking environments, e.g. medical networks, sensor networks, networks in a car or remote metering networks
- H04L67/125—Network-specific arrangements or communication protocols supporting networked applications adapted for proprietary or special purpose networking environments, e.g. medical networks, sensor networks, networks in a car or remote metering networks involving the control of end-device applications over a network
Abstract
Description
Technical field
The present invention relates to intelligent household appliance control technology field, particularly relate to a kind of intelligent appliance data transmission method.
Background technology
The intellectuality of household electrical appliances is not only started with from household appliances itself, the more important thing is and by household electrical appliances accessing Internet, will carry out Long-distance Control.Now, WIFI has been that the standard of the mobile terminal such as smart mobile phone, panel computer, notebook computer is instantly equipped with, by the portable equipment such as smart mobile phone and panel computer, Long-distance Control is carried out to intelligent appliance, and understand the information such as the running status of household electrical appliances in real time, be the most easily receive and most convenient use concerning consumer.General intelligence appliance system is made up of the electric-controlled plate subsystem in intelligent appliance, WIFI module and backstage cloud server and mobile phone A PP.Electric-controlled plate is the temperature collected, local state, the data such as alert data and user habit are uploaded to far-end server on the one hand by WIFI module, be sent on the other hand on the mobile phone connected in local area network (LAN), user opens mobile phone A PP and obtains man-machine interaction data by high in the clouds or Intranet connection device, and can control set device parameter by mobile phone A PP.
But intelligent appliance, transfer of data between high in the clouds and mobile phone three communication nodes must be undertaken by certain coding, and adopt which kind of coding form to determine stability and the efficiency of transmission of transfer of data.
Therefore, study a kind of efficiency of transmission high, and data and the stable data transmission method of command are problem demanding prompt solutions.
Summary of the invention
Based on this, be necessary to limit efficiency of transmission and the insecure problem of transmission stability in intelligent appliance high in the clouds under current condition and mobile phone terminal data transmission procedure owing to encoding, there is provided a kind of efficiency of transmission high, and the intelligent appliance data transmission method that data, command are stable.
For realizing a kind of intelligent appliance data transmission method that the object of the invention provides, be applicable to the transfer of data in wireless telecommunications and RS232 wire communication, comprise the transfer of data between mobile terminal and intelligent appliance, between mobile terminal and high in the clouds and between intelligent appliance and high in the clouds, the method carries out transfer of data to the data that will transmit in units of frame message, and frame message dispatches packet header by equipment message and original message two parts form wherein:
Described original message comprises frame head identification byte, frame length byte, intelligent appliance protocol version byte, logo byte, product type byte, product type byte, mobile phone command word byte, intelligent appliance control command byte, check code byte and frame end identification byte;
Described equipment message scheduling packet header comprises communications protocol version number byte, residue length byte, communications protocol command byte, source hyphen byte;
When carrying out transfer of data in local area network (LAN) between mobile terminal and intelligent appliance, described transmission data use XPG Universal Data Protocol do outer package and transmitted by TCP;
Mobile terminal and high in the clouds, when carrying out transfer of data between high in the clouds and intelligent appliance, described transmission data use MQTT standard message type to do outer package.
As a kind of embodiment of intelligent appliance data transmission method, described check code byte adopts and the mode of verification is encoded, after all bytes in described original message except described check code byte and described frame end identification byte are cumulative, save upper byte reservation low byte as check code byte.
As a kind of embodiment of intelligent appliance data transmission method, described intelligent appliance control command byte packet contains multiple byte, the control command of each intelligent appliance or the corresponding intelligent appliance control command byte of the state feedback of each intelligent appliance;
The control command of described intelligent appliance and the corresponding relation of described intelligent appliance control command byte is stored in described mobile terminal; The control command of the intelligent appliance received is encoded to corresponding intelligent appliance control command byte and is used for being transferred to described intelligent appliance by described mobile terminal;
The state feedback of described intelligent appliance and the corresponding relation of described intelligent appliance control command byte is stored in described intelligent appliance; State feedback is encoded to corresponding intelligent appliance control command byte and is used for being transferred to described mobile terminal and/or described high in the clouds by described intelligent appliance.
As a kind of embodiment of intelligent appliance data transmission method, described equipment message scheduling packet header comprises the systemic circulation packet header for telecommunication and the partial circulating packet header for local communication;
Described systemic circulation packet header comprises communications protocol version number byte, residue length byte, communications protocol command byte, elongated hyphen length value byte and elongated hyphen content byte;
Described partial circulating packet header comprises communications protocol version number byte, residue length byte, communications protocol command byte and source hyphen byte.
As a kind of embodiment of intelligent appliance data transmission method, described mobile terminal comprises smart mobile phone and panel computer.
Beneficial effect of the present invention comprises: a kind of intelligent appliance data transmission method provided by the invention, in units of frame message, transfer of data is carried out to the data that will transmit, and adopts different packaged types to do outer package between intelligent appliance and high in the clouds and between intelligent appliance and mobile terminal to carry out transfer of data.It can realize reliable and stable Long-distance Control and control, and coding is simple, efficiency of transmission is high.
Accompanying drawing explanation
Fig. 1 is the data transmission relations schematic diagram in an embodiment between intelligent appliance and high in the clouds and mobile terminal.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, be described below in conjunction with the embodiment of accompanying drawing to intelligent appliance data transmission method of the present invention.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Intelligent appliance data transmission method of the present invention, is applicable to the transfer of data in wireless telecommunications and RS232 wire communication, comprises the transfer of data between mobile terminal and intelligent appliance, between mobile terminal and high in the clouds and between intelligent appliance and high in the clouds.Communication between intelligent appliance 200 and mobile terminal 300 and high in the clouds 100 as shown in Figure 1.Method of the present invention carries out transfer of data to the data that will transmit in units of frame message.Transmission data after coding are dispatched packet header+original message (PO) two parts by equipment message and are formed.Wherein: described original message comprises frame head identification byte, frame length byte, intelligent appliance protocol version byte, logo byte, product type byte, product type byte, mobile phone command word byte, intelligent appliance control command byte, check code byte and frame end identification byte.Wherein, mobile terminal comprises smart mobile phone and panel computer etc.
Between both devices, data each transmission one frame in units of frame message is transmitted.Frame head identification byte represents the beginning of a frame, can represent the beginning of a frame with 0xa5.Frame length byte to be characterized in original message the total length of the byte contained by from frame head (comprising frame head) to postamble (comprising postamble).Intelligent appliance protocol version byte characterizes the version number that corresponding intelligent appliance transmits the communications protocol used, and generally can comprise two bytes, intelligent appliance communications protocol version number's high byte and an intelligent appliance communications protocol version number low byte.Mobile phone command word byte characterizes the function that present frame transmission data assemblies completes, as start, shutdown, state report, timing etc.Command word byte can comprise n (n is between 1 ~ 240) individual byte, for characterizing control command or the state instruction of concrete electric equipment, dissimilar product, the product of unlike signal are had nothing in common with each other on code and byte, can each tool demand set in actual use.
Logo byte, product type byte and product type byte is provided with in original message.Described logo byte can be arranged according to company's self-demand, product type byte and product type byte different according to the difference of concrete intelligence household electrical appliances.But be all generally unified constant for its logo byte of product, product type and a product type byte of fixing, communication and between intelligent appliance and high in the clouds during communication between mobile phone and intelligent appliance, remains unchanged for these bytes of same intelligent appliance.It also can effectively prevent receiving by mistake of the control signal between the intelligent appliance of different model.
And the intelligent appliance control command byte packet in original message is containing multiple byte, the control command of each intelligent appliance or the corresponding intelligent appliance control command byte of the state feedback of each intelligent appliance.
Check code byte is also comprised in original message, after being arranged on command word byte, accurate for guaranteeing the transmission of whole frame data.Finally arrange frame end identification byte simultaneously at original message, for characterizing the end of frame data, available 0xbd is as frame end identification byte.
Described equipment message scheduling packet header comprises communications protocol version number byte, residue length byte, communications protocol command byte, source hyphen byte.The whole transmission data will carrying out transmitting are followed successively by equipment message scheduling packet header, original message according to order.
When carrying out transfer of data in local network between mobile terminal and intelligent appliance, comprise mobile terminal and open to intelligent appliance transfer control or close the data transmission of some function of intelligent appliance, also comprise intelligent appliance and transmit feedback data to mobile terminal.Transmission data after coding use XPG Universal Data Protocol do outer package and transmitted between intelligent appliance and mobile terminal by TCP.
And when carrying out transfer of data between high in the clouds and intelligent appliance, the transmission data after coding use MQTT (Message Queuing Telemetry Transport, message queue remote measurement is transmitted) standard message type to do outer package.
Transfer of data between mobile terminal and high in the clouds also uses MQTT standard message type to do outer package.
The intelligent appliance data transmission method of the embodiment of the present invention to will being transferred to the control command of intelligent appliance and encoding from the feedback information that intelligent appliance returns, and uses XPG Universal Data Protocol or MQTT standard message type to do outer package to carry out transfer of data.This transmission method command is stablized, and efficiency of transmission is high, is suitable for extensively being suitable for.
The control command of described intelligent appliance and the corresponding relation of described intelligent appliance control command byte is stored in described mobile terminal.The control command of the intelligent appliance received is encoded to corresponding intelligent appliance control command byte and is used for being transferred to described intelligent appliance by described mobile terminal.
It should be noted that, the control command of intelligent appliance comprises unlatching, closedown, the setting running time that standby and some are concrete, operational taps etc. herein.Need in actual use to encode to the various control commands involved by intelligent appliance in advance, and store corresponding corresponding relation in mobile terminal and intelligent appliance.The mobile terminals such as mobile phone carry out by APP the control command setting intelligent appliance, and control command was first encoded according to the corresponding relation of control command byte before transmitting, and are transferred to intelligent appliance again after after coding.And after intelligent appliance receives data, also can data after recognition coding, and be decoded as control command accurately, and perform corresponding action according to control command, as operational taps being set as 2 grades etc.
The state feedback of described intelligent appliance and the corresponding relation of described intelligent appliance control command byte is stored in described intelligent appliance.State feedback is encoded to corresponding intelligent appliance control command byte and is used for being transferred to described mobile terminal and/or described high in the clouds by described intelligent appliance.The state feedback of intelligent appliance comprises the feedback that machine runs whether normal and current setup parameter (as temperature, operational taps etc.).
Preferably, as a kind of embodiment, described check code byte adopts and the mode of verification is encoded, after all bytes in described original message except described check code byte and described frame end identification byte are cumulative, save upper byte reservation low byte as check code byte.
Table one is that the original message that the full instruction of a concrete slow cooker issues illustrates:
Table one
Wherein, showing a kind of School Affairs is to carry out the check code of encoding with the mode verified.
In addition, described communication packet header comprises the systemic circulation packet header for telecommunication and the partial circulating packet header for local communication.
Described systemic circulation packet header comprises communications protocol version number byte, residue length byte, communications protocol command byte, elongated hyphen length value byte and elongated hyphen content byte; .
Wherein one implement in, the command format in systemic circulation packet header as shown in Table 2:
Table two
Wherein communications protocol version number byte is 4 bytes, and residue length is two bytes; Communications protocol command byte is two bytes; Elongated hyphen length value is two bytes.Shared by elongated hyphen content, length is determined by elongated hyphen length value.
Also it should be noted that, the first residue length byte in the embodiment of the present invention follows large end order, and namely high byte is front, and low byte is rear.As in table two, if control command PO is 8 bytes, elongated hyphen 6 byte, then residue length is 8+2+2+6=18, i.e. 0x12.
Partial circulating packet header comprises communications protocol version number byte, residue length byte and source hyphen byte.
Wherein one implement in, the command format in partial circulating packet header as shown in Table 3:
Table three
As shown in Table 3, communications protocol version number byte is also 4 bytes, and residue length byte is two bytes, and communications protocol command byte is two bytes; Elongated hyphen content is nybble.
Wherein, in table three, residue length byte also follows large end order, and namely high byte is front, and low byte is rear.Under partial circulating package head format shown in table three, if control command PO is 8 byte longs, then the second residue length is 8+2+4=14, i.e. 0x0e.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410855693.2A CN104539712A (en) | 2014-12-31 | 2014-12-31 | Intelligent household appliance data transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410855693.2A CN104539712A (en) | 2014-12-31 | 2014-12-31 | Intelligent household appliance data transmission method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104539712A true CN104539712A (en) | 2015-04-22 |
Family
ID=52855179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410855693.2A CN104539712A (en) | 2014-12-31 | 2014-12-31 | Intelligent household appliance data transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104539712A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105116744A (en) * | 2015-07-23 | 2015-12-02 | 青岛海尔智能家电科技有限公司 | Intelligent household electrical appliance control method and home gateway |
CN105471897A (en) * | 2015-12-28 | 2016-04-06 | 上海庆科信息技术有限公司 | Embedded device cloud service access method and system |
WO2017124681A1 (en) * | 2016-01-20 | 2017-07-27 | 深圳Tcl数字技术有限公司 | Method and system for smart television identity recognition |
CN107302478A (en) * | 2016-04-14 | 2017-10-27 | 南通乐芯智能设备有限公司 | The long-range control method and system of a kind of smart home |
CN107395751A (en) * | 2017-08-23 | 2017-11-24 | 绵阳美菱软件技术有限公司 | A kind of remote control system of intelligent household electrical appliance and method |
CN108055306A (en) * | 2017-12-06 | 2018-05-18 | 深圳市智物联网络有限公司 | Data processing method, relevant device and system in a kind of Internet of Things |
CN110488626A (en) * | 2019-08-27 | 2019-11-22 | 腾讯科技(深圳)有限公司 | A kind of apparatus control method, control device, chromacoder and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1556623A (en) * | 2003-12-31 | 2004-12-22 | 中国电力科学研究院 | Intelligent community and intelligent domestic automation system based on full electric power line and method |
CN101958817A (en) * | 2010-07-17 | 2011-01-26 | 刘利华 | Intelligent home information management system |
US20110292247A1 (en) * | 2010-05-27 | 2011-12-01 | Sony Corporation | Image compression method with random access capability |
CN103592925A (en) * | 2013-11-25 | 2014-02-19 | 吉林大学 | Smart home system based on semantic fusion |
-
2014
- 2014-12-31 CN CN201410855693.2A patent/CN104539712A/en not_active Application Discontinuation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1556623A (en) * | 2003-12-31 | 2004-12-22 | 中国电力科学研究院 | Intelligent community and intelligent domestic automation system based on full electric power line and method |
US20110292247A1 (en) * | 2010-05-27 | 2011-12-01 | Sony Corporation | Image compression method with random access capability |
CN101958817A (en) * | 2010-07-17 | 2011-01-26 | 刘利华 | Intelligent home information management system |
CN103592925A (en) * | 2013-11-25 | 2014-02-19 | 吉林大学 | Smart home system based on semantic fusion |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105116744A (en) * | 2015-07-23 | 2015-12-02 | 青岛海尔智能家电科技有限公司 | Intelligent household electrical appliance control method and home gateway |
CN105471897A (en) * | 2015-12-28 | 2016-04-06 | 上海庆科信息技术有限公司 | Embedded device cloud service access method and system |
CN105471897B (en) * | 2015-12-28 | 2019-03-22 | 上海庆科信息技术有限公司 | A kind of embedded device cloud service cut-in method and system |
WO2017124681A1 (en) * | 2016-01-20 | 2017-07-27 | 深圳Tcl数字技术有限公司 | Method and system for smart television identity recognition |
CN107302478A (en) * | 2016-04-14 | 2017-10-27 | 南通乐芯智能设备有限公司 | The long-range control method and system of a kind of smart home |
CN107395751A (en) * | 2017-08-23 | 2017-11-24 | 绵阳美菱软件技术有限公司 | A kind of remote control system of intelligent household electrical appliance and method |
CN107395751B (en) * | 2017-08-23 | 2020-06-05 | 合肥美菱物联科技有限公司 | Intelligent household appliance remote control system and method |
CN108055306A (en) * | 2017-12-06 | 2018-05-18 | 深圳市智物联网络有限公司 | Data processing method, relevant device and system in a kind of Internet of Things |
CN110488626A (en) * | 2019-08-27 | 2019-11-22 | 腾讯科技(深圳)有限公司 | A kind of apparatus control method, control device, chromacoder and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103199897B (en) | For the method and apparatus wirelessly sending energy based on frame | |
CN203178784U (en) | Intelligent household control system based on Internet of Things | |
US20160087834A1 (en) | Smart Home System and Control Method Therefor | |
EP2800305B1 (en) | Method for managing optical fiber network and terminal | |
RU2014113756A (en) | Household appliance, household appliances system and method for managing them | |
CN104242465B (en) | A kind of transformer substation remote monitoring system based on B/S and method | |
AU2019201810B2 (en) | Communications method of wearable device, communications system, and related device | |
US8467911B2 (en) | Energy management device and method | |
CN104734363A (en) | Internet of things based high- and low-voltage switchgear system | |
CN104378421A (en) | Remote control system and method of intelligent household electrical appliance product | |
WO2012113219A1 (en) | Method and device for controlling operating mode of household electrical appliance, and intelligent household electrical appliance controller | |
CN105163364A (en) | Intelligent device WiFi connection system and intelligent device WiFi connection method based on intelligent gateway | |
CN104301151A (en) | Movement operation and maintenance system and method of power communication network | |
CN104317255A (en) | Internet-of-things-based intelligent household control system | |
CN104801050A (en) | Pairing method and pairing system for aeromodel airplane and remote controller | |
CN203279086U (en) | Television control system | |
CN103019180B (en) | Interconnecting and controlling method and system among electronic equipment | |
EP2575300B1 (en) | Electrical gateway and communication method therefor | |
EP3208974A1 (en) | Power line carrier communication terminal control device, system and method | |
CN203070050U (en) | Internet of Things intelligent household system based on ZigBee wireless communication protocol | |
EP2866385A2 (en) | Error code conversion method and system, pppoe server and mobile terminal | |
WO2015096182A1 (en) | Intelligent home control system and control method | |
CN102664911A (en) | Remote-management power information network system and control method thereof | |
CN103400487A (en) | Household appliance energy consumption managing system and household appliance energy consumption managing method based on intelligent mobile phone | |
CN105188022B (en) | Wireless routing device and communication means |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150422 |