CN105681436A - Communication method between control end and Internet of Things devices based on alljoyn protocol - Google Patents
Communication method between control end and Internet of Things devices based on alljoyn protocol Download PDFInfo
- Publication number
- CN105681436A CN105681436A CN201610057147.3A CN201610057147A CN105681436A CN 105681436 A CN105681436 A CN 105681436A CN 201610057147 A CN201610057147 A CN 201610057147A CN 105681436 A CN105681436 A CN 105681436A
- Authority
- CN
- China
- Prior art keywords
- alljoyn
- internet
- session
- equipment
- control end
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000004891 communication Methods 0.000 title claims abstract description 28
- 238000000034 method Methods 0.000 title claims abstract description 15
- 239000013256 coordination polymer Substances 0.000 claims description 7
- 238000007796 conventional method Methods 0.000 abstract 1
- 238000005516 engineering process Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
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
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)
- Computer And Data Communications (AREA)
Abstract
The invention relates to the technique of alljoyn network communication, and discloses a communication method between a control end and Internet of Things devices based on an alljoyn protocol. The method is used for solving the problem in the conventional technique that a network connection abnormity or device offline cannot be rapidly discovered when communication based on the alljoyn protocol is carried out. The communication method comprises following steps of A, adding up the SN numbers of the Internet of Things devices and fixed prefixes as service names; starting alljoyn services; B, sending a request by the control end to search corresponding Internet of Things devices in a network; C, building sessions and keeping connections by the control end and the corresponding Internet of Things devices; D, communicating with the devices by the control end through the kept sessions and communication; and E, informing the control end of current states by the devices through sending broadcast messages. The method provided by the invention is applicable to household appliance control realized based on the alljoyn protocol.
Description
Technical field
The present invention relates to the alljoyn network communications technology, the communication means being specifically related to control between end and internet of things equipment based on alljoyn agreement.
Background technology
Alljoyn is an open source projects, is mainly used near radio transmission, by WiFi or Bluetooth technology, location and pp file transmission. It provides running environment for distributed application program in distinct device, particularly mobility, safety and dynamically configure. Alljoyn system has processed a difficult problem intrinsic in heterogeneous distributing system, and solves produced oddity problem when mobility introduces equation. This makes application developer can focus onto in the key problem of application program.
But find that the alljoyn interface provided is excessively complicated being applied to by Alljoyn in the process of product, developer for being unfamiliar with alljoyn is difficult to be made directly exploitation, some content is likely to be not required on stream be concerned about, but has to go to realize according to alljoyn specification. So how make development process simpler, the service simply starting a uniquely tagged of such as equipment end care, receive the instruction sent controlling end and send the status information (event) of oneself to control end. Control end it is of concern that find all relevant equipment in network, send specific order to designated equipment, receive the state of equipment. Other do not spend care.
In actual use procedure, when controlling to be communicated by alljoyn between end and Internet of Things module, if as network failure, or the reason equipment such as abnormal power-down go offline, control end takes long enough (2 minutes) and could find to go offline, in this process, control any operation equipment of end all without response, can cause the user puzzlement.
Therefore, how when network occurring or other connects abnormal, discovering device goes offline rapidly, is the technical problem currently needing solution badly.
Summary of the invention
The technical problem to be solved is: propose a kind of communication means controlled between end and internet of things equipment based on alljoyn agreement; when solving conventional art communicates based on alljoyn agreement, it is impossible to quickly find the problem that network connection exception or equipment go offline.
The technical solution adopted for the present invention to solve the technical problems is: a kind of communication means controlled between end and internet of things equipment based on alljoyn agreement, comprises the following steps:
A, start alljoyn service plus Fixed CP for Service name with No. SN of internet of things equipment;
B, control end send out corresponding internet of things equipment in request Network Search;
C, control end are set up session with the service of homologue networked devices and keep being connected;
D, control end carry out communication by the session kept with equipment;
E, equipment control end current state by sending broadcast notice.
Further, in step A, while starting alljoyn service, issuing an interface for service, this interface includes the event of a function receiving order and an issued state.
Further, in step B, control end and serviced thus finding homologue networked devices by Fixed CP search alljoyn.
Further, in step C, control end and set up session with the service of homologue networked devices and keep the concrete grammar being connected to be:
Alljoyn agreement returns all qualified alljoyn service, controls end and attempts going Connection Service with the port specified; If being successfully connected, controlling end and adding in list of devices by the session connected, the equipment that triggers finds event, and its application program can be processed accordingly by this event, if the unsuccessful connection of session, does not then process, and equipment is unavailable.
Further, in step C, it is TCP or UDP that described control end and homologue networked devices set up session protocol during session.
Further, in step D, the concrete grammar that described control end carries out communication by the session kept and equipment includes:
After controlling end discovering device, it is possible to by the reception command functions that service interface provides, send control instruction to equipment end, control instruction is sent to equipment end in binary form, after equipment end receives control command, trigger command receives event, and application program processes and receives order accordingly.
Further, in step E, when equipment end needs the correlation behavior sending equipment to control end, state of calling sends function, this function issued state event by alljoyn broadcast service interface, so that all control ends being connected with this equipment can receive, after control end listens to this event, the state that triggers changes event and performs associative operation to its application program.
Further, in step C, also include:
After session establishment success between internet of things equipment and control end, internet of things equipment sends notification message of reaching the standard grade; Control end and judge currently online number of devices by the active session set up.
Further, in step E, also include: when control end receive session go offline message time can reattempt and set up session, set up session success and then do not trigger off-line event, set up conversation failure and then trigger off-line event.
The invention has the beneficial effects as follows:
1. make developer in the process using alljoyn agreement, it is not necessary to alljoyn interface to be understood, saves the development time, improve development efficiency.
2. when avoiding Alljoyn protocol network exception, it has been found that equipment goes offline the problem of overlong time.
3. the agreement having unified Internet of Things module uses, it is to avoid the mistake being likely to occur in use procedure.
Accompanying drawing explanation
Fig. 1 is the communication means flow chart in the embodiment of the present invention.
Detailed description of the invention
It is contemplated that propose a kind of communication means controlled between end and internet of things equipment based on alljoyn agreement, when solving conventional art communicates based on alljoyn agreement, it is impossible to quickly find the problem that network connects exception or equipment goes offline.
This communication means comprises the following steps:
A, start alljoyn service plus Fixed CP for Service name with No. SN of internet of things equipment;
B, control end send out corresponding internet of things equipment in request Network Search;
C, control end are set up session with the service of homologue networked devices and keep being connected;
D, control end carry out communication by the session kept with equipment;
E, equipment control end current state by sending broadcast notice.
The present invention is by formulating service regulation, simplify alljoyn and find service, specific interface is provided, substantially reduce the difficulty using alljoyn agreement, by using the long session connected whether normal, as the standard whether judgment device goes offline, it is to avoid the equipment that receives goes offline the problem of overlong time.
Below in conjunction with drawings and Examples, technical scheme is further elaborated:
This example is equipped with the equipment end of Changhong Internet of Things module and starts Alljoyn service using No. SN of the Fixed CP of Changhong and this equipment as Service name, and issue an interface for service, this interface includes the event of a function receiving order and an issued state. As it is shown in figure 1, after control end starts, search for the property networked devices in network with the Fixed CP of Changhong, alljoyn consultation returns all qualified alljoyn service, and the port that control end can be attempted with specifying goes Connection Service. If being successfully connected, controlling end and adding in list of devices by the session connected, the equipment that triggers finds event, and application program can be processed accordingly by this event, if the unsuccessful connection of session, does not then process, and equipment is unavailable.
After controlling end discovering device, it is possible to by the reception command functions that service interface provides, send control instruction to equipment end. Control instruction is sent to equipment end in binary form, and after equipment end receives control command, trigger command receives event, and application program processes and receives order accordingly.
When equipment end needs the correlation behavior sending equipment to control end, state of calling sends function, this function issued state event by alljoyn broadcast service interface, so that all control ends being connected with this equipment can receive, after control end listens to this event, triggering state changes event and performs associative operation to application program.
When session connection disconnects, control end and detect this session whether in equipment list, if session is at list of devices, it tries again set up session, set up the unsuccessful then triggering equipment off-line event of session. It is of course also possible to need not attempt again setting up session, and directly trigger equipment off-line event.
Claims (9)
1. the communication means controlled between end and internet of things equipment based on alljoyn agreement, it is characterised in that comprise the following steps:
A, start alljoyn service plus Fixed CP for Service name with No. SN of internet of things equipment;
B, control end send out corresponding internet of things equipment in request Network Search;
C, control end are set up session with the service of homologue networked devices and keep being connected;
D, control end carry out communication by the session kept with equipment;
E, equipment control end current state by sending broadcast notice.
2. a kind of communication means controlled between end and internet of things equipment based on alljoyn agreement as claimed in claim 1, it is characterized in that, in step A, while starting alljoyn service, issuing an interface for service, this interface includes the event of a function receiving order and an issued state.
3. a kind of communication means controlled between end and internet of things equipment based on alljoyn agreement as claimed in claim 1, it is characterised in that in step B, is controlled end and is serviced thus finding homologue networked devices by Fixed CP search alljoyn.
4. a kind of communication means controlled between end and internet of things equipment based on alljoyn agreement as claimed in claim 1, it is characterised in that in step C, controls end and sets up session with the service of homologue networked devices and keep the concrete grammar being connected to be:
Alljoyn agreement returns all qualified alljoyn service, controls end and attempts going Connection Service with the port specified; If being successfully connected, controlling end and adding in list of devices by the session connected, the equipment that triggers finds event, and its application program can be processed accordingly by this event, if the unsuccessful connection of session, does not then process, and equipment is unavailable.
5. a kind of communication means controlled between end and internet of things equipment based on alljoyn agreement as claimed in claim 1, it is characterised in that in step C, it is TCP or UDP that described control end and homologue networked devices set up session protocol during session.
6. a kind of communication means controlled between end and internet of things equipment based on alljoyn agreement as claimed in claim 1, it is characterised in that in step D, the concrete grammar that described control end carries out communication by the session that keeps and equipment includes:
After controlling end discovering device, it is possible to by the reception command functions that service interface provides, send control instruction to equipment end, control instruction is sent to equipment end in binary form, after equipment end receives control command, trigger command receives event, and application program processes and receives order accordingly.
7. a kind of communication means controlled between end and internet of things equipment based on alljoyn agreement as claimed in claim 1, it is characterized in that, in step E, when equipment end needs the correlation behavior sending equipment to control end, state of calling sends function, this function issued state event by alljoyn broadcast service interface, in order to all control ends being connected with this equipment can receive, after control end listens to this event, the state that triggers changes event and performs associative operation to its application program.
8. a kind of communication means controlled between end and internet of things equipment based on alljoyn agreement as claimed in claim 1, it is characterised in that in step C, also include:
After session establishment success between internet of things equipment and control end, internet of things equipment sends notification message of reaching the standard grade; Control end and judge currently online number of devices by the active session set up.
9. a kind of communication means controlled between end and internet of things equipment based on alljoyn agreement as claimed in claim 1, it is characterized in that, in step E, also include: when control end receive session go offline message time can reattempt and set up session, set up session success and then do not trigger off-line event, set up conversation failure and then trigger off-line 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 true CN105681436A (en) | 2016-06-15 |
| CN105681436B 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) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018227703A1 (en) * | 2017-06-16 | 2018-12-20 | 深圳市盛路物联通讯技术有限公司 | Method and device for transmitting messages over 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 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018227703A1 (en) * | 2017-06-16 | 2018-12-20 | 深圳市盛路物联通讯技术有限公司 | Method and device for transmitting messages over internet of things |
| CN109413182A (en) * | 2018-10-29 | 2019-03-01 | 济南浪潮高新科技投资发展有限公司 | A kind of platform of internet of things terminal affair exchange method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105681436B (en) | 2019-02-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9712632B2 (en) | Method for receiving data, method for sending data, mobile terminal, and server | |
| JP5574544B2 (en) | Unified device management method and system | |
| US8050218B2 (en) | Mobile communications system PDIF and method for peer detection of mobile terminal | |
| CN106789468A (en) | A kind of appliances equipment control method and system based on intelligent terminal | |
| US10230807B2 (en) | Method and apparatus for energy-optimized data transmission using the OPC UA protocol in radio networks | |
| CN104320425A (en) | Method and device for receiving and sending message | |
| US10037253B2 (en) | Fault handling methods in a home service system, and associated household appliances and servers | |
| WO2020043209A1 (en) | Disconnected network state reporting method and apparatus, and storage medium | |
| CN109040295B (en) | Method and device for determining abnormal disconnection, terminal and storage medium | |
| CN104243482A (en) | Control method and device of intelligent device | |
| CN102761428A (en) | Server system and server switching method | |
| CN112020062A (en) | Communication control method and system for household appliances | |
| CN105681436A (en) | Communication method between control end and Internet of Things devices based on alljoyn protocol | |
| EP2891299B1 (en) | Systems and methods for efficient remote security panel configuration and management | |
| EP3223493B1 (en) | Point-to-point protocol (ppp)-based dial-on-demand method and device, and computer storage medium | |
| CN116028278A (en) | Main/standby dual-machine switching method, medium and system | |
| CN112839392B (en) | Method, device and system for reestablishing control and configuration protocol session of wireless access point | |
| CN103796229B (en) | A kind of session chainlink control method and device | |
| JP2012080205A (en) | Wireless communication system, leaving/connecting method from/to communication system, leaving/connecting program from/to communication system, and communication system | |
| CN106211142A (en) | A kind of WiFi AP terminal wide area network cut-in method | |
| WO2016074583A1 (en) | Self-adaptive network multi-screen interaction method and system | |
| CN109995620A (en) | A kind of method and smart home device controlling smart home device | |
| CN118433647B (en) | Industrial router short message receiving and sending method and industrial router | |
| JP4697594B2 (en) | PDP context control system, method, program, and portable terminal | |
| CN102378226B (en) | Optimization method and device for M2M (Machine-to-Machine) service |
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 |