CN101026393A - Method and device for realizing communication between peer devices - Google Patents

Method and device for realizing communication between peer devices Download PDF

Info

Publication number
CN101026393A
CN101026393A CN 200710005009 CN200710005009A CN101026393A CN 101026393 A CN101026393 A CN 101026393A CN 200710005009 CN200710005009 CN 200710005009 CN 200710005009 A CN200710005009 A CN 200710005009A CN 101026393 A CN101026393 A CN 101026393A
Authority
CN
China
Prior art keywords
main frame
communication
slave
service
self
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200710005009
Other languages
Chinese (zh)
Other versions
CN101026393B (en
Inventor
雷柏元
马平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN EFORTUNE DIGITAL ELECTRONIC MANUFACTURING CO., LTD.
Original Assignee
雷柏元
马平
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 雷柏元, 马平 filed Critical 雷柏元
Priority to CN2007100050091A priority Critical patent/CN101026393B/en
Publication of CN101026393A publication Critical patent/CN101026393A/en
Application granted granted Critical
Publication of CN101026393B publication Critical patent/CN101026393B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The method for communication between peer-to-peer devices includes steps: broadcasting service information needed, and determining whether a master device providing the service is existed; if yes, defining self as slave device, then building connection to master device, and dong communication; if no, upgrading self as master device, and broadcasting upgrading information and upgrading provided service information. Corresponding to the method, the invention also discloses device for implementing communication between peer-to-peer devices. The device includes sending unit, judgment unit, slave device communication unit, upgrading unit of slave device, and receiving unit. Making improvement, the invention can change attribute of each slave device, i.e. upgrading slave device to master device. Thus, in condition of lack of master device, communication can be carried out among multiple slave devices.

Description

A kind of method and device of realizing communication between the peer device
Technical field
The present invention relates to communication field, relate in particular to the method and apparatus of realizing communication between the peer device.
Background technology
Along with the continuous progress of mechanics of communication, the application mode of controlling platform such as a lot of composite aircrafts, mobile phone and bluetooth earphone to a plurality of subsystems appearred in modern's life for convenience.The main frame of composite aircraft can to handset provide service, but lacking under the situation of main frame between a plurality of handsets and can not directly carry out communication because there is not the ISP.Between present mobile phone and the basket tooth earphone also is to have this problem, have only mobile phone can and bluetooth earphone between carry out communication, but a plurality of basket tooth earphones between can not carry out communication.
The reason that causes this phenomenon is because same equipment can not be realized two kinds of device attributes.Because before these equipment dispatch from the factory, all unify to be provided with device attribute, can only be main frame or slave.Main frame also is server, and being used for provides service for equipment; Slave also is equipment, and slave can only carry out communication with main frame, but can not carry out communication between a plurality of slaves.
Summary of the invention
The technical problem that the embodiment of the invention will solve provides a kind of method and device of realizing communication between the peer device.
For solving the problems of the technologies described above, the objective of the invention is to be achieved through the following technical solutions:
Broadcast the information on services that needs, and confirm whether to have the main frame that described service is provided to exist, then be slave, connect with main frame and serve and communication self poisoning; If do not exist, then self is upgraded to main frame, and the information on services of broadcasting upgrade information and providing.
Wherein, with the process of host communication in, whether the monitoring main frame withdraws from service, then self is upgraded to main frame or withdraws from service if withdraw from service.
Wherein, with the process of host communication in, have the situation of a plurality of slaves and host communication, and main frame withdraws from service in communication process, judge the sequence of addresses of a plurality of slaves, if the sequence of addresses of self is the highest, then upgrade to main frame.
Wherein, whether described affirmation has the main frame that described service is provided to exist is specially: preset the top ten in start and send to main frame in you and connect signal, if do not receive the feedback signal of main frame, think that then main frame withdraws from service.
Wherein, whether described monitoring main frame withdraws from service is specially: periodically send the connection signal to main frame, if do not receive the feedback signal of main frame, think that then main frame withdraws from service.
Wherein, the described main frame that upgrades to is specially:
Withdrawing from service earlier, restart then, is slave with self poisoning.
Wherein, the described service of connecting is specially:
Send the communication service request to main frame, main frame receives the information of service request to its feedback.
The present invention also provides a kind of device of realizing communication between the peer device, and this device comprises: transmitting element, judging unit, slave communication unit, slave upgrading unit, receiving element;
Transmitting element is used to broadcast the information on services of slave needs, or slave broadcasting upgrade information and information on services of providing when upgrading to main frame;
Whether judging unit is used to confirm to have the main frame that described service is provided to exist;
The slave communication unit is used for when main frame exists, with self poisoning be slave and with main frame connect the service and communication;
Slave upgrading unit is used for when main frame does not exist self being upgraded to main frame;
Receiving element is used for receiving the information with the host communication process.
Wherein, this device further comprises monitoring means;
Transmitting element also is used for the periodic connection signal that is used to monitor main frame that sends;
Monitoring means, be used for the host communication process, judge receiving element whether receive with monitor main frame be connected the corresponding feedback signal of signal;
Receiving element, also be used to receive be used for the monitoring main frame the connection signal to corresponding feedback signal;
Slave upgrading unit, also be used for monitoring means do not receive with monitor main frame survey main frame be connected the corresponding feedback signal of signal the time, oneself is upgraded to main frame.
Wherein, this slave upgrading unit specifically comprises: slave judging unit, sequence of addresses judging unit, upgrading unit;
The slave judging unit, be used for do not receive at monitoring means with monitor main frame survey main frame be connected the corresponding feedback signal of signal the time, judge whether to exist a plurality of slaves;
The sequence of addresses judging unit is used for drawing when existing a plurality of slaves as a result when the slave judging unit, judges whether the sequence of addresses of self is the highest;
The upgrading unit is used for obtaining self sequence of addresses when the highest at the sequence of addresses judging unit, and self is upgraded to main frame.
Above technical scheme because the present invention transforms in each slave, makes the attribute of each slave to change as can be seen, and promptly slave can escalate into main frame, makes lacking under the situation of main frame, still can carry out communication between a plurality of slaves.
Description of drawings
Fig. 1 is realization flow figure of the present invention;
Fig. 2 is implement device figure of the present invention.
Embodiment
The embodiment of the invention can not realize two kinds of device attributes in order to solve same equipment, slave can only carry out communication with main frame, but can not carry out the problem of communication between a plurality of slaves, propose the process of dynamic update, method and the device of realizing communication between the peer device are provided.
Describe the implementation procedure of the embodiment of the invention below in detail, referring to Fig. 1:
Step 101: slave start;
Step 102: the information on services that broadcasting needs, confirm whether to have the main frame that described service is provided to exist; If then execution in step 108 is arranged; If there is not then execution in step 103;
The method whether affirmation described in this step has the main frame of the service of providing to exist is that slave sends connection request to main frame in start certain hour scope, if receive the feedback signal of responding this connection request, illustrate that then main frame exists; If do not receive the feedback signal of responding this connection request, illustrate that then main frame does not exist.
Step 103: confirm whether to have only a slave to exist; It is execution in step 104 then; Otherwise execution in step 105;
Step 104: when having only a slave to exist, upgrade service, broadcasting upgrade information and the information on services that provides are provided or withdraw from service;
The upgrade service of carrying out described herein refers at first disengaging service, restarts this equipment then, and service is provided.
Step 105: if a plurality of slaves when existing, sort according to sequence of addresses, judge whether this slave is that sequence of addresses is the highest, if execution in step 106 then; Execution in step 107 then if not;
Address described in this step has global uniqueness, so according to accessing unique putting in order.
Step 106: the information on services that carries out upgrade service and broadcast upgrade information and provide.
Step 107: upgrade execution in step 102 if not then wait for the highest slave of sequence of addresses;
The upgrade service of carrying out described herein refers at first disengaging service, restarts this equipment then, and service is provided.
Step 108: after inquiring the existence of main frame, send connection request to main frame;
Step 109: receive the link information of main frame feedback, successfully connect and communication.
In order better to realize the communication between the peer device, to withdraw from when service is provided at main frame, the uninterruptedly communication between the slave is monitored in main frame and slave carry out the process of communication and is connected link.
Step 110: monitoring connects link, judges whether main frame breaks away from service; It is execution in step 103 then; Otherwise continue execution in step 110, the monitoring link;
The similar process whether the inquiry main frame of monitoring connection link described in this step and step 102 exists.Only the monitoring described in this step connects in fact a kind of protection mechanism of link, is a virtual aerial connection, and slave regularly sends signal to main frame, and the monitoring feedback signal, if feedback signal is received in monitoring, illustrates that then main frame exists; If behind certain hour, do not receive the response feedback signal, illustrate that then main frame breaks away from service.
Corresponding to this method, the present invention also provides a kind of device of realizing communication between the peer device, and this device comprises: transmitting element, judging unit, slave communication unit, slave upgrading unit, receiving element;
Transmitting element is used to broadcast the information on services of slave needs, or slave broadcasting upgrade information and information on services of providing when upgrading to main frame;
Whether judging unit is used to confirm to have the main frame that described service is provided to exist;
The slave communication unit is used for when main frame exists, with self poisoning be slave and with main frame connect the service and communication;
Slave upgrading unit is used for when main frame does not exist self being upgraded to main frame;
Receiving element is used for receiving the information with the host communication process.
Corresponding to the protection step of monitoring, this device further comprises monitoring means;
Corresponding transmitting element also is used for the periodic connection signal that is used to monitor main frame that sends;
Monitoring means, be used for the host communication process, judge receiving element whether receive with monitor main frame be connected the corresponding feedback signal of signal;
Receiving element, also be used to receive be used for the monitoring main frame the connection signal to corresponding feedback signal;
Slave upgrading unit, also be used for monitoring means do not receive with monitor main frame survey main frame be connected the corresponding feedback signal of signal the time, oneself is upgraded to main frame.
Wherein said slave upgrading unit specifically comprises: slave judging unit, sequence of addresses judging unit, upgrading unit;
The slave judging unit, be used for do not receive at monitoring means with monitor main frame survey main frame be connected the corresponding feedback signal of signal the time, judge whether to exist a plurality of slaves;
The sequence of addresses judging unit is used for drawing when existing a plurality of slaves as a result when the slave judging unit, judges whether the sequence of addresses of self is the highest;
The upgrading unit is used for obtaining self sequence of addresses when the highest at the sequence of addresses judging unit, and self is upgraded to main frame.
Wherein said slave communication unit specifically comprises: positioning unit, the service unit that connects;
Positioning unit, being used for when main frame exists self poisoning is slave;
The service unit that connects is used for when positioning unit is slave with self poisoning, and the notice transmitting element sends to main frame and links up service request; And the notice receiving element receives the information of main frame to the reception service request of its feedback; After the service of connecting, trigger the information that transmitting element receives main frame or the transmission of other slaves; Trigger self and send information to main frame or other slaves.
The present invention can embed aspects such as family expenses composite aircraft (a plurality of handsets break away from machine tools carry out work), cluster intercom, mobile phone basket tooth, the multimedia controlling platform of family expenses with the work between the multimedia etc., so long as the controlling platform of one-to-many can be used the present invention to the cluster work of multiple subsystem.
When for example the present invention is on being applied to Bluetooth of mobile phone, when mobile phone communication, in the time of need carrying out Bluetooth transmission, at first search main frame, finding behind the main frame self poisoning is slave, thereby set up and main frame between communication, when not finding main frame and address information priority then self is upgraded to main equipment when the highest, and provide service.Thereby a plurality of mobile phone times can be carried out bluetooth communication.
More than a kind ofly realize that the method and apparatus of communication is described in detail between the peer device to provided by the present invention, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1, a kind of method that realizes communication between the peer device is characterized in that, this method comprises:
Broadcast the information on services that needs, and confirm whether to have the main frame that described service is provided to exist, then be slave, connect with main frame and serve and communication self poisoning; If do not exist, then self is upgraded to main frame, and the information on services of broadcasting upgrade information and providing.
2, the method for communication between the realization peer device according to claim 1 is characterized in that, with the process of host communication in, whether the monitoring main frame withdraws from service, then self is upgraded to main frame or withdraws from service if withdraw from service.
3, the method for communication between the realization peer device according to claim 2, it is characterized in that, with the process of host communication in, the situation that has a plurality of slaves and host communication, and main frame withdraws from service in communication process, judge the sequence of addresses of a plurality of slaves,, then upgrade to main frame if the sequence of addresses of self is the highest.
4, according to the method for communication between claim 2 or the 3 described realization peer devices, it is characterized in that, whether described affirmation has the main frame that described service is provided to exist is specially: preset the top ten in start and send to main frame in you and connect signal, if do not receive the feedback signal of main frame, think that then main frame withdraws from service.
5, according to the method for communication between claim 2 or the 3 described realization peer devices, it is characterized in that, whether described monitoring main frame withdraws from service is specially: periodically send the connection signal to main frame, if do not receive the feedback signal of main frame, think that then main frame withdraws from service.
6, according to the method for communication between one of them described realization peer device of claim 1 to 3, it is characterized in that the described main frame that upgrades to is specially:
Withdrawing from service earlier, restart then, is slave with self poisoning.
According to the method for communication between one of them described realization peer device of claim 1 to 3, it is characterized in that 7, the described service of connecting is specially:
Send the communication service request to main frame, main frame receives the information of service request to its feedback.
8, a kind of device of realizing communication between the peer device is characterized in that, this device comprises: transmitting element, judging unit, slave communication unit, slave upgrading unit, receiving element;
Transmitting element is used to broadcast the information on services of slave needs, or slave broadcasting upgrade information and information on services of providing when upgrading to main frame;
Whether judging unit is used to confirm to have the main frame that described service is provided to exist;
The slave communication unit is used for when main frame exists, with self poisoning be slave and with main frame connect the service and communication;
Slave upgrading unit is used for when main frame does not exist self being upgraded to main frame;
Receiving element is used for receiving the information with the host communication process.
9, the device of communication between the realization peer device according to claim 8 is characterized in that this device further comprises monitoring means;
Transmitting element also is used for the periodic connection signal that is used to monitor main frame that sends;
Monitoring means, be used for the host communication process, judge receiving element whether receive with monitor main frame be connected the corresponding feedback signal of signal;
Receiving element, also be used to receive be used for the monitoring main frame the connection signal to corresponding feedback signal;
Slave upgrading unit, also be used for monitoring means do not receive with monitor main frame survey main frame be connected the corresponding feedback signal of signal the time, oneself is upgraded to main frame.
10, the device of communication between the realization peer device according to claim 9 is characterized in that, this slave upgrading unit specifically comprises: slave judging unit, sequence of addresses judging unit, upgrading unit;
The slave judging unit, be used for do not receive at monitoring means with monitor main frame survey main frame be connected the corresponding feedback signal of signal the time, judge whether to exist a plurality of slaves;
The sequence of addresses judging unit is used for drawing when existing a plurality of slaves as a result when the slave judging unit, judges whether the sequence of addresses of self is the highest;
The upgrading unit is used for obtaining self sequence of addresses when the highest at the sequence of addresses judging unit, and self is upgraded to main frame.
CN2007100050091A 2007-02-12 2007-02-12 Method and device for realizing communication between peer devices Expired - Fee Related CN101026393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100050091A CN101026393B (en) 2007-02-12 2007-02-12 Method and device for realizing communication between peer devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100050091A CN101026393B (en) 2007-02-12 2007-02-12 Method and device for realizing communication between peer devices

Publications (2)

Publication Number Publication Date
CN101026393A true CN101026393A (en) 2007-08-29
CN101026393B CN101026393B (en) 2011-08-31

Family

ID=38744370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100050091A Expired - Fee Related CN101026393B (en) 2007-02-12 2007-02-12 Method and device for realizing communication between peer devices

Country Status (1)

Country Link
CN (1) CN101026393B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102684923A (en) * 2012-05-24 2012-09-19 江苏华德电力科技有限公司 Self-healing networking method for half-duplex asynchronous communication
WO2018068428A1 (en) * 2016-10-12 2018-04-19 余潇 Wireless digital frequency-hopping two-way radio working in ism band
CN115550312A (en) * 2022-08-25 2022-12-30 深圳市超思维电子股份有限公司 Battery address allocation method, device, equipment and medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100677078B1 (en) * 1999-11-26 2007-02-01 삼성전자주식회사 Method for operating personal ad-hoc network between bluetooth-devices
US20020159401A1 (en) * 2001-04-25 2002-10-31 Brightcom Technologies Ltd. Masterless slave / master role switch in a bluetooth piconet
JP2004080400A (en) * 2002-08-19 2004-03-11 Matsushita Electric Ind Co Ltd Automatic role determining system
JP3848235B2 (en) * 2002-10-04 2006-11-22 ソニー株式会社 COMMUNICATION PROCESSING DEVICE, COMMUNICATION PROCESSING SYSTEM AND METHOD, AND COMPUTER PROGRAM
CN1533114A (en) * 2003-03-24 2004-09-29 上海集成仪器仪表研究所有限公司 Asynchronous serial communicaton protocol of single host, multiple host and no host modes
JP4795943B2 (en) * 2004-06-16 2011-10-19 パナソニック株式会社 Wireless cordless handset
CN100477547C (en) * 2006-03-02 2009-04-08 迈普(四川)通信技术有限公司 Telecommunication apparatus master-slave switching method and telecommunication apparatus thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102684923A (en) * 2012-05-24 2012-09-19 江苏华德电力科技有限公司 Self-healing networking method for half-duplex asynchronous communication
WO2018068428A1 (en) * 2016-10-12 2018-04-19 余潇 Wireless digital frequency-hopping two-way radio working in ism band
CN115550312A (en) * 2022-08-25 2022-12-30 深圳市超思维电子股份有限公司 Battery address allocation method, device, equipment and medium

Also Published As

Publication number Publication date
CN101026393B (en) 2011-08-31

Similar Documents

Publication Publication Date Title
CN101739263A (en) Method and device for realizing operating system update in multi-computer cluster system
US20070006207A1 (en) Method and system for providing device-initiated software upgrades
US8365162B2 (en) Method and device arrangement for managing the use profile of a terminal device
US8612604B2 (en) System and method for server initiation beacon
CN105808285A (en) Vehicle control update methods and systems
CN101742737B (en) Intelligent emergent wireless command system
CN103036719A (en) Cross-regional service disaster method and device based on main cluster servers
CN104980898A (en) Information pushing method, system and equipment
CN101888304A (en) Updating method, device and system for routing equipment
CN105392181A (en) Intelligent equipment networking method and device, and system
CN103731562B (en) For the method and apparatus of smart machine Adaptive matching bluetooth equipment
US20160142888A1 (en) Communication device for vehicle
CN101026393B (en) Method and device for realizing communication between peer devices
CN102300201A (en) Software upgrading system and method for remote radio unit (RRU)
CN104750544A (en) Process management system and process management method applied to distributed system
CN101895575A (en) Method, device and system for downloading base station versions
CN104980886A (en) Software upgrade method and device
EP2774323B1 (en) Method, communication system and non-transitory computer readable medium for optimizing network performance after a temporary loss of connection
CN201063621Y (en) Device for implementing communication of peer-to-peer equipment
CN101827035A (en) Method for ensuring graceful restarting and dual master control network device
CN112542002A (en) Car renting system control method and device
CN104639356A (en) Failure recovery method and device
US10805838B2 (en) Method and device for obtaining resources and information of SDN networks of different operators
CN104394188A (en) Method and system for data transmission in Internet of Vehicles
CN204360157U (en) Vehicle-mounted fault diagnosis maintenance system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Free format text: FORMER OWNER: MA PING

Effective date: 20121205

Owner name: SHENZHEN E-FORTUNE DIGITAL MANUFACTORY LTD.

Free format text: FORMER OWNER: LEI BAIYUAN

Effective date: 20121205

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518054 SHENZHEN, GUANGDONG PROVINCE TO: 518000 SHENZHEN, GUANGDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20121205

Address after: 518000 Guangdong city of Shenzhen province Baoan District manhole street and West Industrial jinmeiwei industrial park four building fourth layer

Patentee after: SHENZHEN EFORTUNE DIGITAL ELECTRONIC MANUFACTURING CO., LTD.

Address before: 518054. Guangdong, Shenzhen, Nanshan District, Houhai Avenue, azure coast, B20-6E

Patentee before: Lei Baiyuan

Patentee before: Ma Ping

EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20070829

Assignee: SHENZHEN EFORTUNE DIGITAL ELECTRONIC MANUFACTURING CO., LTD.

Assignor: Lei Baiyuan|Ma Ping

Contract record no.: 2012440020319

Denomination of invention: Method and device for realizing communication between peer devices

Granted publication date: 20110831

License type: Exclusive License

Record date: 20121130

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110831

Termination date: 20150212

EXPY Termination of patent right or utility model