CN105207795A - IOT communication method and device - Google Patents

IOT communication method and device Download PDF

Info

Publication number
CN105207795A
CN105207795A CN201410264420.0A CN201410264420A CN105207795A CN 105207795 A CN105207795 A CN 105207795A CN 201410264420 A CN201410264420 A CN 201410264420A CN 105207795 A CN105207795 A CN 105207795A
Authority
CN
China
Prior art keywords
message
internet
things
mode
message processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410264420.0A
Other languages
Chinese (zh)
Inventor
王泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Ziyu Zhiye Machinery Co Ltd
Original Assignee
Wuxi Ziyu Zhiye Machinery 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 Wuxi Ziyu Zhiye Machinery Co Ltd filed Critical Wuxi Ziyu Zhiye Machinery Co Ltd
Priority to CN201410264420.0A priority Critical patent/CN105207795A/en
Publication of CN105207795A publication Critical patent/CN105207795A/en
Pending legal-status Critical Current

Links

Abstract

The present invention relates to the field of IOT and particularly relates to an IOT communication method and a device. The method comprises the following steps that (1) after the IOT management server receives the message sent by an IOT terminal, the IOT management server determines the target end type of the message, (2) according to the target end type of the message, a message processing mode is selected, and the message processing mode comprises a synchronous interaction mode and an asynchronous interaction mode, (3) the message is processed according to the selected message processing mode, (4) when the message processing mode is the synchronous interaction mode, if a sending party does not receive the response message in a predetermined first threshold time, the message processing mode is switched to the asynchronous interaction mode. According to the IOT communication method and the device, the processing mode of the message is selected by the type of the target end of the message, when the communication state is not good, the switching of the message processing mode is automatically carried out, and the IOT communication efficiency is improved.

Description

A kind of Internet of Things communication means and device
Technical field
The present invention relates to Internet of Things field, particularly relate to a kind of Internet of Things communication means and device.
Background technology
Internet of Things communication system is made up of three parts: internet-of-things terminal, Internet of Things management server and internet of things service server, wherein, internet-of-things terminal refers to and is connected with various sensing equipment and the terminal possessing information processing and communication capacity, internet of things service server runs and has internet of things service system, for carrying out various internet of things service, Internet of Things management server achieves management, the function such as communication authentication, routing forwarding etc. of internet-of-things terminal, is the bridge of internet-of-things terminal and internet of things service server.
The communication mode of internet-of-things terminal, Internet of Things management server and internet of things service server comprises synchronous interaction mode and asynchronous interactive mode, wherein, the process of synchronous interaction is: after transmit leg (request message source) initiates certain request to recipient's (request message destination), by the time after recipient returns response, an interaction flow can be terminated, then transmit leg starts another flow process again, the advantage of synchronous interaction is that flow processing is simple, be applicable to signal intelligence between transmit leg and recipient better, postpone less application scenarios; The process of asynchronous interactive is: after sending direction recipient initiates certain request, appealing structure is returned without the need to wait-receiving mode side, recipient replys confirmation of receipt message to transmit leg after receiving request message, transmit leg is waited until in the process of request results after receiving the confirmation message, other interaction flows can be initiated, asynchronous interactive mode goes for the larger or unstable application scenarios of communication delay between transmit leg and recipient, namely the possibility that transmit leg produces time-out erroneous judgement can be reduced, also can make full use of the stand-by period, improve resource utilization.
Existing Internet of Things communication system, generally pre-set and use synchronous interaction mode or asynchronous interactive mode to communicate, and internet of things service server normally user's platform freely, its processing speed is generally unpredictable, Internet of Things management server is built usually in the mobile Intranet of carrier side, the internet of things service server self-built with user passes through internet communication, the transmission delay that cannot estimate may be produced, so the Internet of Things telecommunication system resources waste adopting synchronous interaction mode to carry out communicating is serious, and adopt asynchronous interactive mode to carry out the Internet of Things communication system communicated, the process complexity of equipment is too high.
Summary of the invention
The object of the invention is to propose a kind of Internet of Things communication means and device, Internet of Things communication efficiency can be improved.
For reaching this object, the present invention by the following technical solutions:
A kind of Internet of Things communication means, comprising:
Step a, Internet of Things management server, after the message receiving internet-of-things terminal transmission, determine the destination type of message;
Step b, destination type according to described message, select Message processing mode, described Message processing mode comprises synchronous interaction mode and asynchronous interactive mode;
Step c, according to selected Message processing mode, described message to be processed;
Steps d, when Message processing mode is synchronous interaction mode, if transmit leg does not receive the response message of recipient within the first threshold time of presetting, switching Message processing mode is asynchronous interactive mode.
Wherein, describedly determine that the destination type of message is specially:
Described Internet of Things management server, according to the beacon information of the type information of described message or described message destination, determines the destination type of described message.
Wherein, described step b is specially:
Step b1, when the destination type of described message is Internet of Things management server, Message processing way selection is synchronous interaction mode;
Step b2, when the destination type of described message is internet of things service server, Message processing way selection is asynchronous interactive mode.
Wherein, also comprise after described steps d:
If step e transmit leg does not receive the response message of recipient within the Second Threshold time of presetting, confirm as generation communication abnormality, enter abnormality processing flow process.
A kind of Internet of Things communicator, comprising:
Receiving element, for Internet of Things management server after the message receiving internet-of-things terminal transmission, determines the destination type of message;
Selected cell, for the destination type according to described message, select Message processing mode, described Message processing mode comprises synchronous interaction mode and asynchronous interactive mode;
Processing unit, for processing described message according to selected Message processing mode;
Switch unit, for when Message processing mode is synchronous interaction mode, if transmit leg does not receive the response message of recipient within the first threshold time of presetting, switching Message processing mode is asynchronous interactive mode.
Wherein, describedly determine that the destination type of message is specially:
Described Internet of Things management server, according to the beacon information of the type information of described message or described message destination, determines the destination type of described message.
Wherein, described selected cell comprises:
Synchronous interaction unit, when the destination type of described message is Internet of Things management server, Message processing way selection is synchronous interaction mode;
Asynchronous interactive unit, when the destination type of described message is internet of things service server, Message processing way selection is asynchronous interactive mode;
Wherein, Internet of Things communicator also comprises:
Communication abnormality unit, if the response message not receiving recipient for transmit leg within the Second Threshold time of presetting, confirms as generation communication abnormality, enters abnormality processing flow process.
Beneficial effect of the present invention is: a kind of Internet of Things communication means, comprising: Internet of Things management server, after the message receiving internet-of-things terminal transmission, determines the destination type of message; According to the destination type of described message, select Message processing mode, described Message processing mode comprises synchronous interaction mode and asynchronous interactive mode; According to selected Message processing mode, described message is processed; When Message processing mode is synchronous interaction mode, if transmit leg does not receive the response message of recipient within the first threshold time of presetting, switching Message processing mode is asynchronous interactive mode, the present invention is by the processing mode of the type selecting message of the destination of message, and when communications status is not good, automatically carry out the conversion of Message processing mode, improve Internet of Things communication efficiency.
Accompanying drawing explanation
Fig. 1 is a kind of Internet of Things communication means flow chart that the embodiment of the present invention one provides.
Fig. 2 is a kind of Internet of Things communication apparatus structure figure that the embodiment of the present invention two provides.
Embodiment
Technical scheme of the present invention is further illustrated by embodiment below in conjunction with Fig. 1 and Fig. 2.
Embodiment one
Fig. 1 is a kind of Internet of Things communication means flow chart that the embodiment of the present invention one provides.
A kind of Internet of Things communication means, comprising:
Step a, Internet of Things management server, after the message receiving internet-of-things terminal transmission, determine the destination type of message;
Step b, destination type according to described message, select Message processing mode, described Message processing mode comprises synchronous interaction mode and asynchronous interactive mode;
Step c, according to selected Message processing mode, described message to be processed;
Steps d, when Message processing mode is synchronous interaction mode, if transmit leg does not receive the response message of recipient within the first threshold time of presetting, switching Message processing mode is asynchronous interactive mode.
In the present embodiment, by the processing mode of the type selecting message of the destination of message, make Internet of Things communication system while the wasting of resources is less, reduce the process complexity of equipment, and when communications status is not good, automatically carry out the conversion of Message processing mode, improve Internet of Things communication efficiency.
In the present embodiment, describedly determine that the destination type of message is specially:
Described Internet of Things management server, according to the beacon information of the type information of described message or described message destination, determines the destination type of described message.
In the present embodiment, described step b is specially:
Step b1, when the destination type of described message is Internet of Things management server, Message processing way selection is synchronous interaction mode;
Step b2, when the destination type of described message is internet of things service server, Message processing way selection is asynchronous interactive mode.
In the present embodiment, also comprise after described steps d:
If step e transmit leg does not receive the response message of recipient within the Second Threshold time of presetting, confirm as generation communication abnormality, enter abnormality processing flow process.
Embodiment two
Fig. 2 is a kind of Internet of Things communication apparatus structure figure that the embodiment of the present invention two provides.
A kind of Internet of Things communicator, comprising:
Receiving element, for Internet of Things management server after the message receiving internet-of-things terminal transmission, determines the destination type of message;
Selected cell, for the destination type according to described message, select Message processing mode, described Message processing mode comprises synchronous interaction mode and asynchronous interactive mode;
Processing unit, for processing described message according to selected Message processing mode;
Switch unit, for when Message processing mode is synchronous interaction mode, if transmit leg does not receive the response message of recipient within the first threshold time of presetting, switching Message processing mode is asynchronous interactive mode.
In the present embodiment, describedly determine that the destination type of message is specially:
Described Internet of Things management server, according to the beacon information of the type information of described message or described message destination, determines the destination type of described message.
In the present embodiment, described selected cell comprises:
Synchronous interaction unit, when the destination type of described message is Internet of Things management server, Message processing way selection is synchronous interaction mode;
Asynchronous interactive unit, when the destination type of described message is internet of things service server, Message processing way selection is asynchronous interactive mode;
In the present embodiment, Internet of Things communicator also comprises:
Communication abnormality unit, if the response message not receiving recipient for transmit leg within the Second Threshold time of presetting, confirms as generation communication abnormality, enters abnormality processing flow process.
The foregoing is only the specific embodiment of the present invention, these describe just in order to explain principle of the present invention, and can not with any interpretation of structure for limiting the scope of the invention.Based on explanation herein, those skilled in the art does not need to pay performing creative labour can associate other specific implementation method of the present invention, and these structures all will fall within protection scope of the present invention.

Claims (8)

1. an Internet of Things communication means, is characterized in that, comprising:
Step a, Internet of Things management server, after the message receiving internet-of-things terminal transmission, determine the destination type of message;
Step b, destination type according to described message, select Message processing mode, described Message processing mode comprises synchronous interaction mode and asynchronous interactive mode;
Step c, according to selected Message processing mode, described message to be processed;
Steps d, when Message processing mode is synchronous interaction mode, if transmit leg does not receive the response message of recipient within the first threshold time of presetting, switching Message processing mode is asynchronous interactive mode.
2. a kind of Internet of Things communication means according to claim 1, is characterized in that, describedly determines that the destination type of message is specially:
Described Internet of Things management server, according to the beacon information of the type information of described message or described message destination, determines the destination type of described message.
3. a kind of Internet of Things communication means according to claim 1, it is characterized in that, described step b is specially:
Step b1, when the destination type of described message is Internet of Things management server, Message processing way selection is synchronous interaction mode;
Step b2, when the destination type of described message is internet of things service server, Message processing way selection is asynchronous interactive mode.
4. a kind of Internet of Things communication means according to claim 1, is characterized in that, also comprise after described steps d:
If step e transmit leg does not receive the response message of recipient within the Second Threshold time of presetting, confirm as generation communication abnormality, enter abnormality processing flow process.
5. an Internet of Things communicator, is characterized in that, comprising:
Receiving element, for Internet of Things management server after the message receiving internet-of-things terminal transmission, determines the destination type of message;
Selected cell, for the destination type according to described message, select Message processing mode, described Message processing mode comprises synchronous interaction mode and asynchronous interactive mode;
Processing unit, for processing described message according to selected Message processing mode;
Switch unit, for when Message processing mode is synchronous interaction mode, if transmit leg does not receive the response message of recipient within the first threshold time of presetting, switching Message processing mode is asynchronous interactive mode.
6. a kind of Internet of Things communicator according to claim 5, is characterized in that, describedly determines that the destination type of message is specially:
Described Internet of Things management server, according to the beacon information of the type information of described message or described message destination, determines the destination type of described message.
7. a kind of Internet of Things communicator according to claim 5, it is characterized in that, described selected cell comprises:
Synchronous interaction unit, when the destination type of described message is Internet of Things management server, Message processing way selection is synchronous interaction mode;
Asynchronous interactive unit, when the destination type of described message is internet of things service server, Message processing way selection is asynchronous interactive mode.
8. a kind of Internet of Things communicator according to claim 5, is characterized in that, also comprise:
Communication abnormality unit, if the response message not receiving recipient for transmit leg within the Second Threshold time of presetting, confirms as generation communication abnormality, enters abnormality processing flow process.
CN201410264420.0A 2014-06-13 2014-06-13 IOT communication method and device Pending CN105207795A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410264420.0A CN105207795A (en) 2014-06-13 2014-06-13 IOT communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410264420.0A CN105207795A (en) 2014-06-13 2014-06-13 IOT communication method and device

Publications (1)

Publication Number Publication Date
CN105207795A true CN105207795A (en) 2015-12-30

Family

ID=54955250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410264420.0A Pending CN105207795A (en) 2014-06-13 2014-06-13 IOT communication method and device

Country Status (1)

Country Link
CN (1) CN105207795A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111833042A (en) * 2020-05-14 2020-10-27 上海世麦智能科技有限公司 Synchronous data processing method and system for scanning terminal communication
CN113256373A (en) * 2021-05-17 2021-08-13 北京京东振世信息技术有限公司 Document distribution method and device and server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111833042A (en) * 2020-05-14 2020-10-27 上海世麦智能科技有限公司 Synchronous data processing method and system for scanning terminal communication
CN111833042B (en) * 2020-05-14 2021-04-30 上海世麦智能科技有限公司 Synchronous data processing method and system for scanning terminal communication
CN113256373A (en) * 2021-05-17 2021-08-13 北京京东振世信息技术有限公司 Document distribution method and device and server
CN113256373B (en) * 2021-05-17 2023-11-07 北京京东振世信息技术有限公司 Document distribution method, device and server

Similar Documents

Publication Publication Date Title
CN102739560B (en) Instant communication method, system and device
CN104811459A (en) Processing method, processing device and system for message services and message service system
CN103096271A (en) Information pushing system and information pushing method
CN102271123A (en) Communication method, system and equipment
CN102638417A (en) Information communication method, device and system
CN103746938A (en) Method and device for transmitting data packet
CN103139818A (en) Method, system, area of effect (AOE), always on line (AOG) and terminal of maintaining long connection in acquisition of signal (AOS)
CN105262836A (en) Information push method of server and push information reception method of client
CN105101370A (en) Data connection method and device, and WIFI module
CN103457985A (en) Method and system of dual-channel communication
KR101408745B1 (en) Service processing method and apparatus based on android system
CN104936211A (en) Wireless resource distribution method
CN106027599B (en) Data transmission channel establishing method, system and server
CN103701932A (en) Method of data transmission in internet of things
CN104601376A (en) Heartbeat message sending method and device
CN106648922A (en) Data collecting method based on XMPP
CN105207795A (en) IOT communication method and device
CN104123942B (en) A kind of audio recognition method and system
CN103560970A (en) Method for realizing downlink speed limitation of network device with multiple LAN ports
CN105025430A (en) Network sharing method and system
CN104243473A (en) Data transmission method and device
CN104378798A (en) Optimized distributed collaborative routing method based on Internet of Things
CN104636103A (en) Keyboard data transmission method and device
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN103873533A (en) Method, device and system used for pushing information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151230

WD01 Invention patent application deemed withdrawn after publication