CN105681436B - Communication means based on alljoyn agreement between control terminal and internet of things equipment - Google Patents
Communication means based on alljoyn agreement between control terminal and internet of things equipment Download PDFInfo
- Publication number
- CN105681436B CN105681436B CN201610057147.3A CN201610057147A CN105681436B CN 105681436 B CN105681436 B CN 105681436B CN 201610057147 A CN201610057147 A CN 201610057147A CN 105681436 B CN105681436 B CN 105681436B
- Authority
- CN
- China
- Prior art keywords
- control terminal
- internet
- alljoyn
- equipment
- things equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- 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
-
- 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/14—Session management
Abstract
The present invention relates to alljoyn network communication technologies; it discloses the communication means based on alljoyn agreement between a kind of control terminal and internet of things equipment; it solves the problem of quickly find that network connection exception or equipment go offline when being communicated in traditional technology based on alljoyn agreement.The communication means the following steps are included: A, using No. SN of internet of things equipment plus Fixed CP be Service name start alljoyn service;B, corresponding internet of things equipment in control terminal hair request Network Search;C, control terminal establishes session with the service of corresponding internet of things equipment and keeps connecting;D, control terminal is communicated by the session kept with equipment;E, equipment is by sending broadcast message notice control terminal current state.The present invention is suitable for based on alljoyn protocol realization to home wiring control.
Description
Technical field
The present invention relates to alljoyn network communication technologies, and in particular to is based between control terminal and internet of things equipment
The communication means of alljoyn agreement.
Background technique
Alljoyn is an open source projects, is mainly used near radio transmission, passes through WiFi or Bluetooth technology, positioning
And pp file transmission.It provides running environment, especially mobility, peace for distributed application program in distinct device
Full property and dynamic configuration.Alljoyn system has handled problem intrinsic in heterogeneous distributing system, and solves and draw mobility
Enter generated oddity problem when equation.This core for allowing application developer to focus onto application program is asked
In topic.
But the interface that discovery alljoyn is provided during Alljoyn is applied to product is excessively complicated, for not
The developer for being familiar with alljoyn is difficult directly to develop, some contents may not need to be concerned about in the process of development, but
It is to have to standardize according to alljoyn to go to realize.So how to make development process simpler, for example, equipment end be concerned about only
The service for starting a uniquely tagged receives the instruction of control terminal sent and sends the status information (thing of oneself to control terminal
Part).Control terminal concerns all relevant equipment in discovery network, sends specific order, receiving device to designated equipment
State.Others do not spend care.
In actual use process, when being communicated between control terminal and Internet of Things module by alljoyn, if because
It goes offline for the reasons equipment such as network failure or abnormal power-down, control terminal, which takes a long time (2 minutes), to be found
Line, in this process, any operation equipment of control terminal all do not respond to, and can cause to perplex to user.
Therefore, how when network occurring or other connections are abnormal, rapidly discovering device goes offline, and is currently to need to solve
A technical problem certainly.
Summary of the invention
The technical problems to be solved by the present invention are: proposing between a kind of control terminal and internet of things equipment based on alljoyn
The communication means of agreement cannot quickly find to be connected to the network different when solving to be communicated in traditional technology based on alljoyn agreement
The problem of often or equipment goes offline.
The technical solution adopted by the present invention to solve the technical problems is: being based between a kind of control terminal and internet of things equipment
The communication means of alljoyn agreement, comprising the following steps:
A, start alljoyn service as Service name plus Fixed CP using No. SN of internet of things equipment;
B, corresponding internet of things equipment in control terminal hair request Network Search;
C, control terminal establishes session with the service of corresponding internet of things equipment and keeps connecting;
D, control terminal is communicated by the session kept with equipment;
E, equipment is by sending broadcast message notice control terminal current state.
Further, in step A, while starting alljoyn service, an interface is issued for service, which includes
The event of one function for receiving order and an issued state.
Further, in step B, control terminal is searched for alljoyn service by Fixed CP and is set to find corresponding Internet of Things
It is standby.
Further, in step C, control terminal establishes session with the service of corresponding internet of things equipment and keeps the specific side connecting
Method is:
Alljoyn agreement returns to all qualified alljoyn services, and control terminal is attempted to go to connect with specified port
Service;If be successfully connected, the session of connection is added in list of devices control terminal, and triggering equipment finds event, applies journey
Sequence can be performed corresponding processing by the event, if session connects not successfully, without processing, equipment is unavailable.
Further, in step C, when the control terminal and corresponding internet of things equipment establish session session protocol be TCP or
UDP。
Further, in step D, the control terminal includes: with the specific method that equipment is communicated by the session kept
After control terminal discovering device, the reception command functions that can be provided by service interface send to equipment end and control
Instruction, control instruction is sent to equipment end in binary form, and after equipment end receives control command, trigger command receives thing
Part, application program processing is corresponding to receive order.
Further, in step E, when equipment end is needed to the correlated condition of control terminal sending device, state is called to send
Function, which passes through the issued state event of alljoyn broadcast service interface, so as to all controls connecting with the equipment
End processed can receive, and after control terminal listens to the event, triggering state changes event and executes relevant operation to its application program.
Further, in step C, further includes:
After session establishment success between internet of things equipment and control terminal, internet of things equipment sends online notification message;
The control terminal number of devices currently online by the active session judgement established.
Further, in step E, further includes: when control terminal receive session go offline message when can reattempt and establish session, establish
Session success does not trigger offline event then, establishes conversation failure and then triggers offline event.
The beneficial effects of the present invention are:
1. making developer during using alljoyn agreement, it is not necessary to understand alljoyn interface, save
The development time has been saved, development efficiency is improved.
2. avoid Alljoyn protocol network exception, discovering device go offline overlong time the problem of.
3. the agreement for having unified Internet of Things module uses, the mistake being likely to occur in use process is avoided.
Detailed description of the invention
Fig. 1 is the communication means flow chart in the embodiment of the present invention.
Specific embodiment
The present invention is directed to propose the communication means based on alljoyn agreement between a kind of control terminal and internet of things equipment, solution
When certainly being communicated in traditional technology based on alljoyn agreement, network connection exception or asking of going offline of equipment cannot be quickly found
Topic.
The communication means the following steps are included:
A, start alljoyn service as Service name plus Fixed CP using No. SN of internet of things equipment;
B, corresponding internet of things equipment in control terminal hair request Network Search;
C, control terminal establishes session with the service of corresponding internet of things equipment and keeps connecting;
D, control terminal is communicated by the session kept with equipment;
E, equipment is by sending broadcast message notice control terminal current state.
The present invention simplifies alljoyn discovery service, provides specific interface, greatly reduce by formulating service regulation
Using the difficulty of alljoyn agreement, whether the session by using long connection is normal, as the mark for judging whether equipment goes offline
Standard, avoid receive equipment go offline overlong time the problem of.
Technical solution of the present invention is further elaborated with reference to the accompanying drawings and embodiments:
Be equipped in this example the equipment end of Changhong Internet of Things module using the Fixed CP of Changhong and the SN of this equipment as
Service name starts Alljoyn service, and is service one interface of publication, which includes the function for receiving order and one
The event of issued state.As shown in Figure 1, after control terminal starting, with all Internet of Things in the Fixed CP search network of Changhong
Net equipment, alljoyn consultation return to all qualified alljoyn services, and control terminal can be attempted to be gone with specified port
Connection service.If be successfully connected, the session of connection is added in list of devices control terminal, and triggering equipment finds event, application
Program can be performed corresponding processing by the event, if session connects not successfully, without processing, equipment is unavailable.
After control terminal discovering device, the reception command functions that can be provided by service interface send to equipment end and control
Instruction.Control instruction is sent to equipment end in binary form, and after equipment end receives control command, trigger command receives thing
Part, application program processing is corresponding to receive order.
When equipment end is needed to the correlated condition of control terminal sending device, state is called to send function, which passes through
The issued state event of alljoyn broadcast service interface, so that all control terminals connecting with the equipment can receive, control
After end listens to the event, triggering state changes event and executes relevant operation to application program.
When session connection disconnects, control terminal detects the session whether in equipment list, if session is tasted in list of devices
Session is established in examination again, and it is unsuccessful to establish session, triggers equipment off-line event.It is of course also possible to not have to attempt to establish meeting again
Words, and directly trigger equipment off-line event.
Claims (4)
1. the communication means based on alljoyn agreement between a kind of control terminal and internet of things equipment, which is characterized in that including following
Step:
A, internet of things equipment starts alljoyn service as Service name plus Fixed CP using No. SN of the internet of things equipment;It is opening
While dynamic alljoyn service, an alljoyn broadcast service interface is issued for service, which includes a reception order
Function and an issued state event;
B, control terminal searches for corresponding internet of things equipment in alljoyn service search network by Fixed CP;
C, control terminal establishes session with the alljoyn service of corresponding internet of things equipment and keeps connecting, and specifically includes:
Alljoyn agreement returns to all qualified alljoyn services, the specified port connection alljoyn clothes of control terminal
Business;If be successfully connected, the session of connection is added in list of devices control terminal, and triggers equipment discovery event, control terminal
Application program can find that event performs corresponding processing by the equipment, if session connects not successfully, without handling,
Equipment is unavailable;
D, control terminal is communicated by the session kept with corresponding internet of things equipment equipment, is specifically included:
After control terminal finds corresponding internet of things equipment, pass through the reception of the alljoyn broadcast service interface offer of internet of things equipment
Command functions send control instruction to internet of things equipment, and control instruction is sent to internet of things equipment, Internet of Things in binary form
After equipment receives control command, trigger command receives event, and the application program processing of internet of things equipment is corresponding to receive order;
E, internet of things equipment notifies control terminal current state by sending broadcast message, specifically includes:
When internet of things equipment end needs to send the correlated condition of this equipment to control terminal, the state of this equipment is called to send letter
Number, the state send the issued state that function is provided by the alljoyn broadcast service interface of this equipment of alljoyn serviced broadcast
Event, so that all control terminals connecting with the equipment can receive, after control terminal listens to the issued state event, triggering
State changes event and executes relevant operation to the application program of control terminal.
2. the communication means based on alljoyn agreement between a kind of control terminal as described in claim 1 and internet of things equipment,
It is characterized in that, in step C, the control terminal and corresponding internet of things equipment establish the session protocol of session as TCP or UDP.
3. the communication means based on alljoyn agreement between a kind of control terminal as described in claim 1 and internet of things equipment,
It is characterized in that, in step C, further includes:
After session establishment success between internet of things equipment and control terminal, internet of things equipment sends online notification message;Control
The end internet of things equipment quantity currently online by the active session judgement established.
4. the communication means based on alljoyn agreement between a kind of control terminal as described in claim 1 and internet of things equipment,
Be characterized in that, in step E, further includes: when control terminal receive session go offline message when can reattempt and establish session, establish session at
Function does not trigger offline event then, establishes conversation failure and then triggers offline event.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610057147.3A CN105681436B (en) | 2016-01-27 | 2016-01-27 | Communication means based on alljoyn agreement between control terminal and internet of things equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610057147.3A CN105681436B (en) | 2016-01-27 | 2016-01-27 | Communication means based on alljoyn agreement between control terminal and internet of things equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105681436A CN105681436A (en) | 2016-06-15 |
CN105681436B true CN105681436B (en) | 2019-02-05 |
Family
ID=56302732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610057147.3A Active CN105681436B (en) | 2016-01-27 | 2016-01-27 | Communication means based on alljoyn agreement between control terminal and internet of things equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105681436B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107181674A (en) * | 2017-06-16 | 2017-09-19 | 深圳市盛路物联通讯技术有限公司 | Message delivery method and device in Internet of Things |
CN109413182A (en) * | 2018-10-29 | 2019-03-01 | 济南浪潮高新科技投资发展有限公司 | A kind of platform of internet of things terminal affair exchange method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2197155A1 (en) * | 2008-12-12 | 2010-06-16 | Alcatel, Lucent | A module and associated method for path information |
CN104486252A (en) * | 2014-12-31 | 2015-04-01 | 北京海尔广科数字技术有限公司 | Method and device for thin clients to have access to standard clients |
CN204652433U (en) * | 2015-05-04 | 2015-09-16 | 黄晖 | A kind of Internet of Things intelligent system |
CN104994134A (en) * | 2015-05-22 | 2015-10-21 | 北京海尔广科数字技术有限公司 | Device calling method, device information sending method and devices |
-
2016
- 2016-01-27 CN CN201610057147.3A patent/CN105681436B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2197155A1 (en) * | 2008-12-12 | 2010-06-16 | Alcatel, Lucent | A module and associated method for path information |
CN104486252A (en) * | 2014-12-31 | 2015-04-01 | 北京海尔广科数字技术有限公司 | Method and device for thin clients to have access to standard clients |
CN204652433U (en) * | 2015-05-04 | 2015-09-16 | 黄晖 | A kind of Internet of Things intelligent system |
CN104994134A (en) * | 2015-05-22 | 2015-10-21 | 北京海尔广科数字技术有限公司 | Device calling method, device information sending method and devices |
Also Published As
Publication number | Publication date |
---|---|
CN105681436A (en) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7958247B2 (en) | HTTP push to simulate server-initiated sessions | |
CN110417915B (en) | Push message transmission method and device, storage medium and electronic equipment | |
US8914449B2 (en) | Push messaging platform with high scalability and high availability | |
CN103312528B (en) | A kind of heartbeat message sending method and user terminal | |
CN109246220B (en) | Message pushing system and method | |
CN106789468A (en) | A kind of appliances equipment control method and system based on intelligent terminal | |
WO2013097452A1 (en) | Method for receiving data, method for transmitting data, mobile terminal, and server | |
CN113632512A (en) | Transmitting monitoring event information during mobility procedures | |
CN105681436B (en) | Communication means based on alljoyn agreement between control terminal and internet of things equipment | |
CN113543281A (en) | Voice communication method and voice communication device | |
CN107743081B (en) | Household appliance, control method and system thereof, and computer readable storage medium | |
JP2007221381A (en) | Mobile terminal, resource arrangement manager and communication control method | |
US10567183B2 (en) | System and method for conference messaging between telephony devices in a first network and devices connected to a second network | |
CN103001822B (en) | The processing method of Network Abnormal and device | |
CN110830934A (en) | Call failure processing method and device | |
CN116095664B (en) | Method for realizing service registration of newly-added Beidou user machine in system | |
CN106231538B (en) | Method and device for binding OneM2M architecture equipment | |
CN110493773B (en) | Method and equipment for acquiring authentication capability of mobile equipment | |
KR100811882B1 (en) | Method and apparatus for multimedia messaging service using Parlay X Web service | |
US10616408B2 (en) | Method for automatic start up of a communication terminal configured for voice communication on a communication terminal configured for text communication | |
CN104426792A (en) | Scheduler support ability query method, scheduler support ability notification method and scheduler support ability query device | |
JP2003115795A (en) | Communication system, server for use therein, agent control method, agent control program | |
CN104518944B (en) | A kind of communication suite presence conversion method, device and system | |
WO2020143013A1 (en) | Method and apparatus for processing query request, computer device and storage medium | |
CN114095759B (en) | Stream media redirection method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |