Summary of the invention
In view of this, the invention provides a kind of method that realizes equipment association, without user, carry out complicated configuration operation, effectively improved associated efficiency.
Another object of the present invention is that above-mentioned design is applied in concrete applied environment, and a kind of associated server and system that realizes equipment association is provided, thereby guarantees realization and the application of the method.
For achieving the above object, the invention provides following technical scheme:
A method that realizes equipment association, comprising:
The association that the associated initiation of associated server reception user sends by associated initiating equipment is asked, and described associated request comprises equipment identification information and the correlating validation code information of user totem information, equipment to be associated;
Whether device identification and device authentication code information that associated server judgment device identification information is pre-stored with self with correlating validation code information is consistent, if,: associated server realizes the associated of the associated user of initiation and equipment room to be associated, and equipment to be associated and associated the associated of other associated equipment rooms of user of initiating.
Preferably, the associated initiation of described realization user is associated with equipment room to be associated, and equipment to be associated and associated the associated of other associated equipment rooms of user of initiating, and specifically comprises:
Judge that whether user ID is pre-stored in associated server, if so:
Realize the associated of the associated user of initiation and equipment to be associated, and the update of incidence relation of association being initiated to user and equipment to be associated is to the incidence relation table setting in advance, described incidence relation table is for preservation and manage incidence relation;
Realize associated between equipment to be associated other equipment associated with associated initiation user, and equipment to be associated is initiated to update of incidence relation between other associated equipment of user to incidence relation table with associated;
Equipment to be associated is sent to described all devices with associated incidence relation of initiating between other associated equipment of user.
Preferably, before the associated request of described reception, also comprise:
Associated initiating equipment obtains equipment identification information and the device authentication code information of equipment to be associated;
Associated initiating equipment sends associated request to associated server.
Preferably, described associated initiating equipment obtains equipment identification information and the device authentication code information of equipment to be associated, specifically comprises:
Associated initiating equipment scans the device label of equipment to be associated, and described device label, with one dimension or two-dimensional barcode image, records device identification and the device authentication code of equipment to be associated on described bar code image;
Associated initiating equipment is converted to device identification and correlating validation code by the bar code image scanning.
Preferably, described in obtain equipment identification information and the correlating validation code information of equipment to be associated, comprising:
Associated initiating equipment receives device identification and the correlating validation code of the equipment to be associated of the associated user of initiation input by User Interface.
An associated server that realizes equipment association, comprising:
Receiver module, asks for receiving the association that the associated user of initiation sends by associated initiating equipment, and described associated request comprises equipment identification information and the correlating validation code information of user totem information, equipment to be associated;
Judge module, whether consistent for the device identification pre-stored with self with correlating validation code information of judgment device identification information and device authentication code information;
Realize module, for realizing the associated of the associated user of initiation and equipment room to be associated, and equipment to be associated and associated the associated of other associated equipment rooms of user of initiating.
Preferably, the described module that realizes, comprising:
Sub-judge module, whether pre-stored in associated server for judging user ID;
First realizes submodule, for realizing the associated of the associated user of initiation and equipment room to be associated;
The first update module, for the update of incidence relation of association being initiated to user and equipment room to be associated, to the incidence relation table setting in advance, described incidence relation table is for preserving and management incidence relation;
Second realizes submodule, for realizing the associated of equipment to be associated other equipment rooms associated with associated initiation user;
The second update module, for by the update of incidence relation of equipment to be associated other equipment rooms associated with associated initiation user to incidence relation table;
Sending module, for sending to described all devices by equipment to be associated with associated incidence relation of initiating between other associated equipment of user.
A system that realizes equipment association, is characterized in that, comprising:
Associated initiating equipment, for being sent to associated server by association request; Described associated request comprises equipment identification information and the correlating validation code information of the equipment to be associated that user ID and associated initiating equipment obtain;
Associated server, for receiving the association that the associated user of initiation sends by associated initiating equipment, ask, whether device identification and device authentication code information that judgment device identification information is pre-stored with self with correlating validation code information is consistent, if,: associated server realizes the associated of the associated user of initiation and equipment room to be associated, and equipment to be associated and associated the associated of other associated equipment rooms of user of initiating.
Preferably, described associated initiating equipment comprises:
Acquisition module, for obtaining equipment identification information and the correlating validation code information of equipment to be associated;
Communication module, for sending associated request to associated server.
Preferably, described acquisition module, comprising:
Scan module, for scanning the device label of equipment to be associated, described device label, with one dimension or two-dimensional barcode image, records device identification and the device authentication code of equipment to be associated on described bar code image;
Identification module, for being converted to the bar code image scanning device identification and correlating validation code.
Preferably, described acquisition module is specially, for receive device identification and the correlating validation code of the equipment to be associated of the associated user of initiation input by User Interface.
Preferably, described associated initiating equipment is XMPP client, and described associated server is XMPP server.
Known via above-mentioned technical scheme, compared with prior art, the present invention has increased an associated server, the association that the associated initiation of reception user initiates by associated initiating equipment is asked, then association request is judged, if the content that the content of associated request is recorded with associated server is consistent, carry out operation associated, first set up the incidence relation of user and equipment room, i.e. first realization association initiation user is associated with equipment room to be associated.Then the incidence relation of apparatus for establishing other equipment rooms associated with user, so just can realize the operation associated of equipment room that user has, without the operation of carrying out respectively the associated configuration of equipment room between two to realize the association of a plurality of equipment rooms, process operation is simple, thereby shortened the time of incidence relation between apparatus for establishing, improved the efficiency of equipment association.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of method, associated server and system that realizes equipment association, associated initiation user sends to associated server by associated initiating equipment by association request; Associated server judges association request, if the information pre-stored with self is consistent, associated server is set up the incidence relation of the associated user of initiation and equipment to be associated, and the incidence relation of equipment to be associated and associated other equipment rooms of associated initiation user, thereby realize the association of the equipment room that user has.
With reference to figure 1, show a kind of flow chart of realizing the embodiment of the method one of equipment association of the present invention, can comprise the following steps:
Step 101: the association that the associated initiation of associated server reception user sends by associated initiating equipment is asked.
Associated request comprises equipment identification information and the correlating validation code information of user totem information, equipment to be associated.
Step 102: whether device identification and correlating validation code information that associated server judgment device identification information is pre-stored with self with correlating validation code information is consistent, if so, carry out step 103.
Step 103: the associated initiation of associated server realization user is associated with equipment room to be associated, and equipment to be associated is associated with associated other the associated equipment rooms of user of initiating.
When a plurality of equipment that have as user need to be realized association, user needs first each equipment is associated to oneself under one's name, first sets up the incidence relation of user and equipment to be associated, then will realize the association of each equipment under user name.For example, equipment a, equipment b, supposes that user is associated to oneself under one's name by equipment a, and for realizing the association between equipment a and equipment b, user is first associated to oneself under one's name by equipment b, and associated server will realize the association between equipment a and equipment b.Suppose and have equipment c, user is associated to oneself under one's name by equipment c, and associated server will realize the association between equipment a, b, c.
First user sends associated request by associated initiating equipment, described associated initiating equipment can be mobile phone or mobile internet device, described association request comprises equipment identification information and the correlating validation code of the equipment to be associated that user totem information, associated initiating equipment obtain, wherein, user ID can be user's cell-phone number or user's mail account, to be used for identifying user.Equipment identification information and the correlating validation code of the equipment to be associated that associated initiating equipment obtains can be the information that user inputs by the User Interface of associated initiating equipment, or user pass through by associated initiating equipment the information that scanning process obtains.
In actual applications, equipment vendors are when production equipment, to generate a device identification and correlating validation code for each equipment, and device identification and correlating validation code can be registered in associated server, the corresponding relation of associated server recording equipment sign and correlating validation code, and can create an incidence relation table, for recording the incidence relation of each equipment and other equipment, do not carry out any operation associated before, this table is for empty.When user need to carry out cooperation with service to certain equipment, first user can register in associated server, associated server will be preserved user profile, carry out operation associated after, the incidence relation of the equipment room that incidence relation table has recording user and user.
Associated server first judges device identification and correlating validation code, see whether the information in associated server is consistent with device registration, if inconsistent associated server will be refused this association request, and return to miscue, if consistent, can judge user ID, if consistent with user's registration information, will set up the incidence relation of the associated user of initiation and equipment to be associated, and by this update of incidence relation to incidence relation table, determined the owner attribute of user to this equipment to be associated.
If associated, initiate user associated other equipment, associated server will realize the associated of equipment to be associated other equipment rooms associated with associated initiation user, realized the association between all devices that user has, and by this update of incidence relation to incidence relation table.
In the present embodiment, the association request that described associated server reception user sends by associated initiating equipment also judges, realize the incidence relation of the associated user of initiation and equipment to be associated, be about to equipment to be associated and be associated to oneself under one's name, then, realize equipment to be associated and be associated to the associated of other equipment rooms under user name, thereby realize the association of the equipment room that user has, the layoutprocedure of complexity while having avoided realizing a plurality of equipment association in prior art, has improved the associated efficiency of equipment.
Referring to Fig. 2, show a kind of flow chart of realizing the embodiment of the method two of equipment association of the present invention, the present embodiment can comprise the following steps:
Step 201: associated initiating equipment scans the equipment correlation tag of equipment to be associated, and the information scanning is identified to device identification and the correlating validation code that converts equipment to be associated to.
Wherein, described associated initiating equipment can be mobile phone or mobile internet device.
Equipment to be associated comprise equipment body and with this equipment equipment correlation tag one to one, the correlation tag of described equipment can adopt independent card to stick on equipment, can be maybe word or the picture presenting on equipment display terminal; On described equipment correlation tag, record the device identification corresponding with equipment body and correlating validation code.
In a concrete application, on described equipment correlation tag with one dimension or two-dimensional barcode image, on described one dimension or two-dimensional barcode image with the device identification corresponding with equipment body and correlating validation code.The associated user of initiation passes through the camera scanning device label of associated initiating equipment, the one dimension on fetch equipment label or two-dimensional barcode image, and the bar code image information reading is converted to device identification and correlating validation code.
Step 202: associated initiating equipment is sent to associated server by association request, described association request comprises user totem information, the device identification of equipment to be associated and correlating validation code.
Associated initiating equipment obtains after the device identification and correlating validation code of equipment to be associated, connects with associated server, by network, association request is sent to associated server.
Wherein, user ID can be user's cell-phone number or user's mail account, for identifying family again.
Step 203: associated server judge the device identification of equipment to be associated and correlating validation code device identification and the correlating validation code pre-stored with self whether consistent, if so, carry out step 204, if not, carry out step 205.
Pre-stored device identification and correlating validation code, be that equipment is registered in the information in associated server in advance, described associated server recording equipment sign and the corresponding relation between correlating validation code.
In actual applications, equipment vendors are when production equipment, to generate a device identification and correlating validation code for each equipment, and device identification and correlating validation code can be registered in associated server, the corresponding relation of associated server recording equipment sign and correlating validation code, and can create an incidence relation table, for recording the incidence relation of each equipment and other equipment, do not carry out any operation associated before, this table is for empty.
Wherein, in order to increase the fail safe of equipment, device identification can adopt GUID, and correlating validation code can adopt the form of character string.Device identification and correlating validation code are combined use, make only to understand the equipment of device identifier and corresponding correlating validation code or user and can complete the application with this equipment, for example, realize cooperation with service application.
Preferably, device identification and correlating validation code can merge, and are about to the device identifier that correlating validation code is attached to device identifier formation expansion afterwards.
Step 204: judge that whether user ID is pre-stored in associated server, if it is, enter step 206.
The pre-stored user totem information of associated server meeting, described pre-stored user ID, is that user carries out certain application, for example, and equipment collaboration service application, in the time of need to using associated server, the information of registering on this server in advance.
Step 205: associated server is refused this association request, and returns to miscue.
Step 206: set up the incidence relation of the associated user of initiation and equipment room to be associated, and by this update of incidence relation to incidence relation table.
Step 207: set up the incidence relation of equipment to be associated other equipment rooms associated with associated initiation user, and by this update of incidence relation to incidence relation table.
Step 208: incidence relation is sent to each described equipment, comprise associated initiating equipment and be associated to each equipment under user name.
In step 206 and step 207, incidence relation can be stored in incidence relation table, and described incidence relation table is the sky table being based upon in advance in associated server, carry out operation associated after, by update of incidence relation to incidence relation table.Associated server manages incidence relation by incidence relation table.As shown in Figure 3, suppose to have user A, device A and equipment B, when user A is associated to oneself under one's name time by device A, associated server by device A information recording in " my equipment " group of user, meanwhile, associated server is also recorded in this user profile in " my owner " group of device A.In addition, associated server is also recorded in device A the equipment being associated under user name, in " my associate device " group of the equipment B in Fig. 3.
User only need carry out one time associated configuration, the incidence relation that associated server will be preserved and administrative institute sets up, for example, in equipment collaboration service application, when user need to carry out cooperation with service to equipment again, operation associated without carrying out again, inquiry the incidence relation of directly preserving from associated server.Associated server, by rights management, makes only to exist between the equipment and equipment of incidence relation, between user and equipment, can carry out cooperation with service application, does not exist between the equipment and equipment of incidence relation, between equipment and user, forbids cooperation with service application.
It should be noted that, in step 201, associated initiating equipment obtains the device identification of equipment to be associated and the mode that correlating validation code information can also adopt user to input, associated initiation user inputs device identification and the correlating validation code of equipment to be associated by the User Interface of associated initiating equipment, other steps are consistent with embodiment bis-, at this, do not repeating.
With reference to figure 4, show a kind of structured flowchart of realizing the associated server of equipment association of the present invention, can comprise with lower module:
Receiver module 401: ask for receiving the association that the associated user of initiation sends by associated initiating equipment.
Associated request comprises equipment identification information and the correlating validation code information of user totem information, equipment to be associated.
Judge module 402: whether consistent for the device identification pre-stored with self with correlating validation code information of judgment device identification information and device authentication code information.
Realize module 403: for realizing the associated of the associated user of initiation and equipment room to be associated, and equipment to be associated and associated the associated of the associated equipment room of user of initiating.
When a plurality of equipment that have as user need to be realized association, user needs first each equipment is associated to oneself under one's name, first sets up the incidence relation of user and equipment to be associated, then will realize the association of each equipment under user name.For example, equipment a, equipment b, supposes that user is associated to oneself under one's name by equipment a, and for realizing the association between equipment a and equipment b, user is first associated to oneself under one's name by equipment b, and associated server will realize the association between equipment a and equipment b.Suppose and have equipment c, user is associated to oneself under one's name by equipment c, and associated server will realize the association between equipment a, b, c.
First user sends associated request by associated initiating equipment, described associated initiating equipment can be mobile phone or mobile internet device, described association request comprises user totem information, equipment identification information and the correlating validation code of the equipment to be associated that associated initiating equipment obtains, wherein, user ID can be user's cell-phone number or user's mail account, to be used for identifying user.Equipment identification information and the correlating validation code of the equipment to be associated that associated initiating equipment obtains, can be user by the information of the User Interface input of associated initiating equipment, or user obtains through scanning process by associated initiating equipment.
In actual applications, equipment vendors are when production equipment, to generate a device identification and correlating validation code for each equipment, and device identification and correlating validation code can be registered in associated server, the corresponding relation of associated server recording equipment sign and correlating validation code, and can create an incidence relation table, for recording the incidence relation of each equipment and other equipment, do not carry out any operation associated before, this table is for empty.When user need to carry out cooperation with service to certain equipment, first user can register in associated server, associated server will be preserved user profile, carry out operation associated after, incidence relation table will record the incidence relation of the equipment room that associated initiating equipment and user have.
Associated server first judges device identification and correlating validation code, see whether the information in associated server is consistent with device registration, if inconsistent associated server will be refused this association request, and return to miscue, if consistent, can judge user ID, if consistent with user's registration information, will set up the incidence relation of the associated user of initiation and equipment to be associated, and by this update of incidence relation to incidence relation table, determined the owner attribute of user to this equipment to be associated.
If associated, initiate user associated other equipment, associated server will realize the associated of equipment to be associated other equipment rooms associated with associated initiation user, realized the association between all devices that user has, and by this update of incidence relation to incidence relation table.
In the present embodiment, the association request that described associated server reception user sends by associated initiating equipment also judges, realize the incidence relation of the associated user of initiation and equipment to be associated, be about to equipment to be associated and be associated to oneself under one's name, then, realize equipment to be associated and be associated to the associated of other equipment rooms under user name, thereby realize the association of the equipment room that user has, while having avoided realizing a plurality of equipment association in prior art, the layoutprocedure of complexity, has improved the efficiency of equipment association.
With reference to figure 5, show a kind of structure chart of realizing the associated server embodiment 2 of equipment association of the present invention, can comprise with lower module:
Receiver module 501: the association request sending for receiving associated initiating equipment, described associated request comprises equipment identification information and the correlating validation code information of user totem information, equipment to be associated.
Associated initiating equipment obtains after the device identification and correlating validation code of equipment to be associated, connects with associated server, by network, association request is sent to associated server.
Wherein, user ID can be user's cell-phone number or user's mail account, for identification user's associated initiating equipment.
The first judge module 502: whether device identification and device authentication code information that judgment device identification information is pre-stored with self with correlating validation code information is consistent.
Pre-stored device identification and correlating validation code, be that equipment is registered in the information in associated server in advance, described associated server recording equipment sign and the corresponding relation between correlating validation code.
Wherein, in order to increase the fail safe of equipment, device identification can adopt GUID, and correlating validation code can adopt the form of character string.Device identification and correlating validation code are combined use, make only to understand the equipment of device identifier and corresponding correlating validation code or user and can complete the application with this equipment, for example, realize cooperation with service application.
Preferably, device identification and correlating validation code can merge, and are about to the device identifier that correlating validation code is attached to device identifier formation expansion afterwards.
The second judge module 503: whether pre-stored in associated server for judging user ID.
The pre-stored user ID of association service server meeting, described pre-stored user ID, is that user carries out certain application, for example, and equipment collaboration service application, in the time of need to using associated server, the information of registering on this server in advance.
First realizes module 504: for realizing the associated of the associated user of initiation and equipment room to be associated.
The first update module 505: to the incidence relation table setting in advance, described incidence relation table is for preserving and management incidence relation for the update of incidence relation of association being initiated to user and equipment room to be associated.
Second realizes module 506: for realizing the associated of equipment to be associated other equipment rooms associated with associated initiation user.
The second update module 507: for by the update of incidence relation of equipment to be associated other equipment rooms associated with associated initiation user to incidence relation table.
Sending module 508: for equipment to be associated is sent to described all devices with associated incidence relation of initiating between other associated equipment of user.
By the associated server of the present embodiment, can realize the association of a plurality of equipment rooms, improved the associated efficiency of equipment, can directly apply in equipment collaboration service application system.
With reference to figure 6, show a kind of system construction drawing of realizing equipment association of the present invention, can comprise following equipment:
Associated initiating equipment 601: for association request is sent to associated server; Described associated request comprises equipment identification information and the correlating validation code information of the equipment to be associated that user ID and associated initiating equipment obtain.
Wherein, shown in Figure 7, described associated initiating equipment 601 comprises:
Acquisition module 701, for obtaining equipment identification information and the correlating validation code information of equipment to be associated;
Communication module 702, for sending associated request to associated server.
Preferably, described acquisition module 701 comprises:
Scan module 7011, for scanning the device label of equipment to be associated, described device label, with one dimension or two-dimensional barcode image, records device identification and the device authentication code of equipment to be associated on described bar code image;
Preferably, in actual applications, described scan module can be camera.
Identification module 7012, for being converted to the bar code image scanning device identification and correlating validation code.
It should be noted that, described acquisition module 701 can also directly receive the information of user's input, and associated initiation user inputs device identification and the correlating validation code of equipment to be associated by the User Interface of associated initiating equipment.
Associated server 602: ask for receiving the association that the associated user of initiation sends by associated initiating equipment, whether device identification and device authentication code information that judgment device identification information is pre-stored with self with correlating validation code information is consistent, if,: associated server realizes the associated of the associated user of initiation and equipment room to be associated, and equipment to be associated and associated the associated of other associated equipment rooms of user of initiating.
A kind of system that realizes equipment association by the present embodiment, can realize the operation associated of equipment room, and has improved associated efficiency, and this system can directly apply in equipment collaboration service application.
An actual scene of the present embodiment is for being applied to XMPP (Extensible Messageing andPresence Protocol, scalable message with there is agreement) in system, described associated initiating equipment is XMPP client, described associated server is XMPP server, user ID and device identification and correlating validation code are XMPP JID (Jabber Identifier, Jabber address), incidence relation is contacts list relation.XMPP server is by message rights management, makes only to exist between the user of incidence relation and equipment, equipment and equipment to allow interacting message then to realize cooperation with service.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For the disclosed system of embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part partly illustrates referring to method.
Above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the present invention.To the multiple modification of these embodiment, will be apparent for those skilled in the art, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.