Network service processing method, information broadcast and control method and device
Technical field
The present invention relates to AllJoyn network fields, broadcast and control more particularly to a kind of network service processing method, information
Method processed and device.
Background technique
AllJoyn is an open source software project, it provides a kind of general communications framework for different electronic equipments;
AllJoyn is a kind of communications framework of P2P (PeertoPeer, peer to peer connection), and communicating pair is service provider kimonos respectively
Be engaged in user.In the communication mechanism of AllJoyn, service provider and service user by realize identical interface specification come
It is communicated.AllJoyn interface includes three method, attribute and signal members, wherein method, that is, function call receives one
Or multiple input parameters, respective handling is carried out, and return to one or more output parameters;Attribute be include it is read-only, only write and can
Read the variable of writeable three kinds of modes;Signal is asynchronous notification information, and receiving side signal is carried out corresponding by signal processing mechanism
Operation.
In addition, AllJoyn provides event-motion mechanism, event is the interface signal for including human-readable text, and movement is
Interface method including human-readable text, user can by UI Preferences event and movement between triggering relationship,
And regulation engine can save the triggering relationship between the event of user setting and movement, regulation engine is needed as an application program
One is operated in be connected to long-term and stably in the equipment of AP (Access Point, access point).
Often there are the application demand of scene linkage, signal processing mechanism and event-movement in AllJoyn in smart home
Mechanism can link for scene and provide technical feasibility.
But inventor has found that the prior art has the disadvantage that when realizing the present invention
Event in AllJoyn is exactly signal on message format, but with the addition of human-readable text, from message class
Event and signal can not be distinguished in type, thus can also can cause AllJoyn network service with trigger signal treatment mechanism
Conflict.It is described as follows:
In AllJoyn usage scenario, equipment vendor or developer can monitor a certain signal according to the service that one's own side provides,
Once signal occurs, corresponding operating is just executed.But user may not know due to providing service to equipment vendor or developer
The triggering relationship between same event and movement is arranged by event-motion mechanism of AllJoyn in feelings, this will lead to
AllJoyn business repeats, and causes unpredictable effect.
By taking scene links as an example, the case where service conflict being likely to occur in current AllJoyn network, is as shown in Figure 1.
When intelligent door on or off, door can be issued and hold the event closed with door, when intelligent door sends event,
Signal processor in intelligent lighting can listen to event, and trigger operation of turning on light or turn off the light;
User is by event-motion mechanism in AllJoyn to the event and intelligent lamp of intelligent door transmission in regulation engine
The movement that light executes is matched;
When intelligent door sends the event that door is opened, the signal processor in intelligent lighting listens to the event that door is opened, and just touches
The operation turned on light has been sent out, simultaneously as being provided with the pairing relationship between intelligent door and intelligent lighting in regulation engine, can also have been triggered
The operation turned on light.This operation that will lead to turn on light repeats, and causes AllJoyn network service conflict, as shown in Figure 1.Its
In solid line with the arrow indicate signal processing mechanism, dotted line with the arrow indicates event-motion mechanism.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of network service processing method, information broadcast and control method with
And device, to solve the problems, such as that prior art AllJoyn network service conflicts.
In order to solve the above technical problems, the present invention provides a kind of broadcasting method of service equipment in network, the method packet
Include following steps: service equipment generates About broadcast message, and the broadcast message includes that the service of the service equipment has been realized
Event/Action Model pair;The service equipment to control device broadcasts described in About broadcast message.
The present invention also provides a kind of control methods of network central control control equipment, the described method comprises the following steps: control is set
It is standby to obtain and store the Event/Action Model pair that the service of ambient service equipment has been realized;When user matches event and movement
When, the regulation engine in equipment is controlled according to the Event/Action Model pair saved, forbids user to the Event/Action Model pair realized
It carries out repeating pairing;To the Event/Action Model not saved to normally being matched.
Further, the control equipment obtains and stores the Event/Action Model pair that the service of ambient service equipment has been realized
Process specifically includes:
The control equipment receives the About broadcast message of ambient service device broadcasts, and the broadcast message includes described
The Event/Action Model pair that the service of service equipment has been realized;
The Event/Action Model pair that the ambient service equipment has been realized, and the thing that will acquire are obtained from the broadcast message
Part/movement is to being saved in the regulation engine.
Further, described when the regulation engine forbids user to the Event/Action Model realized to repeat with clock synchronization
Method further includes issuing the user with corresponding prompt information.
The present invention also provides a kind of network service processing methods, the described method comprises the following steps: service equipment generates
About broadcast message, the broadcast message include the Event/Action Model pair that the service of the service equipment has been realized;The service
Equipment to control device broadcasts described in About broadcast message;The control equipment obtains and stores the service of ambient service equipment
The Event/Action Model pair realized;When user control with clock synchronization the regulation engine in equipment according to having protected to event and movement
The Event/Action Model pair deposited, forbid user to the Event/Action Model realized to carry out repeat pairing;To the event not saved/dynamic
It opposes and is normally matched.
Further, the control equipment obtains and stores the Event/Action Model pair that the service of ambient service equipment has been realized
Process specifically includes:
The control equipment receives the About broadcast message of ambient service device broadcasts, and the broadcast message includes described
The Event/Action Model pair that the service of service equipment has been realized;
The Event/Action Model pair that the ambient service equipment has been realized, and the thing that will acquire are obtained from the broadcast message
Part/movement is to being saved in the regulation engine.
The present invention also provides the service equipments in a kind of network, comprising: broadcast message generation unit, for generating About
Broadcast message, the broadcast message include the Event/Action Model pair that the service of the service equipment has been realized;Information radio unit,
For to control device broadcasts described in About broadcast message.
The present invention also provides the control equipment in a kind of network, comprising: broadcast message receiving unit, for being taken around receiving
The About broadcast message for device broadcasts of being engaged in, the broadcast message includes the Event/Action Model that the service of the service equipment has been realized
It is right;Regulation engine, the Event/Action Model realized for the ambient service equipment to be obtained and saved from the broadcast message
It is right;When user carries out with clock synchronization event and movement, the regulation engine forbids user according to the Event/Action Model pair saved
To the Event/Action Model realized to carry out repeat pairing;Event and movement pairing unit, for when user to event and act into
Row matches clock synchronization, and the Event/Action Model not saved to the regulation engine is to normally being matched.
It further, further include prompt unit, for forbidding user to the Event/Action Model pair realized when the regulation engine
Repeat issuing the user with corresponding prompt information with clock synchronization.
The present invention also provides a kind of network service processing systems, and the system comprises service equipments and control equipment;
The service equipment includes: broadcast message generation unit, for generating About broadcast message, the broadcast message
The Event/Action Model pair that service including the service equipment has been realized;Information radio unit, for described in control device broadcasts
About broadcast message;
The control equipment includes: broadcast message receiving unit, and the About for receiving ambient service device broadcasts is broadcasted
Information, the broadcast message include the Event/Action Model pair that the service of the service equipment has been realized;Regulation engine is used for from institute
It states and the Event/Action Model pair that the ambient service equipment has been realized is obtained and saved in broadcast message;When user is to event and movement
It carries out with clock synchronization, the regulation engine forbids user to the Event/Action Model pair realized according to the Event/Action Model pair saved
It carries out repeating pairing;Event and movement pairing unit, for draw the rule with clock synchronization to event and movement as user
The Event/Action Model that does not save is held up to normally being matched.
The present invention has the beneficial effect that:
Service equipment of the invention adds the event monitored in one's own side's service in About broadcast message and can trigger
Corresponding actions, and regulation engine receives the About broadcast message of relevant device, saves the correspondence between wherein event and movement
Relationship.When user wishes that the pairing relationship between event and movement is arranged by regulation engine, regulation engine can forbid user
To the Event/Action Model saved to being matched again, and corresponding prompt is provided to user.The invention avoids AllJoyn nets
Network service conflict problem, improves the robustness of AllJoyn, improves user experience.
The present invention only needs the addition one's own side service in the About broadcast message of service equipment for supporting AllJoyn real
Existing Event/Action Model pair, regulation engine saves the Event/Action Model pair realized that surrounding devices are broadcasted, when user passes through use
Family interface carries out event and movement to forbid user to repetition pairing is carried out, can have the Event/Action Model realized with clock synchronization
The conflict for avoiding to effect AllJoyn business is realized simple.
Detailed description of the invention
Fig. 1 is the schematic diagram that scene linkage is realized in a kind of AllJoyn network of the prior art;
Fig. 2 is a kind of flow chart of AllJoyn network service processing method of the embodiment of the present invention;
Fig. 3 is a kind of structure chart of AllJoyn network service processing system of the embodiment of the present invention;
Fig. 4 is a kind of specific implementation structure chart of AllJoyn network service processing system of the embodiment of the present invention.
Specific embodiment
In order to solve the problems, such as that prior art AllJoyn network service conflicts, the present invention provides at a kind of network service
Reason method, information broadcast and control method and device carry out the present invention further detailed below in conjunction with attached drawing and embodiment
It describes in detail bright.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, the present invention is not limited.
Embodiment 1
The broadcasting method of service equipment is the following steps are included: service is set in a kind of AllJoyn network of the embodiment of the present invention
Standby to generate About broadcast message, the broadcast message includes the Event/Action Model pair that the service of the service equipment has been realized;Institute
Service equipment is stated to About broadcast message described in control device broadcasts.
Embodiment 2
A kind of control method of AllJoyn network central control control equipment of the embodiment of the present invention is the following steps are included: connect control
Equipment obtains and stores the Event/Action Model pair that the service of ambient service equipment has been realized;When user matches event and movement
Clock synchronization controls the regulation engine in equipment according to the Event/Action Model pair saved, forbids user to the Event/Action Model realized
To carrying out repeating pairing, and corresponding prompt information is issued the user with;To the Event/Action Model not saved to normally being matched.
Wherein, the control equipment obtains and stores the mistake for the Event/Action Model pair that the service of ambient service equipment has been realized
Journey specifically includes: the control equipment receives the About broadcast message of ambient service device broadcasts, and the broadcast message includes institute
State the Event/Action Model pair that the service of service equipment has been realized;It is real that the ambient service equipment is obtained from the broadcast message
Existing Event/Action Model pair, and the Event/Action Model that will acquire is to being saved in the regulation engine.
Embodiment 3
A kind of AllJoyn network service processing method of the embodiment of the present invention is as shown in Fig. 2, the method includes following steps
It is rapid:
Step s201, service equipment generate About broadcast message, and the broadcast message includes the service of the service equipment
The Event/Action Model pair realized;
Step s202, the service equipment to control device broadcasts described in About broadcast message;
Step s203, the control equipment receive the About broadcast message of ambient service device broadcasts, the broadcast message
The Event/Action Model pair that service including the service equipment has been realized;
Step s204 obtains the Event/Action Model pair that the ambient service equipment has been realized from the broadcast message, and will
The Event/Action Model of acquisition is in the regulation engine being saved in control equipment;
Step s205, when user carries out with clock synchronization event and movement, the regulation engine is according to the event saved/move
It opposes, user is forbidden to carrying out repeating pairing, and to issue the user with corresponding prompt information to the Event/Action Model realized;To not having
There is the Event/Action Model of preservation to normally being matched.
Embodiment 4
Service equipment in a kind of AllJoyn network of the embodiment of the present invention, comprising: broadcast message generation unit is used for
About broadcast message is generated, the broadcast message includes the Event/Action Model pair that the service of the service equipment has been realized;Information
Radio unit is used for About broadcast message described in control device broadcasts.
Embodiment 5
Control equipment in a kind of AllJoyn network of the embodiment of the present invention, comprising: broadcast message receiving unit is used for
The About broadcast message of ambient service device broadcasts is received, the broadcast message includes that the service of the service equipment has been realized
Event/Action Model pair;Regulation engine has been realized for the ambient service equipment to be obtained and saved from the broadcast message
Event/Action Model pair;When user carries out with clock synchronization event and movement, the regulation engine according to the Event/Action Model pair saved,
Forbid user to the Event/Action Model realized to carry out repeat pairing;Event and movement pairing unit, for when user is to event
It carries out with movement with clock synchronization, the Event/Action Model not saved to the regulation engine is to normally being matched;Prompt unit is used
In forbidding user to match clock synchronization to repetition is carried out to the Event/Action Model realized when the regulation engine, issues the user with and accordingly mention
Show information.
Embodiment 6
A kind of AllJoyn network service processing system of the embodiment of the present invention is as shown in figure 3, the system comprises services to set
For 31 and control equipment 32, wherein the service equipment 31 is connect with control equipment 32.
Service equipment 31 includes broadcast message generation unit 311 and information radio unit 312, wherein the broadcast message is raw
It is connected at unit 311 and information radio unit 312.The broadcast message generation unit 311 is used to generate About broadcast message,
The broadcast message includes the Event/Action Model pair that the service of the service equipment has been realized;The information radio unit 312 is used for
The About broadcast message is broadcasted to control equipment 32.
The control equipment 32 includes broadcast message receiving unit 321, regulation engine 322, event and movement pairing unit
323, wherein regulation engine 322 is connect with broadcast message receiving unit 321, event and movement pairing unit 323 respectively.It is described wide
It includes described that information receiving unit 321, which is broadcast, for receiving the About broadcast message of ambient service device broadcasts, the broadcast message
The Event/Action Model pair that the service of service equipment has been realized;The regulation engine 322 is for obtaining and protecting from the broadcast message
Deposit the Event/Action Model pair that the ambient service equipment has been realized;When user carries out with clock synchronization event and movement, the rule is drawn
322 are held up according to the Event/Action Model pair that has saved, forbids user to the Event/Action Model realized to carrying out repeating pairing;The thing
Part and movement pairing unit 323 are used to do not save the regulation engine 322 with clock synchronization to event and movement as user
Event/Action Model to normally being matched.
Embodiment 7
A kind of specific implementation structure of AllJoyn network service processing system of the embodiment of the present invention is as shown in Figure 4.
The About broadcast mechanism of AllJoyn can make service equipment have the ability to surrounding devices broadcast one's own side's information, including equipment
Number, application numbers, application version and manufacturer's information etc..One's own side's clothes are added in the embodiment of the present invention in About broadcast message
The Event/Action Model pair that business has been realized.Wherein I pairs of X Event/Action Model has been realized in the service in equipment A, and the service in equipment B is real
Existing J pairs of X Event/Action Model.It realizes that process is as follows:
(1) equipment A generates About broadcast message, and the broadcast message includes that X Event/Action Model has been realized in the service of equipment A
I pairs;Equipment B generates About broadcast message, and the broadcast message includes that J pairs of X Event/Action Model has been realized in the service of equipment B.
(2) equipment A and equipment B broadcasts the About broadcast message of each self-generating to regulation engine.
(3) the About broadcast message of regulation engine receiving device A and equipment B broadcast.
(4) regulation engine obtain and store X Event/Action Model I to and J pairs of X Event/Action Model.
(5) when user carries out with clock synchronization event and movement by user interface, regulation engine according to the event saved/
Movement pair forbids user to carry out repeating pairing to X Event/Action Model I and X Event/Action Model J, and issues the user with corresponding prompt letter
Breath;And the event X/ movement K not saved normally is matched.
In this way, by taking linkage scene shown in FIG. 1 as an example when intelligent door is opened, door can be issued and hold event, when intelligent door is sent out
When sending event, the signal processor in intelligent lighting can listen to event, and trigger movement of turning on light;
And the corresponding movement of turning on light of event is opened since regulation engine has stored door, user cannot pass through
Event-motion mechanism carries out repeating pairing in regulation engine in AllJoyn;
When intelligent door sends the event that door is opened, the signal processor in intelligent lighting listens to the event that door is opened, and just touches
The operation turned on light has been sent out, simultaneously as the pairing relationship between intelligent door and intelligent lighting is not provided in regulation engine, it would not
Triggering the operation turned on light will not AllJoyn network service conflict so as to avoid repeating for operation of turning on light.
Service equipment of the invention adds the event monitored in one's own side's service in About broadcast message and can trigger
Corresponding actions, and regulation engine receives the About broadcast message of relevant device, saves the correspondence between wherein event and movement
Relationship.When user wishes that the pairing relationship between event and movement is arranged by regulation engine, regulation engine can forbid user
To the Event/Action Model saved to being matched again, and corresponding prompt is provided to user.The invention avoids AllJoyn nets
Network service conflict problem, improves the robustness of AllJoyn, improves user experience.
The present invention only needs the addition one's own side service in the About broadcast message of service equipment for supporting AllJoyn real
Existing Event/Action Model pair, regulation engine saves the Event/Action Model pair realized that surrounding devices are broadcasted, when user passes through use
Family interface carries out event and movement to forbid user to repetition pairing is carried out, can have the Event/Action Model realized with clock synchronization
The conflict for avoiding to effect AllJoyn business is realized simple.
Although for illustrative purposes, the preferred embodiment of the present invention has been disclosed, those skilled in the art will recognize
It is various improve, increase and replace be also it is possible, therefore, the scope of the present invention should be not limited to the above embodiments.