CN104536756A - Method and device for sending and processing AllJoyn network message - Google Patents

Method and device for sending and processing AllJoyn network message Download PDF

Info

Publication number
CN104536756A
CN104536756A CN201410840049.8A CN201410840049A CN104536756A CN 104536756 A CN104536756 A CN 104536756A CN 201410840049 A CN201410840049 A CN 201410840049A CN 104536756 A CN104536756 A CN 104536756A
Authority
CN
China
Prior art keywords
message
type
event
alljoyn
signal
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
Application number
CN201410840049.8A
Other languages
Chinese (zh)
Other versions
CN104536756B (en
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.)
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Beijing Haier Guangke Digital Technology 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 Qingdao Haier Intelligent Home Appliance Technology Co Ltd, Beijing Haier Guangke Digital Technology Co Ltd filed Critical Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Priority to CN201410840049.8A priority Critical patent/CN104536756B/en
Publication of CN104536756A publication Critical patent/CN104536756A/en
Application granted granted Critical
Publication of CN104536756B publication Critical patent/CN104536756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for transmitting an AllJoyn network message. The method comprises the steps that a transmitting end generates a message; the transmitting end sends the generated message to a receiving end. The invention further discloses a method for processing the AllJoyn network message. The method comprises the steps that the receiving end receives the message; the message type in the received message is acquired; when the message type is signal transmitting, the message is processed by a signal processing mechanism; when the message type is incident transmitting, the message is processed by an incident-movement mechanism. The invention further discloses an AllJoyn network transmitting end and an AllJoyn network receiving end. According to the method and device for transmitting and processing the AllJoyn network message, a signal and an incident are distinguished with a method that an incident transmitting type is added in the message type of the AllJoyn network message, so that an AllJoyn network business conflict caused by the fact that a signal processing mechanism and the incident-movement mechanism are triggered by a same accident simultaneously is avoided, the AllJoyn robust is promoted, and the user experience is improved.

Description

AllJoyn internet message sends and disposal route and device
Technical field
The present invention relates to AllJoyn network field, particularly relate to a kind of AllJoyn internet message and send and disposal route and device.
Background technology
AllJoyn is an open source software project, and it is that different electronic equipments provides a kind of general communications framework; AllJoyn is the communications framework of a kind of P2P (PeertoPeer, peer to peer connection), and communicating pair is service provider respectively and serves user.In the communication mechanism of AllJoyn, service provider kimonos is make sure with side by realizing identical interface specification to communicate.AllJoyn interface comprises method, attribute and signal three members, and wherein, method and function call, accept one or more input parameter, carries out respective handling, and return one or more output parameter; Attribute be comprise read-only, only write and the readable variable writing three kinds of modes; Signal is asynchronous announcement information, and receiving side signal carries out corresponding operating by signal transacting mechanism.
In addition, AllJoyn provides event-motion mechanism, event is the interface signal comprising human-readable word, action is the interface method comprising human-readable word, user can by the trigger relation between UI Preferences event and action, and regulation engine can preserve the trigger relation between the event of user's setting and action, regulation engine needs to operate on the equipment being connected to AP (AccessPoint, access point) long-term and stably as an application program.
In Smart Home, often have the application demand that scene links, in AllJoyn, signal transacting mechanism and event-motion mechanism can provide technical feasibility for scene interlock.
But inventor finds when realizing of the present invention, prior art has following defect:
Event in AllJoyn is exactly signal on message format, but with the addition human-readable word, cannot distinguish from type of message to event and signal, thus also can trigger pip treatment mechanism, can cause the conflict of AllJoyn Network.Be described as follows:
In AllJoyn use scenes, the service that equipment vendor or developer can provide according to one's own side and monitor a certain signal, once signal occurs, just performs corresponding operating.But, user may owing to providing the ignorant of service to equipment vendor or developer, arrange the trigger relation between same event and action by the event-motion mechanism of AllJoyn, this will cause repeating of AllJoyn business, causes unpredictable effect.
For scene interlock, the situation of the service conflict that may occur in current AllJoyn network as shown in Figure 1.
When Intelligent door is opened or close time, can send the event of Men Kai and door pass, when Intelligent door sends event time, the signal processor in intelligent lighting can listen to event, and triggers operation of turning on light or turn off the light;
User is matched by the action of event and intelligent lighting execution that event-motion mechanism in AllJoyn is provided with Intelligent door transmission in regulation engine;
When the event that Intelligent door transmission door is opened, the signal processor in intelligent lighting listens to the event that door is opened, and just triggers the operation of turning on light, and meanwhile, owing to being provided with the pair relationhip between Intelligent door and intelligent lighting in regulation engine, also can trigger the operation of turning on light.This repeating of operation that will cause turning on light, causes AllJoyn Network conflict, as shown in Figure 1.Solid line wherein with arrow represents signal transacting mechanism, the dotted line presentation of events-motion mechanism of band arrow.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of AllJoyn internet message and sends and disposal route and device, in order to solve the problem that prior art AllJoyn Network conflicts.
For solving the problems of the technologies described above, the invention provides a kind of AllJoyn internet message sending method, said method comprising the steps of:
Transmitting terminal generating messages, described message comprises type of message, and described type of message comprises signal and sends and event transmission;
The message of generation is sent to receiving end by described transmitting terminal.
The present invention also provides a kind of AllJoyn network message processing method, said method comprising the steps of:
Receiving end receipt message;
Obtain the type of message in the message received;
When the type of described message is signal transmission, by signal transacting mechanism, described message is processed; When the type of described message is event transmission, by event-motion mechanism, described message is processed.
Further, describedly process is carried out to described message be specially by signal transacting mechanism: by described Message Transmission to signal processor, described signal processor processes described message.
Further, describedly by event-motion mechanism, process is carried out to described message and be specially: by described Message Transmission to regulation engine, described regulation engine processes described message.
Further, described type of message comprises signal transmission and event transmission.
The present invention also provides a kind of AllJoyn network transmitting terminal, comprising:
Message generation unit, for generating messages, described message comprises type of message, and described type of message comprises signal and sends and event transmission;
Message sending unit, for being sent to receiving end by the message of generation.
The present invention also provides a kind of AllJoyn network receiving terminal, comprising:
Message reception units, for the message that receiving end/sending end sends;
Type of message acquiring unit, for obtaining the type of message in the message that receives;
Signal transacting mechanism, during for being signal transmission when the type of described message, processes described message;
Event-motion mechanism, during for being event transmission when the type of described message, processes described message.
Further, described signal processor is made as signal processor.
Further, described event-motion mechanism is regulation engine.
Further, described type of message comprises signal transmission and event transmission.
Beneficial effect of the present invention is as follows:
The present invention by increasing the method for event transmission types in the type of message of AllJoyn internet message, distinguish signal and event, signal only understands trigger pip treatment mechanism, event only understands trigger event-motion mechanism, thus avoid same event simultaneously trigger pip treatment mechanism and event-motion mechanism and the AllJoyn business that causes repeats problem, avoid AllJoyn Network collision problem, improve the robustness of AllJoyn, improve Consumer's Experience.
The present invention is distinguished signal and event by the type of message definition of amendment AllJoyn message format, only needs just to manage conflict from root for signal and event define type of message respectively, realizes simple.
Accompanying drawing explanation
Fig. 1 is the schematic diagram realizing scene interlock in a kind of AllJoyn network of prior art;
Fig. 2 is the process flow diagram of a kind of AllJoyn Network disposal route of the embodiment of the present invention;
Fig. 3 is the structural drawing of a kind of AllJoyn Network disposal system of the embodiment of the present invention;
Fig. 4 a and Fig. 4 b is the schematic diagram realizing scene interlock in a kind of AllJoyn network of the embodiment of the present invention.
Embodiment
In order to solve the problem of prior art AllJoyn Network conflict, the invention provides a kind of AllJoyn internet message and sending and disposal route and device, below in conjunction with accompanying drawing and embodiment, the present invention being 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 1
A kind of AllJoyn internet message sending method of the embodiment of the present invention comprises the following steps: transmitting terminal generating messages, and described message comprises type of message, and described type of message comprises signal and sends and event transmission; The message of generation is sent to receiving end by described transmitting terminal.
Embodiment 2
A kind of AllJoyn network message processing method of the embodiment of the present invention comprises the following steps: receiving end receipt message; Obtain the type of message in the message received, described type of message comprises signal and sends and event transmission; When the type of described message is signal transmission, by signal transacting mechanism, described message is processed; When the type of described message is event transmission, by event-motion mechanism, described message is processed.In the present embodiment, describedly process is carried out to described message be specially by signal transacting mechanism: by described Message Transmission to signal processor, described signal processor processes described message; Describedly by event-motion mechanism, process is carried out to described message and be specially: by described Message Transmission to regulation engine, described regulation engine processes described message.
Embodiment 3
A kind of AllJoyn Network disposal route of the embodiment of the present invention as shown in Figure 2, said method comprising the steps of:
Step s201, transmitting terminal generating messages, described message comprises type of message, and described type of message comprises signal and sends and event transmission;
Step s202, the message of generation is sent to receiving end by described transmitting terminal;
Step s203, described receiving end receipt message;
Step s204, obtains the type of message in the message received;
Step s205, when the type of described message is signal transmission, is processed described message by signal transacting mechanism; When the type of described message is event transmission, by event-motion mechanism, described message is processed.
Embodiment 4
A kind of AllJoyn network transmitting terminal of the embodiment of the present invention, comprising: message generation unit, for generating messages, described message comprises type of message, and described type of message comprises signal and sends and event transmission; Message sending unit, for being sent to receiving end by the message of generation.
Embodiment 5
A kind of AllJoyn network receiving terminal of the embodiment of the present invention, comprising: message reception units, for the message that receiving end/sending end sends; Type of message acquiring unit, for obtaining the type of message in the message that receives, described type of message comprises signal and sends and event transmission; Signal transacting mechanism, during for being signal transmission when the type of described message, process described message, in the present embodiment, described signal processor is made as signal processor; Event-motion mechanism, during for being event transmission when the type of described message, process described message, in the present embodiment, described event-motion mechanism is regulation engine.
Embodiment 6
As shown in Figure 3, described system comprises transmitting terminal 31 and receiving end 32 to a kind of AllJoyn Network disposal system of the embodiment of the present invention, and wherein said transmitting terminal 31 is connected with receiving end 32.
Transmitting terminal 31 comprises message generation unit 311 and message sending unit 312, and wherein said message generation unit 311 is connected with message sending unit 312.Described message generation unit 311 is for generating messages, and described message comprises type of message, and described type of message comprises signal and sends and event transmission; Described message sending unit 312 is for being sent to described receiving end 32 by the message of generation.
Described receiving end 32 comprises message reception units 321, type of message acquiring unit 322, signal processor 323 Sum fanction engine 3 24, and wherein type of message acquiring unit 322 is connected with message reception units 321, signal processor 323 Sum fanction engine 3 24 respectively.The message that described message reception units 321 sends for receiving end/sending end; Described type of message acquiring unit 322 is for obtaining the type of message in the message that receives; When described signal processor 323 is for being signal transmission when the type of described message, described message is processed; When described regulation engine 324 is for being event transmission when the type of described message, described message is processed.
Embodiment 7
Realize the situation of scene interlock in a kind of AllJoyn network of the embodiment of the present invention as shown in figures 4 a and 4b, wherein Fig. 4 a is the schematic diagram of signal transacting mechanism, and Fig. 4 b is the schematic diagram of event-motion mechanism.Its process is:
Time Intelligent door is opened or closed, event or the signal of Men Kai and door pass can be sent; When Intelligent door sends signal time, the signal processor in intelligent lighting can listen to signal, and triggers operation of turning on light or turn off the light; User is provided with same Trigger Logic in regulation engine, when Intelligent door sends event time, is triggered the operation of turning on light or turning off the light by event-motion mechanism.Because the present invention have modified the type definition about event and signal in AllJoyn message format, so the signal processor in light only can process the signal that Intelligent door sends, and regulation engine only can process the event that Intelligent door sends.
In the present embodiment, message format in AllJoyn has continued to use the message format in D-Bus agreement, AllJoyn message comprises message header and message body, define type of message in message header, the type of message in AllJoyn comprises five types: INVALID, METHOD_CALL, METHOD_RETURN, ERROR and SIGNAL.Event and signal are all SIGNAL on type of message.The present invention adds separately a kind of new type of message for event on the basis of original type of message---EVENT, from type of message, event and signal are distinguished, as shown in table 1, thus realize the signal transacting mechanism only meeting processing signals of AllJoyn, and the event-motion mechanism of AllJoyn only can process event, avoid the service conflict of AllJoyn network.
Table 1
Title Value Describe
INVALID 0 Inefficient type
METHOD_CALL 1 Method call
METHOD_RETURN 2 Method returns
ERROR 3 Mistake returns
SIGNAL 4 Signal sends
EVENT 5 Event sends
The present invention by increasing the method for event transmission types in the type of message of AllJoyn internet message, distinguish signal and event, signal only understands trigger pip treatment mechanism, event only understands trigger event-motion mechanism, thus avoid same event simultaneously trigger pip treatment mechanism and event-motion mechanism and the AllJoyn business that causes repeats problem, avoid AllJoyn Network collision problem, improve the robustness of AllJoyn, improve Consumer's Experience.
The present invention is distinguished signal and event by the type of message definition of amendment AllJoyn message format, only needs just to manage conflict from root for signal and event define type of message respectively, realizes simple.
Although be example object, disclose the preferred embodiments of the present invention, 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. an AllJoyn internet message sending method, is characterized in that, said method comprising the steps of:
Transmitting terminal generating messages, described message comprises type of message, and described type of message comprises signal and sends and event transmission;
The message of generation is sent to receiving end by described transmitting terminal.
2. an AllJoyn network message processing method, is characterized in that, said method comprising the steps of:
Receiving end receipt message;
Obtain the type of message in the message received;
When the type of described message is signal transmission, by signal transacting mechanism, described message is processed; When the type of described message is event transmission, by event-motion mechanism, described message is processed.
3. AllJoyn network message processing method as claimed in claim 2, it is characterized in that, describedly process is carried out to described message be specially by signal transacting mechanism: by described Message Transmission to signal processor, described signal processor processes described message.
4. AllJoyn network message processing method as claimed in claim 2, is characterized in that, describedly carries out process by event-motion mechanism to described message and is specially: by described Message Transmission to regulation engine, described regulation engine processes described message.
5. the AllJoyn network message processing method as described in any one of claim 2 to 4, is characterized in that, described type of message comprises signal and sends and event transmission.
6. an AllJoyn network transmitting terminal, is characterized in that, comprising:
Message generation unit, for generating messages, described message comprises type of message, and described type of message comprises signal and sends and event transmission;
Message sending unit, for being sent to receiving end by the message of generation.
7. an AllJoyn network receiving terminal, is characterized in that, comprising:
Message reception units, for the message that receiving end/sending end sends;
Type of message acquiring unit, for obtaining the type of message in the message that receives;
Signal transacting mechanism, during for being signal transmission when the type of described message, processes described message;
Event-motion mechanism, during for being event transmission when the type of described message, processes described message.
8. AllJoyn network receiving terminal as claimed in claim 7, it is characterized in that, described signal processor is made as signal processor.
9. AllJoyn network receiving terminal as claimed in claim 7, it is characterized in that, described event-motion mechanism is regulation engine.
10. the AllJoyn network receiving terminal as described in any one of claim 7 to 9, is characterized in that, described type of message comprises signal and sends and event transmission.
CN201410840049.8A 2014-12-30 2014-12-30 AllJoyn network message sending and processing method and device Active CN104536756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410840049.8A CN104536756B (en) 2014-12-30 2014-12-30 AllJoyn network message sending and processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410840049.8A CN104536756B (en) 2014-12-30 2014-12-30 AllJoyn network message sending and processing method and device

Publications (2)

Publication Number Publication Date
CN104536756A true CN104536756A (en) 2015-04-22
CN104536756B CN104536756B (en) 2020-02-07

Family

ID=52852288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410840049.8A Active CN104536756B (en) 2014-12-30 2014-12-30 AllJoyn network message sending and processing method and device

Country Status (1)

Country Link
CN (1) CN104536756B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967560A (en) * 2015-04-29 2015-10-07 北京海尔广科数字技术有限公司 Method of realizing linkage with equipment managed by gateway and device of realizing linkage with equipment managed by gateway
CN105357259A (en) * 2015-09-29 2016-02-24 青岛海尔智能家电科技有限公司 Method and device for automatically setting equipment linkage rule and associated equipment
CN106411835A (en) * 2016-05-25 2017-02-15 海尔优家智能科技(北京)有限公司 Transmission method and apparatus based on AllJoyn Control Panel

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103620576A (en) * 2010-11-01 2014-03-05 七网络公司 Caching adapted for mobile application behavior and network conditions
CN103929732A (en) * 2013-01-11 2014-07-16 中兴通讯股份有限公司 Method for managing terminal peripheral and M2M gateway

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103620576A (en) * 2010-11-01 2014-03-05 七网络公司 Caching adapted for mobile application behavior and network conditions
CN103929732A (en) * 2013-01-11 2014-07-16 中兴通讯股份有限公司 Method for managing terminal peripheral and M2M gateway

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967560A (en) * 2015-04-29 2015-10-07 北京海尔广科数字技术有限公司 Method of realizing linkage with equipment managed by gateway and device of realizing linkage with equipment managed by gateway
CN105357259A (en) * 2015-09-29 2016-02-24 青岛海尔智能家电科技有限公司 Method and device for automatically setting equipment linkage rule and associated equipment
CN106411835A (en) * 2016-05-25 2017-02-15 海尔优家智能科技(北京)有限公司 Transmission method and apparatus based on AllJoyn Control Panel
CN106411835B (en) * 2016-05-25 2019-09-06 海尔优家智能科技(北京)有限公司 A kind of transmission method and device based on AllJoyn Control Panel

Also Published As

Publication number Publication date
CN104536756B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN108965484B (en) Internet of things data transmission method, system and terminal
CN105472430A (en) Method of making mobile terminal ring through intelligent television, equipment and system thereof
CN108880972B (en) Information processing method, server and terminal
US10652185B2 (en) Information sending method and information sending apparatus
CN104967560A (en) Method of realizing linkage with equipment managed by gateway and device of realizing linkage with equipment managed by gateway
US20180347842A1 (en) Energy operations across domains
EP3091712B1 (en) Smart device for realizing multiple-device collaboration and working method for multiple-device collaboration
CN104536756A (en) Method and device for sending and processing AllJoyn network message
WO2016187821A1 (en) Method, device, and system for adjusting packet length in near field communication (nfc)
CN104247339A (en) Home network packet delivery
US20190114183A1 (en) Terminal Configuration Method and Terminal Based on Provision Protocol for Transmission
CN103037000B (en) Publish-subscribe system and notification message processing method thereof
CN104518890A (en) Network service processing method, information broadcasting and control method and device
CN104539508A (en) Access control method and device
US20150067066A1 (en) Provisioning Communication Services using Proxy Server in a Cloud
CN109510748B (en) Node and node interaction method and system
US9913010B2 (en) Data processing method and apparatus
CN105517111A (en) Methods and apparatuses for connecting devices with network
CN111124717A (en) Message delivery method, system and computer storage medium
CN101902704A (en) Message sending method, system and intercommunication server
CN110417875B (en) Method, system, equipment and storage medium for docking between cloud servers
CN110365790B (en) Message transmission method and device, cascade networking equipment and readable storage medium
CN111064588B (en) Message processing method, system, device and storage medium
CN104320695A (en) Method and system for family socializing of mobile device based on smart TV
EP3040891A1 (en) Method for providing information to determine a graph associated with a data item

Legal Events

Date Code Title Description
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170216

Address after: 100086 room 601-606, level, Pacific International Building, Zhichun Road, Beijing, 106, China

Applicant after: Haier smart technology (Beijing) Co., Ltd.

Applicant after: Qingdao Haier Intelligent Home Appliance Technology Co., Ltd.

Address before: 100086 Beijing, Zhichun Road, Zhongguancun, No. 106 crown office building, layer, layer 15

Applicant before: Beijing Haier Guangke Digital Techn Co., Ltd.

Applicant before: Qingdao Haier Intelligent Home Appliance Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210309

Address after: Room 601-606, 6 / F, Pacific International Building, 106 Zhichun Road, Haidian District, Beijing 100086

Patentee after: HAIER YOUJIA INTELLIGENT TECHNOLOGY (BEIJING) Co.,Ltd.

Patentee after: QINGDAO HAIER INTELLIGENT HOME APPLIANCE TECHNOLOGY Co.,Ltd.

Patentee after: Haier Zhijia Co.,Ltd.

Address before: Room 601-606, 6 / F, Pacific International Building, 106 Zhichun Road, Haidian District, Beijing 100086

Patentee before: HAIER YOUJIA INTELLIGENT TECHNOLOGY (BEIJING) Co.,Ltd.

Patentee before: QINGDAO HAIER INTELLIGENT HOME APPLIANCE TECHNOLOGY Co.,Ltd.