CN105530151A - GPRS module and information transmission method for the GPRS module - Google Patents
GPRS module and information transmission method for the GPRS module Download PDFInfo
- Publication number
- CN105530151A CN105530151A CN201510862389.5A CN201510862389A CN105530151A CN 105530151 A CN105530151 A CN 105530151A CN 201510862389 A CN201510862389 A CN 201510862389A CN 105530151 A CN105530151 A CN 105530151A
- Authority
- CN
- China
- Prior art keywords
- household electrical
- electrical appliances
- information
- data format
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Automation & Control Theory (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a GPRS module and an information transmission method for the GPRS module. The method comprises the following steps: obtaining equipment information and/or state information from a household appliance, converting the data format of the equipment information and/or the state information of the household appliance into a data format capable of being identified by a server, and sending the converted equipment information and/or the state information of the household appliance to the server communicating with the GPRS module; obtaining control command information from the server, converting the data format of the control command information into a data format capable of being identified by the household appliance, and sending the converted control command information to the household appliance. The invention provides a solution for varied demands on the communication mode in the field of the Internet of things for solving the limitation brought by the dependence of the traditional WIFI communication mode on a wireless router; and meanwhile, the information transmission method disclosed by the invention is used for simplifying the data transmission complexity of intelligent household appliance and the server.
Description
Technical field
The present invention relates to Internet of Things field, particularly relate to a kind of GPRS module and the information transferring method for GPRS module.
Background technology
Along with the fast development of technology of Internet of things, intelligent appliance is more and more universal.Current Internet of Things intelligent appliance generally adopts WIFI communication mode, makes household electrical appliances possess network function, but a lot of scene is not owing to being connected to the wireless router of internet, thus causes intelligent appliance to be connected to internet.
Therefore, in prior art, intelligent appliance connects by WIFI communication mode the demand that internet can not meet user, and therefore, in the communication process of intelligent appliance, the diversity requirement of user to communication mode is more and more stronger.
Summary of the invention
In view of the defect of prior art, the object of the invention is to provide a kind of GPRS module and the information transferring method for GPRS module.
The object of the invention is mainly achieved through the following technical solutions:
According to an aspect of the present invention, the invention provides a kind of information transferring method for GPRS module, comprising:
Facility information and/or state information is obtained from household electrical appliances, be the discernible data format of server by the Data Format Transform of the facility information of described household electrical appliances and/or state information, the facility information of the described household electrical appliances after conversion and/or state information are sent to the described server communicated with described GPRS module;
Obtaining control command information from described server, is the discernible data formats of described household electrical appliances by the Data Format Transform of described control command information, and the control command information after conversion is sent to described household electrical appliances.
Further, the described step obtaining state information from household electrical appliances, specifically comprises:
According to the status poll interval of presetting, timing obtains the state information of described household electrical appliances from described household electrical appliances.
Further, be the step of the discernible data format of server by the Data Format Transform of the state information of described household electrical appliances, specifically comprise:
When the current state information obtaining household electrical appliances from described household electrical appliances changes relative to the previous state information from described household electrical appliances acquisition household electrical appliances, be the discernible data format of server by the current Data Format Transform obtaining the state information of household electrical appliances from described household electrical appliances.
Further, described method also comprises:
And set up heartbeat between described household electrical appliances, based on described heartbeat monitoring and the connected state of described household electrical appliances, monitoring result is generated heartbeat data packets; Described heartbeat data packets is sent to described server; Wherein the data format of heartbeat data packets is the discernible data format of described server.
Further, tandem is adopted to be connected with between described household electrical appliances; The quantity of described household electrical appliances is one or more.
According to another aspect of the present invention, the invention provides a kind of GPRS module, comprising:
Facility information element, for obtaining facility information and/or state information from household electrical appliances, be the discernible data format of server by the Data Format Transform of the facility information of described household electrical appliances and/or state information, the facility information of the described household electrical appliances after conversion and/or state information are sent to the described server communicated with described GPRS module;
The Data Format Transform of described control command information, for obtaining control command information from described server, is the discernible data formats of described household electrical appliances by server info unit, and the control command information after conversion is sent to described household electrical appliances.
Further, facility information element comprises status poll timing unit, and for the status poll interval that basis is preset, the timing of trigger equipment information unit obtains the state information of described household electrical appliances from described household electrical appliances.
Further, facility information element also comprises state vs's unit, for when the current state information obtaining household electrical appliances from described household electrical appliances changes relative to the previous state information from described household electrical appliances acquisition household electrical appliances, the current Data Format Transform obtaining the state information of household electrical appliances from described household electrical appliances is the discernible data format of server by trigger equipment information unit.
Further, described GPRS module also comprises monitoring means, for setting up heartbeat between described household electrical appliances, based on described heartbeat monitoring and the connected state of described household electrical appliances, monitoring result is generated heartbeat data packets; Described heartbeat data packets is sent to described server; Wherein the data format of heartbeat data packets is the discernible data format of described server.
Further, tandem is adopted to be connected between described GPRS module with described household electrical appliances; The quantity of described household electrical appliances is one or more.
Beneficial effect of the present invention is as follows: the invention provides the solution of Internet of Things field to communication mode diversity requirement, solves traditional WIFI communication mode and wireless router is relied on to the limitation brought; Meanwhile, this invention simplifies the complexity of intelligent appliance and servers' data transmission.
Accompanying drawing explanation
Fig. 1 is the main flow chart of a kind of information transferring method for GPRS module of the embodiment of the present invention;
Fig. 2 is the system framework schematic diagram of GPRS module in the embodiment of the present invention, server and Intelligent Home Appliance Controller composition;
Fig. 3 is the detail flowchart of a kind of information transferring method for GPRS module of the embodiment of the present invention;
Fig. 4 is the structural representation of a kind of GPRS module of the embodiment of the present invention.
Embodiment
At present, in intelligent appliance communication process, more and more stronger to the diversity requirement of communication mode.Based on this, the invention provides a kind of GPRS (GeneralPacketRadioService, general packet radio service technology) module and the information transferring method for GPRS module, in order to increase the communication mode of intelligent appliance networking in prior art.Below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, do not limit the present invention.
Embodiment one
As shown in Figure 1, the embodiment of the present invention provides a kind of information transferring method for GPRS module, comprising:
S101, facility information and/or state information is obtained from household electrical appliances, by the data format that the Data Format Transform of the facility information of described household electrical appliances and/or state information is server identification, the facility information of the described household electrical appliances after conversion and/or state information are sent to described server;
S102, obtaining control command information from server, is the data format of household electrical appliances identification by the Data Format Transform of described control command information, and the control command information after conversion is sent to described household electrical appliances.
The embodiment of the present invention solves in Internet of Things field, and traditional WIFI communication mode relies on the limitation brought to wireless router, provide the solution to communication mode diversity requirement, ensure that intelligent appliance access network, plays the advantage of intelligent appliance.Embodiments provide a kind of information transferring method of unitized GPRS module, specifically, in prior art, if intelligent appliance communicates mutually with server, need to pre-set host-host protocol at intelligent appliance end, often kind of host-host protocol needs to arrange several data form; Equally, also need to arrange multiple transport protocols at server end, often kind of host-host protocol needs to arrange several data form, when intelligent appliance adopts certain data format transmitting data information, server end needs corresponding pattern matched to explain the data message of Intelligent Home Appliance Controller end transmission, thus adds the complexity of data information transfer between intelligent appliance and server.The embodiment of the present invention effectively solves this problem, simplifies the complexity of intelligent appliance and servers' data transmission respectively.
Below describe embodiment of the present invention method in detail.
As shown in Figure 2, the mode that GPRS module is docked by generalization serial ports with intelligent appliance connects together, and the mode of serial ports docking can realize the information inquiry that 1 drags 16 equipment; Wherein GPRS module can separation between machine and card (SIM card and GPRS module).GPRS module is responsible for have received the control command information that server is sent by network, and the facility information of household electrical appliances and/or state information are uploaded to server.
GPRS module is responsible for the various communication connections of intelligent appliance equipment and remote server, and communicates according to the agreement of regulation, and concrete communication process as shown in Figure 3, comprising:
Step 1, GPRS module power-up initializing, is connected to internet;
Step 2, the Data Format Transform of the facility information of household electrical appliances is the data format of server identification by the facility information of GPRS module inquiry intelligent appliance.Facility information comprises device type tpyeid, version, module model IMEI, version, and wherein typeid and IMEI can ensure the uniqueness of home appliance; The in other words protocol translation of finishing equipment information, prepares to be reported to remote server; Wherein, facility information can only send once.
Step 3, reports remote server by the facility information of the household electrical appliances completing protocol translation.
Step 4, obtaining state information from household electrical appliances, is the data format of server identification by the Data Format Transform of the state information of household electrical appliances, and the state information of the described household electrical appliances after conversion is sent to described remote server.State information comprises household electrical appliances operating state, holding state and malfunction.
In this step, preferably adopt timing inquiry mechanism, such as, inquire about the state information of intelligent appliance every 5s.That is, preset state polling interval; According to preset state polling interval, timing obtains the state information of household electrical appliances from household electrical appliances.Timing inquiry mechanism does not need real-time query, saves network traffic data and the network bandwidth.
In this step, be the data format of server identification by the Data Format Transform of the state information of described household electrical appliances, send to the step of described remote server preferably to adopt following manner to realize the state information of the described household electrical appliances after conversion:
According to timing inquiry mechanism, contrast adjacent twice (current and previous) household electrical appliances state information, whether detected state information changes, when change, be the data format of server identification again by the Data Format Transform in the state information by described household electrical appliances, the state information of the described household electrical appliances after conversion is sent to described remote server.
In other words, when the current state information obtaining household electrical appliances from household electrical appliances changes relative to the previous state information from household electrical appliances acquisition household electrical appliances, by the data format that the current Data Format Transform obtaining the state information of household electrical appliances from household electrical appliances is server identification, the state information of the described household electrical appliances after conversion is sent to described remote server.This step saves network traffic data and the network bandwidth further.
Wherein the data format of server identification can be the jason form under MQTT framework agreement.
Step 5, and set up heartbeat between described household electrical appliances, based on described heartbeat monitoring and the connected state (comprise and be connected or disconnect) of described household electrical appliances, monitoring result is generated heartbeat data packets; Described heartbeat data packets is sent to described server; Wherein the data format of heartbeat data packets is the data format of server identification.Whether this step can detect household electrical appliances online, guarantees that household electrical appliances are online.
This step, also can preset heartbeat and send interval, send interval according to the heartbeat preset, timing sends heartbeat data packets to server.This step saves network traffic data and the network bandwidth further.Such as, 60s timing reports heartbeat data packets.
Step 6, obtaining control command information from server, is the data format of household electrical appliances identification by the Data Format Transform of described control command information, and the control command information after conversion is sent to described household electrical appliances.
Step 7, upgrading GPRS module, supports the firmware version of OTA upgrading GPRS module specifically, after receiving the upgrade command from remote server, performs firmware upgrade flow process.
In the embodiment of the present invention, intelligent appliance contracting is identical with household electrical appliances, all refers to the home appliance with certain intelligence.
Embodiment two
As shown in Figure 4, the embodiment of the present invention provides a kind of GPRS module, comprising:
Facility information element 40, for obtaining facility information and/or state information from household electrical appliances, by the data format that the Data Format Transform of the facility information of described household electrical appliances and/or state information is server identification, the facility information of the described household electrical appliances after conversion and/or state information are sent to described server;
The Data Format Transform of described control command information, for obtaining control command information from server, is the data format of household electrical appliances identification by server info unit 42, and the control command information after conversion is sent to described household electrical appliances.
Described GPRS module can also comprise monitoring means, for setting up heartbeat between described household electrical appliances, based on described heartbeat monitoring and the connected state of described household electrical appliances, monitoring result is generated heartbeat data packets; Described heartbeat data packets is sent to described server; Wherein the data format of heartbeat data packets is the data format of server identification.
Wherein, facility information element comprises status poll timing unit, for preset state polling interval; According to preset state polling interval, trigger equipment information unit 40 timing obtains the state information of household electrical appliances from household electrical appliances.
Facility information element also comprises state vs's unit, for when the current state information obtaining household electrical appliances from household electrical appliances changes relative to the previous state information from household electrical appliances acquisition household electrical appliances, the current Data Format Transform obtaining the state information of household electrical appliances from household electrical appliances is the data format of server identification by trigger equipment information unit 40.
Tandem is adopted to be connected between GPRS module with described household electrical appliances; The quantity of described household electrical appliances is one or more.
The embodiment of the present invention is the device embodiment of embodiment one correspondence, and specific implementation is identical with embodiment one with effect, does not repeat them here.
Although be example object, disclose the preferred embodiments of the present invention above, it is also possible for those skilled in the art will recognize various improvement, increase and replacement, and therefore, scope of the present invention should be not limited to above-described embodiment.
Claims (10)
1. for an information transferring method for GPRS module, it is characterized in that, comprising:
Facility information and/or state information is obtained from household electrical appliances, be the discernible data format of server by the Data Format Transform of the facility information of described household electrical appliances and/or state information, the facility information of the described household electrical appliances after conversion and/or state information are sent to the described server communicated with described GPRS module;
Obtaining control command information from described server, is the discernible data formats of described household electrical appliances by the Data Format Transform of described control command information, and the control command information after conversion is sent to described household electrical appliances.
2. the method for claim 1, is characterized in that, the described step obtaining state information from household electrical appliances, specifically comprises:
According to the status poll interval of presetting, timing obtains the state information of described household electrical appliances from described household electrical appliances.
3. method as claimed in claim 2, is characterized in that, be the step of the discernible data format of server, specifically comprise the Data Format Transform of the state information of described household electrical appliances:
When the current state information obtaining household electrical appliances from described household electrical appliances changes relative to the previous state information from described household electrical appliances acquisition household electrical appliances, be the discernible data format of server by the current Data Format Transform obtaining the state information of household electrical appliances from described household electrical appliances.
4. the method for claim 1, is characterized in that, described method also comprises:
And set up heartbeat between described household electrical appliances, based on described heartbeat monitoring and the connected state of described household electrical appliances, monitoring result is generated heartbeat data packets; Described heartbeat data packets is sent to described server; Wherein the data format of heartbeat data packets is the discernible data format of described server.
5. the method as described in claim 1-4 any one, is characterized in that, adopts tandem to be connected with between described household electrical appliances; The quantity of described household electrical appliances is one or more.
6. a GPRS module, is characterized in that, comprising:
Facility information element, for obtaining facility information and/or state information from household electrical appliances, be the discernible data format of server by the Data Format Transform of the facility information of described household electrical appliances and/or state information, the facility information of the described household electrical appliances after conversion and/or state information are sent to the described server communicated with described GPRS module;
The Data Format Transform of described control command information, for obtaining control command information from described server, is the discernible data formats of described household electrical appliances by server info unit, and the control command information after conversion is sent to described household electrical appliances.
7. GPRS module as claimed in claim 6, it is characterized in that, facility information element comprises status poll timing unit, and for the status poll interval that basis is preset, the timing of trigger equipment information unit obtains the state information of described household electrical appliances from described household electrical appliances.
8. GPRS module as claimed in claim 7, it is characterized in that, facility information element also comprises state vs's unit, for when the current state information obtaining household electrical appliances from described household electrical appliances changes relative to the previous state information from described household electrical appliances acquisition household electrical appliances, the current Data Format Transform obtaining the state information of household electrical appliances from described household electrical appliances is the discernible data format of server by trigger equipment information unit.
9. GPRS module as claimed in claim 6, it is characterized in that, described GPRS module also comprises monitoring means, for setting up heartbeat between described household electrical appliances, based on described heartbeat monitoring and the connected state of described household electrical appliances, monitoring result is generated heartbeat data packets; Described heartbeat data packets is sent to described server; Wherein the data format of heartbeat data packets is the discernible data format of described server.
10. the GPRS module as described in claim 6-9 any one, is characterized in that, adopts tandem to be connected between described GPRS module with described household electrical appliances; The quantity of described household electrical appliances is one or more.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510862389.5A CN105530151A (en) | 2015-11-30 | 2015-11-30 | GPRS module and information transmission method for the GPRS module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510862389.5A CN105530151A (en) | 2015-11-30 | 2015-11-30 | GPRS module and information transmission method for the GPRS module |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105530151A true CN105530151A (en) | 2016-04-27 |
Family
ID=55772154
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510862389.5A Pending CN105530151A (en) | 2015-11-30 | 2015-11-30 | GPRS module and information transmission method for the GPRS module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105530151A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453648A (en) * | 2016-11-29 | 2017-02-22 | 海信集团有限公司 | Device state determining method and device of smart home devices |
CN109194773A (en) * | 2018-11-19 | 2019-01-11 | 四川长虹电器股份有限公司 | A kind of multiple terminals PLC interactive system and method based on cloud |
CN110113183A (en) * | 2019-04-10 | 2019-08-09 | 深圳市飞比电子科技有限公司 | Firmware update, device, Internet of things system, electronic equipment and storage medium |
CN111526075A (en) * | 2020-04-15 | 2020-08-11 | 珠海格力电器股份有限公司 | Intelligent device control method, storage medium and electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571515A (en) * | 2011-12-28 | 2012-07-11 | 四川长虹电器股份有限公司 | Interaction method of intelligent household appliances |
CN102694705A (en) * | 2012-05-22 | 2012-09-26 | 项小东 | Internet-based home appliance information management and service device and realization method thereof |
CN102880158A (en) * | 2012-10-23 | 2013-01-16 | 北京林业大学 | Remote wireless intelligent home control system |
CN103279074A (en) * | 2013-04-23 | 2013-09-04 | 苏州市职业大学 | Wireless intelligent home system |
CN104635536A (en) * | 2014-12-22 | 2015-05-20 | 深圳市海普创科技开发有限公司 | Intelligent household electrical appliance control method and system |
CN105007292A (en) * | 2015-05-22 | 2015-10-28 | 中山大学 | Household intelligent system in digital family and based on intelligent network control |
-
2015
- 2015-11-30 CN CN201510862389.5A patent/CN105530151A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571515A (en) * | 2011-12-28 | 2012-07-11 | 四川长虹电器股份有限公司 | Interaction method of intelligent household appliances |
CN102694705A (en) * | 2012-05-22 | 2012-09-26 | 项小东 | Internet-based home appliance information management and service device and realization method thereof |
CN102880158A (en) * | 2012-10-23 | 2013-01-16 | 北京林业大学 | Remote wireless intelligent home control system |
CN103279074A (en) * | 2013-04-23 | 2013-09-04 | 苏州市职业大学 | Wireless intelligent home system |
CN104635536A (en) * | 2014-12-22 | 2015-05-20 | 深圳市海普创科技开发有限公司 | Intelligent household electrical appliance control method and system |
CN105007292A (en) * | 2015-05-22 | 2015-10-28 | 中山大学 | Household intelligent system in digital family and based on intelligent network control |
Non-Patent Citations (1)
Title |
---|
沈舒海等: "基于GPRS网络的智能家居控制系统", 《电子器件》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453648A (en) * | 2016-11-29 | 2017-02-22 | 海信集团有限公司 | Device state determining method and device of smart home devices |
CN106453648B (en) * | 2016-11-29 | 2020-04-28 | 海信集团有限公司 | Equipment state determination method and device for intelligent household equipment |
CN109194773A (en) * | 2018-11-19 | 2019-01-11 | 四川长虹电器股份有限公司 | A kind of multiple terminals PLC interactive system and method based on cloud |
CN110113183A (en) * | 2019-04-10 | 2019-08-09 | 深圳市飞比电子科技有限公司 | Firmware update, device, Internet of things system, electronic equipment and storage medium |
CN111526075A (en) * | 2020-04-15 | 2020-08-11 | 珠海格力电器股份有限公司 | Intelligent device control method, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105245427A (en) | Multi-Internet of Things cloud platform terminal access and control system based on bus adaption | |
CN105530151A (en) | GPRS module and information transmission method for the GPRS module | |
CN109981668A (en) | Common apparatus Internet of Things communication means based on the extensive agreement of MQTT | |
CN105807617A (en) | Control method and control device for intelligent household devices | |
CN107040531B (en) | communication assembly | |
CN103916464A (en) | Dual-mode cloud air-conditioner system based on Wi-Fi communication mode | |
CN109586958B (en) | Configuration management method for dual-system device and dual-system device | |
CN105450779A (en) | Method for achieving connection between one household electric appliance and multiple servers | |
CN106603530A (en) | Control system and method for electronic device compatible with different communication protocols | |
CN105471983A (en) | Method and system for establishing internet-of-things communication | |
CN104506401A (en) | Method for achieving Modbus protocol transmission based on ISA100.11a industrial sensor network | |
CN109361528B (en) | Firmware upgrading method and intelligent household appliance | |
CN106658368A (en) | Bluetooth networking method and system | |
CN104253763A (en) | Method for realizing data transmission in gateway equipment of ubiquitous network and gateway equipment using method | |
CN102006192A (en) | Control system and control method for digital family network equipment | |
CN106790282A (en) | A kind of method of protocol conversion, device and air-conditioning system | |
CN103762719A (en) | Intelligent switch cabinet | |
CN103873560A (en) | System for controlling household appliance through network | |
CN104852835A (en) | Smart device WIFI communication system and control method thereof | |
JP2015119389A (en) | Communication adapter | |
CN203747862U (en) | Wi-Fi communication mode-based bimodal cloud air conditioning system | |
CN102904978B (en) | In Ubiquitous Network, ubiquitous equipment realizes the method for UPnP | |
CN109673044A (en) | Communication control method, chip, the gateway apparatus of chip | |
CN110661692B (en) | Network interconnection system and method | |
CN103994557A (en) | Method for wireless control over air conditioner |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160427 |
|
RJ01 | Rejection of invention patent application after publication |