Method for sharing event information among multi-device at real time
Technical field
The present invention relates to a kind of method for sharing event information among multi-device at real time, specifically, the present invention relates to a kind of many device networks that are used for, the method that share information other equipment in network of this incident in the mode of broadcasting the back takes place in the incident in equipment.Belong to areas of information technology.
Background technology
Along with the development of information-intensive society, the information transmission between the people is more and more convenient, and in time large quantities of information transfer apparatus are active in people at one's side, such as mobile phone, and telephone set, PC, PDA or the like is for people's productive life is created immeasurable value.The user also often has a plurality of information transfer apparatus simultaneously, to realize the information transmission of different modes.
In the value composition factor of information, the promptness outbalance that information is transmitted, even sometimes, can information be transmitted timely between two users and determine directly whether this information is valuable.Therefore, people have proposed more and more stricter requirement for the promptness of information transmission.
Although present information transfer apparatus can be realized the transmission of " immediately " information mostly, must be under user's mode of operation based on this equipment, the user can this instant messaging equipment of " immediately " perception receives the prerequisite of information in other words.If not, even if then information has been delivered in the equipment, the also only instant messaging between the equipment, and can not think that the user has obtained this information " immediately ".Such as, often there is the user to miss important phone because mobile phone places mute state in the actual life, perhaps can't learn the arrival of new mail in the very first time because left computer screen.
Therefore, propose a kind of can be between different information transfer apparatus shared device receive the state of information, can promote the promptness of message pick-up effectively.
Summary of the invention
The objective of the invention is to overcome problems of the prior art, a kind of method of many equipment rooms Real-Time Sharing event information is provided, thereby promote the promptness that the user learns incident effectively.
In order to achieve the above object, the present invention adopts following method (flow chart is as shown in Figure 1):
1. when incident 101 took place, incident receiver module 102 write down the generation of these incidents, and extracted the correlation attribute value of this incident;
2. incident package module 103 is with the correlation attribute value of this incident, and good by appointment form tissue is arranged, and is encapsulated into encapsulated data packet 201 such as being described in the XML mode;
3. incident forwarding module 104 is broadcasted encapsulated data packet 201 message sink module 301 to miscellaneous equipment in registered many device networks;
4. per unit message sink module 301 is used the state of this equipment by user mode test module 302 test subscribers after the encapsulated data packet 201 of receiving broadcast transmission; Do not use this equipment as test result for the user, promptly equipment is in user's unused state, then abandons encapsulated data packet 201, does not do any response; Using this equipment as test result for the user, promptly equipment is in user's user mode, then resolves by the data in 303 pairs of encapsulated data packet 201 of data resolution module, forms the data of description 202 at this equipment;
5. resolve the data of description 202 of the particular device that generates by data resolution module 303, will be by input data as rule match module 304; Rule match module 304 passes through in the predefine rule base 305 inquiry predefine rule and carries out rule match after receiving described input data 202; Certain bar rule of importing as described in data 202 and the predefine rule base 305 is complementary, and then fetches the predefined response mode of this rule; Arbitrary the rule of importing as described in data 202 and the predefine rule base 305 all do not match, and then abandons input data 202, do not do any response.
6. certain the bar rule in importing data 202 and predefine rule base 305 as mentioned above is complementary and fetches after this predefined response mode of rule institute, response is implemented module 306 according to this predefined response mode, provides corresponding prompt to the user on this equipment.
Compare with prior art, the present invention has realized the event information Real-Time Sharing of many equipment rooms preferably, helps the user and in time obtains event information, learns the states such as generation of incident, has using value comparatively widely.
Description of drawings
Fig. 1 is the inventive method schematic flow sheet.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
Embodiment 1
The generation of incident receiver module 102 perception events 101 on the mobile device PDA, for example receive a note, this receives the incident of note incident receiver module 102 records, and the association attributes of note, for example send short message number, receive the time of note, the word content that receives note, the image content that receives note, the attributes extraction such as other content of multimedia that receive note come out.
Incident package module 103 on the mobile device is described encapsulation with above-mentioned each attribute in the XML mode, forms encapsulated data packet 201.
Incident forwarding module 104 on the mobile device PDA with this encapsulated data packet 201, is broadcasted to miscellaneous equipment in registered many device networks, and for example these many device networks also comprise a PC, a notebook computer.
Message sink module 301 on two equipment of PC and notebook computer, the encapsulated data packet 201 that 104 broadcast transmissions of incident forwarding module of mobile device are come is received in the capital, and the 302 couples of users of user mode test module that use separately respectively use the state of this equipment to test afterwards.For example, suppose that the active user is just at the PC line operate that advances, then the user mode test module 302 on the PC is made judgement by the occurrence frequency of peripheral hardware incidents such as the keyboard on the monitoring PC, mouse, return test result and using this equipment for the user, so the data in 303 pairs of encapsulated data packet 201 of the data resolution module on the PC are resolved, be created on the PC equipment data of description 202 to this incident; And the user mode test module 302 on the notebook computer is made judgement by the occurrence frequency of peripheral hardware incidents such as the keyboard on the monitoring notebook computer, mouse, return test result and do not use this equipment for the user, so notebook computer will abandon this encapsulated data packet 201, not do any response.
Data in 303 pairs of encapsulated data packet 201 of data resolution module on the PC are resolved, and are created on the PC equipment after the data of description 202 to this incident, and this data of description 202 will be delivered to as input in the rule match module 304 on the PC carries out rule match.Carry out match query in the predefine rule base 305 on the rule match module 304 to PC.If all do not match with arbitrary predefine rule, then PC equipment will abandon data of description 202, not do any response; Certain bar rule of importing as described in data 202 and the predefine rule base 305 is complementary, then fetch the predefined response mode of this rule, for example be the good response mode that after receiving note on the mobile device, on PC, should make of predefine in this specific embodiment, for example remind to have received new message on user's mobile device PDA and shown respective attributes and synopsis in the bubble mode on the status bar.This response mode after the 304 coupling acquisitions of rule match module, is implemented module 306 by the response on the PC and is specifically implemented.
Embodiment 2
The generation of incident receiver module 102 perception events 101 on the PC, for example receive an envelope Email, this receives the incident of Email incident receiver module 102 records, and, for example send attributes extraction such as the Attachment Name of the addresser of Email, the time that receives Email, the word content that receives Email, the Email that receives and size and come out the association attributes of Email.
Incident package module 103 on the PC is described encapsulation with above-mentioned each attribute in the XML mode, forms encapsulated data packet 201.
Incident forwarding module 104 on the PC with this encapsulated data packet 201, is broadcasted to miscellaneous equipment in registered many device networks, for example also comprises a mobile device PDA in these many device networks, a notebook computer is broadcasted.
Message sink module 301 on two equipment of mobile device PDA and notebook computer, the encapsulated data packet 201 that 104 broadcast transmissions of incident forwarding module of PC are come is received in the capital, and the 302 couples of users of user mode test module that use separately respectively use the state of this equipment to test afterwards.For example, suppose that the active user is just at the enterprising line operate of mobile device PDA, then the user mode test module 302 on the PDA is made judgement by the keypad use on the monitoring PDA, pen with the occurrence frequency of the peripheral hardware incidents such as interactive action of screen, return test result and using this equipment for the user, so the data in 303 pairs of encapsulated data packet 201 of the data resolution module on the PDA are resolved, be created on the PDA equipment data of description 202 to this incident; And the user mode test module 302 on the notebook computer is made judgement by the occurrence frequency of peripheral hardware incidents such as the keyboard on the monitoring notebook computer, mouse, return test result and do not use this equipment for the user, so notebook computer will abandon this encapsulated data packet 201, not do any response.
Data in 303 pairs of encapsulated data packet 201 of data resolution module on the PDA are resolved, be created on the PDA equipment after the data of description 202 to this incident, this data of description 202 will be delivered to as input in the rule match module 304 on the PDA carries out rule match.Carry out match query in the predefine rule base 305 on the rule match module 304 to PDA.If all do not match with arbitrary predefine rule, then PDA equipment will abandon data of description 202, not do any response; Certain bar rule of importing as described in data 202 and the predefine rule base 305 is complementary, then fetch the predefined response mode of this rule, it for example in this specific embodiment the good response mode that after receiving Email on the PC, on PDA, should make of predefine, for example eject a dialog box and notify and received an envelope new e-mail on the user PC, provide the addresser and the synopsis of this Email simultaneously.This response mode after the 304 coupling acquisitions of rule match module, is implemented module 306 by the response on the PDA and is specifically implemented.