Summary of the invention
In view of this, the invention provides method, communication equipment and the system of the relation of breaking the wall of mistrust between a kind of communication equipment, realization cost and expense have been increased in order to the validation verification that solves information in the prior art or instruction, and reduced the problem of the communication efficiency of equipment room, its technical scheme is as follows:
The method of the relation of breaking the wall of mistrust between a kind of communication equipment is applied to first communication equipment, and described method comprises:
Obtain the facility information that needs with the second communication equipment of the relation of self breaking the wall of mistrust;
Send the first information of request and the described second communication equipment relation of breaking the wall of mistrust to described second communication equipment based on the facility information of described second communication equipment;
When receiving the described second communication equipment agreement of indication and self breaking the wall of mistrust second information that concerns, set up the trusting relationship with described second communication equipment.
Preferably, the described process that needs with the facility information of the second communication equipment of the relation of self breaking the wall of mistrust of obtaining comprises:
Send the 3rd information by network in the mode of broadcasting;
Receive described the 3rd information of response that described second communication equipment sends and the 4th information that comprises equipment of itself information;
Resolve described the 4th information, when the facility information in described the 4th information is effective, determine that described second communication equipment is for needing and the second communication equipment that self breaks the wall of mistrust and concern.
Alternatively, said method also comprises:
With the described second communication equipment relation of breaking the wall of mistrust after, send first instruction to described second communication equipment instruct corresponding operation so that described second communication equipment is carried out with described first when receiving described first instruction.
Wherein, the facility information of described second communication equipment comprises: device name and GUID GUID.
A kind of communication equipment, described communication equipment comprises as first communication equipment: acquiring unit, first transmitting element, receiving element and processing unit;
Described acquiring unit is for obtaining the facility information of need with the second communication equipment of the relation of self breaking the wall of mistrust;
Described first transmitting element is used for sending the first information of asking with the described second communication equipment relation of breaking the wall of mistrust to described second communication equipment based on the facility information of described second communication equipment;
Described receiving element is used for receiving the described second communication equipment agreement of indication of described second communication equipment transmission and second information of the relation of self breaking the wall of mistrust;
Described processing unit is used for setting up the trusting relationship with described second communication equipment when described receiving element receives the described second communication equipment agreement of indication and self breaks the wall of mistrust second information that concerns.
Preferably, described acquiring unit comprises: send subelement, receive subelement and handle subelement;
Described transmission subelement is used for sending the 3rd information by network in the mode of broadcasting;
Described reception subelement, the 4th information that is used for receiving described the 3rd information of response of described second communication equipment transmission and comprises equipment of itself information;
Described processing subelement is used for resolving described the 4th information, when the facility information in described the 4th information is effective, determines that described second communication equipment is for needing and the second communication equipment that self breaks the wall of mistrust and concern.
Alternatively, above-mentioned communication equipment also comprises: second transmitting element;
Described second transmitting element, be used for the described second communication equipment relation of breaking the wall of mistrust after, send first instruction to described second communication equipment instruct corresponding operation so that described second communication equipment is carried out with described first when receiving described first instruction.
Wherein, the facility information of described second communication equipment comprises: device name and GUID GUID.
The system of the relation of breaking the wall of mistrust between a kind of communication equipment comprises: first communication equipment and second communication equipment, and described first communication equipment and described second communication equipment pass through network connection;
Described first communication equipment, be used for obtaining the facility information that needs with the second communication equipment of the relation of self breaking the wall of mistrust, send the first information of request and the described second communication equipment relation of breaking the wall of mistrust based on the facility information of described second communication equipment to described second communication equipment;
Described second communication equipment, be used for after receiving the described first information, determine whether to agree and described first communication equipment relation of breaking the wall of mistrust, when determine agreeing to break the wall of mistrust when concerning with first communication equipment, send second information to described first communication equipment, so that described first communication equipment is set up the trusting relationship with described second communication equipment when receiving described second information.
Technique scheme has following beneficial effect:
Method, communication equipment and the system of the relation of breaking the wall of mistrust between communication equipment provided by the invention, can be in first communication equipment and the second communication equipment room relation of breaking the wall of mistrust of the mutual communication of needs, trusting relationship based on equipment room, first communication equipment is when the instruction that receives the transmission of second communication equipment or information, validity without authorization information, can directly carry out corresponding operation, equally, second communication equipment is when the instruction that receives the transmission of first communication equipment or information, also need not verify the validity of instruction or information, and directly carry out corresponding operation.The validity that need not verify every information or instruction makes the time of communication equipment process information shorten, and has improved the information processing efficiency of communication equipment, and has improved the communication efficiency of equipment room, has reduced communication validation verification cost.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment one
The embodiment of the invention one provides the method for the relation of breaking the wall of mistrust between a kind of communication equipment, is applied to first communication equipment, and Fig. 1 shows the schematic flow sheet of this method, and this method can comprise:
S101: obtain the facility information that needs with the second communication equipment of the relation of self breaking the wall of mistrust.
Wherein, facility information can comprise: device name, GUID GUID etc.
S102: the facility information based on second communication equipment sends the first information to second communication equipment, and the first information is used for request and the second communication equipment relation of breaking the wall of mistrust.
After second communication equipment receives the first information of first communication equipment transmission, determine whether to agree and first communication equipment relation of breaking the wall of mistrust.Wherein, second communication equipment determine whether to agree with the foundation of first communication equipment relation of breaking the wall of mistrust can for: whether second communication equipment needs to send instruction or information to first communication equipment, perhaps, whether first communication equipment need receive instruction or the information that second communication equipment sends, and namely whether second communication equipment needs to communicate with first communication equipment.
S103: when receiving the agreement of indication second communication equipment and self breaking the wall of mistrust second information that concerns, set up the trusting relationship with second communication equipment.
In the present embodiment, no matter whether second communication equipment is agreed and first communication equipment relation of breaking the wall of mistrust, all to send response message to first communication equipment, comprise in the response message that sends: whether second communication equipment agrees the indication information with first communication equipment relation of breaking the wall of mistrust, and whether first communication equipment determines and the second communication equipment relation of breaking the wall of mistrust according to this indication information.At this moment, second information among the step S103 comprises that for what second communication equipment sent second communication equipment is agreed and the response message of the indication information of first communication equipment relation of breaking the wall of mistrust.
When first communication equipment receives indication second communication equipment refusal and self breaks the wall of mistrust the 3rd information that concerns, finish the flow process of the relation of breaking the wall of mistrust.
After first communication equipment and the second communication equipment relation of breaking the wall of mistrust, if first communication equipment sends information to second communication equipment, second communication equipment can directly receive and store the information that first equipment sends so, and it is whether effective without authorization information, if first communication equipment sends instruction to second communication equipment, second communication equipment can directly be carried out this instruction when receiving instruction, and need not verify whether instruction is effective, similarly, when second communication equipment sent instruction or information to first communication equipment, first communication equipment also need not be verified the validity of instruction or information.
The method of the relation of breaking the wall of mistrust between the communication equipment that the embodiment of the invention one provides, can be in first communication equipment and the second communication equipment room relation of breaking the wall of mistrust of the mutual communication of needs, trusting relationship based on equipment room, first communication equipment is when the instruction that receives the transmission of second communication equipment or information, validity without authorization information, can directly carry out corresponding operation, equally, second communication equipment is when the instruction that receives the transmission of first communication equipment or information, also need not verify the validity of instruction or information, operate accordingly and directly carry out, the validity that need not verify every information or instruction makes the time of communication equipment process information shorten, improve the information processing efficiency of communication equipment, and improved the communication efficiency of equipment room, reduced communication validation verification cost.
Embodiment two
The embodiment of the invention two provides the method for the relation of breaking the wall of mistrust between a kind of communication equipment, is applied to first communication equipment, and Fig. 2 shows the schematic flow sheet of this method, and this method can comprise:
S201: obtain the facility information that needs with the second communication equipment of the relation of self breaking the wall of mistrust.
Fig. 3 shows that present embodiment provides obtains the schematic flow sheet that needs with the facility information process of the second communication equipment of the relation of self breaking the wall of mistrust, and can comprise:
S2011: send the 3rd information in the mode of broadcasting by network.
S2012: response the 3rd information that reception second communication equipment sends and the 4th information that comprises equipment of itself information.
Wherein, facility information can comprise: device name, GUID GUID etc. can identify the information of second communication equipment identities.
S2013: resolve the 4th information, when the facility information in the 4th information is effective, determine that second communication equipment is for needing and the second communication equipment that self breaks the wall of mistrust and concern.
In the present embodiment, what suppose that the procotol of transmission the 4th information uses is the JSON character string, if can go out correct facility information by the JSON character string parsing, the facility information that can determine second communication equipment so is effective facility information, and second communication equipment is effective communication equipment.
S202: the facility information based on second communication equipment sends the first information to second communication equipment, and the first information is used for request and the second communication equipment relation of breaking the wall of mistrust.
After second communication equipment receives the first information of first communication equipment transmission, determine whether to agree and first communication equipment relation of breaking the wall of mistrust.Wherein, second communication equipment determine whether to agree with the foundation of first communication equipment relation of breaking the wall of mistrust can for: whether second communication equipment needs to send instruction or information to first communication equipment, perhaps, whether first communication equipment need receive instruction or the information that second communication equipment sends, and namely whether second communication equipment needs to communicate with first communication equipment.
S203: when receiving the agreement of indication second communication equipment and self breaking the wall of mistrust second information that concerns, set up the trusting relationship with second communication equipment.
In the present embodiment, no matter whether second communication equipment is agreed and first communication equipment relation of breaking the wall of mistrust, all to send response message to first communication equipment, comprise in the response message that sends: whether second communication equipment agrees the indication information with first communication equipment relation of breaking the wall of mistrust, and whether first communication equipment determines and the second communication equipment relation of breaking the wall of mistrust according to this indication information.At this moment, second information among the step S203 comprises that for what second communication equipment sent second communication equipment is agreed and the response message of the indication information of first communication equipment relation of breaking the wall of mistrust.In addition, when first communication equipment receives indication second communication equipment refusal and self breaks the wall of mistrust the 3rd information that concerns, finish the flow process of the relation of breaking the wall of mistrust.
In addition, can make second communication equipment only agree to break the wall of mistrust when concerning with first communication equipment at it, just can send information to first communication equipment, at this moment, the information that second communication equipment sends can not comprise whether second communication equipment agrees the indication information that breaks the wall of mistrust and concern with first communication equipment, first communication equipment judges whether receive the response message that second communication equipment sends in Preset Time, if, then with the second communication equipment relation of breaking the wall of mistrust, otherwise, finish the flow process that breaks the wall of mistrust and concern.
First communication equipment in the present embodiment can with a plurality of second terminal equipment relations of breaking the wall of mistrust, the tabulation of second communication equipment of the relation of breaking the wall of mistrust with it set up and safeguards by first communication equipment at local data base, recorded the GUID of second communication equipment in this tabulation, first communication terminal is distinguished different second communication equipment by GUID.
S204: send first instruction or the first information to second communication equipment, so that second communication equipment is carried out corresponding operation.
After first communication equipment and the second communication equipment relation of breaking the wall of mistrust, if first communication equipment sends information to second communication equipment, second communication equipment can directly receive and store the information that first equipment sends so, and it is whether effective without authorization information, if first communication equipment sends instruction to second communication equipment, second communication equipment can directly be carried out this instruction when receiving instruction, and need not verify whether instruction is effective, similarly, when second communication equipment sent instruction or information to first communication equipment, first communication equipment also need not be verified the validity of instruction or information.
The method of the relation of breaking the wall of mistrust between the communication equipment that the embodiment of the invention two provides, can be in first communication equipment and the second communication equipment room relation of breaking the wall of mistrust of the mutual communication of needs, trusting relationship based on equipment room, first communication equipment is when the instruction that receives the transmission of second communication equipment or information, validity without authorization information, can directly carry out corresponding operation, similarly, second communication equipment is when the instruction that receives the transmission of first communication equipment or information, also need not verify the validity of instruction or information, operate accordingly and directly carry out, the validity that need not verify every information or instruction makes the time of communication equipment process information shorten, improve the information processing efficiency of communication equipment, and improved the communication efficiency of equipment room, reduced communication validation verification cost.
Embodiment three
The embodiment of the invention three provides a kind of communication equipment, this communication equipment is as first communication equipment, Fig. 4 shows the structural representation of this first communication equipment, and this first communication equipment can comprise: acquiring unit 101, first transmitting element 102, receiving element 103 and processing unit 104.Wherein:
Acquiring unit 101 is for obtaining the facility information of need with the second communication equipment of the relation of self breaking the wall of mistrust.
First transmitting element 102 is used for sending the first information of asking with the second communication equipment relation of breaking the wall of mistrust to second communication equipment based on the facility information of second communication equipment.
Receiving element 103 is used for receiving the indication second communication equipment agreement of second communication equipment transmission and second information of the relation of self breaking the wall of mistrust.
Processing unit 104 is used for setting up the trusting relationship with second communication equipment when receiving element 103 receives the agreement of indication second communication equipment and self breaks the wall of mistrust second information that concerns.
First communication equipment that the embodiment of the invention three provides, can with the second communication equipment relation of breaking the wall of mistrust, based on this trusting relationship, first communication equipment is when the instruction that receives the transmission of second communication equipment or information, validity without authorization information, can directly carry out corresponding operation, equally, second communication equipment is when the instruction that receives the transmission of first communication equipment or information, also need not verify the validity of instruction or information, operate accordingly and directly carry out, the validity that need not verify every information or instruction makes the time of communication equipment process information shorten, improve the information processing efficiency of communication equipment, and improved the communication efficiency of equipment room, reduced communication validation verification cost.
Embodiment four
The embodiment of the invention four provides a kind of communication equipment, this communication equipment is as first communication equipment, Fig. 5 shows the structural representation of this first communication equipment, and this first communication equipment can comprise: acquiring unit 201, first transmitting element 202, receiving element 203, processing unit 204 and second transmitting element 205.Wherein:
Acquiring unit 201 is for obtaining the facility information of need with the second communication equipment of the relation of self breaking the wall of mistrust.
Further, acquiring unit 201 can comprise: send subelement 2011, receive subelement 2012 and handle subelement 2013.Wherein:
Send subelement 2011, be used for sending the 3rd information by network in the mode of broadcasting.
Receive subelement 2012, the 4th information that is used for receiving response the 3rd information of second communication equipment transmission and comprises equipment of itself information.Wherein, the facility information of second communication equipment comprises: device name and GUID GUID.
Processing subelement 2013 is used for the 4th information of resolving, and when the facility information in the 4th information is effective, determines that second communication equipment is for needing and the second communication equipment that self breaks the wall of mistrust and concern.
First transmitting element 202 is used for sending the first information of asking with the second communication equipment relation of breaking the wall of mistrust to second communication equipment based on the facility information of second communication equipment.
Receiving element 203 is used for receiving the indication second communication equipment agreement of second communication equipment transmission and second information of the relation of self breaking the wall of mistrust.
Processing unit 204 is used for setting up the trusting relationship with second communication equipment when receiving element 203 receives the agreement of indication second communication equipment and self breaks the wall of mistrust second information that concerns.
Second transmitting element 205, be used for the second communication equipment relation of breaking the wall of mistrust after, send first instruction to second communication equipment instruct corresponding operation so that second communication equipment is carried out with first when receiving first instruction.
First communication equipment that the embodiment of the invention four provides, can with the second communication equipment relation of breaking the wall of mistrust, based on this trusting relationship, first communication equipment is when the instruction that receives the transmission of second communication equipment or information, validity without authorization information, can directly carry out corresponding operation, equally, second communication equipment is when the instruction that receives the transmission of first communication equipment or information, also need not verify the validity of instruction or information, operate accordingly and directly carry out, the validity that need not verify every information or instruction makes the time of communication equipment process information shorten, improve the information processing efficiency of communication equipment, and improved the communication efficiency of equipment room, reduced communication validation verification cost.
Embodiment five
The embodiment of the invention five provides the system of the relation of breaking the wall of mistrust between a kind of communication equipment, and this system can comprise: first communication equipment 1 and second communication equipment 2, the first communication equipments 1 and second communication 2 equipment pass through network connection.Wherein:
First communication equipment 1 is used for obtaining the facility information that needs with the second communication equipment 2 of the relation of self breaking the wall of mistrust, and sends the first information of request and second communication equipment 2 relation of breaking the wall of mistrust to second communication equipment based on the facility information of second communication equipment 2.
Second communication equipment 2, be used for after receiving the first information, determine whether to agree and first communication equipment 1 relation of breaking the wall of mistrust, when determine agreeing to break the wall of mistrust when concerning with first communication equipment 1, send second information to first communication equipment 1, so that first communication equipment 1 is set up and the trusting relationship of second communication equipment 2 when receiving second information.
The system of the relation of breaking the wall of mistrust between the communication equipment that the embodiment of the invention five provides, can be in first communication equipment and the second communication equipment room relation of breaking the wall of mistrust of the mutual communication of needs, trusting relationship based on equipment room, first communication equipment is when the instruction that receives the transmission of second communication equipment or information, validity without authorization information, can directly carry out corresponding operation, equally, second communication equipment is when the instruction that receives the transmission of first communication equipment or information, also need not verify the validity of instruction or information, operate accordingly and directly carry out, the validity that need not verify every information or instruction makes the time of communication equipment process information shorten, improve the information processing efficiency of communication equipment, and improved the communication efficiency of equipment room, reduced communication validation verification cost.
For the convenience of describing, be divided into various unit with function when describing above the device and describe respectively.Certainly, when enforcement is of the present invention, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses is difference with other embodiment.Especially, for device embodiment, because it is substantially similar in appearance to method embodiment, so describe fairly simplely, relevant part gets final product referring to the part explanation of method embodiment.System embodiment described above only is schematic, wherein said unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of module to realize the purpose of present embodiment scheme according to the actual needs.Those of ordinary skills namely can understand and implement under the situation of not paying creative work.
The present invention can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, comprise distributed computing environment (DCE) of above any system or equipment etc.Need to prove, in this article, relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or in proper order between these entities or the operation.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be apparent concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments herein.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the wideest scope consistent with principle disclosed herein and features of novelty.