Nothing Special   »   [go: up one dir, main page]

CN102970385B - The automatic connection method of a kind of host computer and slave computer - Google Patents

The automatic connection method of a kind of host computer and slave computer Download PDF

Info

Publication number
CN102970385B
CN102970385B CN201210455594.6A CN201210455594A CN102970385B CN 102970385 B CN102970385 B CN 102970385B CN 201210455594 A CN201210455594 A CN 201210455594A CN 102970385 B CN102970385 B CN 102970385B
Authority
CN
China
Prior art keywords
host computer
udp
computer
slave computer
address
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.)
Active
Application number
CN201210455594.6A
Other languages
Chinese (zh)
Other versions
CN102970385A (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 OUBO TECHNOLOGY CO., LTD.
Original Assignee
SHENZHEN OUBO TECHNOLOGY Co Ltd
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 SHENZHEN OUBO TECHNOLOGY Co Ltd filed Critical SHENZHEN OUBO TECHNOLOGY Co Ltd
Priority to CN201210455594.6A priority Critical patent/CN102970385B/en
Publication of CN102970385A publication Critical patent/CN102970385A/en
Application granted granted Critical
Publication of CN102970385B publication Critical patent/CN102970385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses the automatic connection method of a kind of host computer and slave computer, comprise host computer and slave computer, slave computer udp broadcast contains the data message of unique identifier, host computer receives and resolves this information, the slave computer IP address that this information that obtains host computer contains, host computer replys the UDP information containing unique identifier to slave computer, and slave computer receives and resolves the return information from host computer, and slave computer is set up TCP with host computer after obtaining the IP address of host computer and is connected.The present invention can be mutual and realize in ignorant situation from being dynamically connected in the address of host computer and slave computer, arrange without the need to manually participating in, utilize udp broadcast simultaneously and reply the data message with differentiating character, by differentiating that the IP address obtaining the other side can be resolved in character, UDP information is simple, connection speed is fast, and efficiency is high, stability and fail safe high.

Description

The automatic connection method of a kind of host computer and slave computer
Technical field
The present invention relates to the automatic connection method of a kind of host computer and slave computer.
Background technology
At present, existing technology is to realize the connection of host computer and slave computer, need the IP address knowing host computer and slave computer at least one party, this just needs artificial IP address of adding the opposing party a side, just can connect, or sending TCP connection request one by one to obtain connection to the IP address of the whole network section, such efficiency comparison is low, connects too slow.
Summary of the invention
For solving the problem, the object of the present invention is to provide a kind of can and the method that ignorant situation in realize from be dynamically connected mutual in the address of host computer and slave computer.
The present invention solves the technical scheme that its problem adopts: the automatic connection method of a kind of host computer and slave computer, comprises host computer and slave computer, said method comprising the steps of:
A, slave computer obtain own IP address by DHCP, represent that the character of udp broadcast request is gone out with regard to udp broadcast at set intervals by one;
B, host computer start UDP parsing module, read broadcast message, differentiate whether character is the character that slave computer defines; If just resolve the IP address of this UDP information, and send a UDP return information to this IP address, the information content is defined by host computer oneself; If not just abandoning this UDP information;
After C, slave computer receive UDP return information, differentiate this information return information whether host computer defines; If just stop udp broadcast, resolve the IP address of host computer UDP return information, set up TCP with this IP address and be connected; If not just continuing to send udp broadcast at set intervals.
Preferably, described steps A comprises: the character definition of expression udp broadcast request is 1.
Further, described steps A comprises: in network, all devices all can receive the data message of slave computer broadcast, but only has the parsing module being just provided with in host computer and can resolving this data message.
Preferably, described step B comprises: host computer UDP return information is content-defined is 2.
Further, host computer is the main frame of broadcast system, and slave computer is the stereo set of broadcast system.
The invention has the beneficial effects as follows: the automatic connection method of a kind of host computer that the present invention adopts and slave computer, can be mutual and realize in ignorant situation from being dynamically connected in the address of host computer and slave computer, arrange without the need to manually participating in, utilize udp broadcast simultaneously and reply the data message with differentiating character, by differentiating that the IP address obtaining the other side can be resolved in character, UDP information is simple, and connection speed is fast, efficiency is high, and stability, fail safe are high.
Accompanying drawing explanation
Below in conjunction with accompanying drawing and example, the invention will be further described.
Fig. 1 is the particular flow sheet of the automatic connection method of a kind of host computer of the present invention and slave computer.
Embodiment
With reference to Fig. 1, the automatic connection method of a kind of host computer of the present invention and slave computer, the automatic connection method of a kind of host computer and slave computer, comprises host computer and slave computer, said method comprising the steps of:
A, slave computer obtain own IP address by DHCP, represent that the character of udp broadcast request is gone out with regard to udp broadcast at set intervals by one;
B, host computer start UDP parsing module, read broadcast message, differentiate whether character is the character that slave computer defines; If just resolve the IP address of this UDP information, and send a UDP return information to this IP address, the information content is defined by host computer oneself; If not just abandoning this UDP information;
After C, slave computer receive UDP return information, differentiate this information return information whether host computer defines; If just stop udp broadcast, resolve the IP address of host computer UDP return information, set up TCP with this IP address and be connected; If not just continuing to send udp broadcast at set intervals.
Slave computer is by dynamic obtaining IP address (DHCP), and send specific data message to place local area network (LAN) udp broadcast, specific identifier is had in data message, then in network, all devices all can receive data message, but only have the parsing module being just provided with in host computer and can resolving this data message, host computer passes through resolution data, determine the object of these data, then the IP address that the address information changing data gets slave computer is resolved, and then send UDP return information by this address to slave computer, after slave computer receives return information, resolve the address of this information, obtain the IP address of host computer, and then connect with host computer TCP/IP, realize certainly being dynamically connected of host computer and slave computer.
Described steps A comprises: the character definition of expression udp broadcast request is 1.
Described steps A comprises: in network, all devices all can receive the data message of slave computer broadcast, but only has the parsing module being just provided with in host computer and can resolving this data message.
Described step B comprises: host computer UDP return information is content-defined is 2.
Host computer is the main frame of broadcast system, and slave computer is the stereo set of broadcast system.Host computer of the present invention and slave computer automatic connection method are specially adapted to use in broadcast control system, wherein slave computer is that intelligence plays stereo set, intelligent audio broadcast is carried out from the control signal of broadcast host by receiving, when when setting up radio network, only need that intelligence is play stereo set and be connected to network, automatically can be connected with broadcast host, staff scene is not needed to carry out debugging coupling to equipment, really achieve the plug and play of broadcasting equipment, greatly save installation, the time of debugging, operating process is very simple, the staff of specialty is not needed to get final product complete operation.
This invention can realize the intelligence of a kind of host computer and slave computer from being dynamically connected, open upper computer software on computers, slave computer powers on, connect netting twine, just can on being dynamically connected, and when after host computer IP address modification, only need restart slave computer can connect at once, slave computer at any time access network can connect fast, this is a kind of without the need to manually participating in the connection arranged, and connection speed is fast, and efficiency is high.
The above, just preferred embodiment of the present invention, the present invention is not limited to above-mentioned execution mode, as long as it reaches technique effect of the present invention with identical means, all should belong to protection scope of the present invention.

Claims (3)

1. an automatic connection method for host computer and slave computer, is characterized in that: comprise host computer and slave computer, and host computer is the main frame of broadcast system, and slave computer is the stereo set of broadcast system, said method comprising the steps of:
A, slave computer obtain own IP address by DHCP, represent that the character of udp broadcast request is gone out with regard to udp broadcast at set intervals by one, in network, all devices all can receive the data message of slave computer broadcast, but only has the parsing module being just provided with in host computer and can resolving this data message;
B, host computer start UDP parsing module, read broadcast message, differentiate whether character is the character that slave computer defines; If just resolve the IP address of this UDP information, and send a UDP return information to this IP address, the information content is defined by host computer oneself; If not just abandoning this UDP information;
After C, slave computer receive UDP return information, differentiate this information return information whether host computer defines; If just stop udp broadcast, resolve the IP address of host computer UDP return information, set up TCP with this IP address and be connected; If not just continuing to send udp broadcast at set intervals;
When after host computer IP address modification, restarting slave computer can connect at once, and slave computer at any time access network can connect fast.
2. the automatic connection method of a kind of host computer according to claim 1 and slave computer, is characterized in that: described steps A comprises: the character definition of expression udp broadcast request is 1.
3. the automatic connection method of a kind of host computer according to claim 1 and slave computer, is characterized in that: described step B comprises: host computer UDP return information is content-defined is 2.
CN201210455594.6A 2012-11-14 2012-11-14 The automatic connection method of a kind of host computer and slave computer Active CN102970385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210455594.6A CN102970385B (en) 2012-11-14 2012-11-14 The automatic connection method of a kind of host computer and slave computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210455594.6A CN102970385B (en) 2012-11-14 2012-11-14 The automatic connection method of a kind of host computer and slave computer

Publications (2)

Publication Number Publication Date
CN102970385A CN102970385A (en) 2013-03-13
CN102970385B true CN102970385B (en) 2015-09-23

Family

ID=47800264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210455594.6A Active CN102970385B (en) 2012-11-14 2012-11-14 The automatic connection method of a kind of host computer and slave computer

Country Status (1)

Country Link
CN (1) CN102970385B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683499A (en) * 2015-03-12 2015-06-03 活点信息技术有限公司 Automatic IP address searching method
CN106921757A (en) * 2015-12-28 2017-07-04 深圳市领耀东方科技股份有限公司 Intelligent control box binds the method and intelligent control box of the network equipment again
CN106231006A (en) * 2016-08-31 2016-12-14 珠海市魅族科技有限公司 Network system, the network equipment and the method obtaining IP address of equipment in real time
WO2020000124A1 (en) * 2018-06-25 2020-01-02 深圳市大疆创新科技有限公司 Method for monitoring connection state of laser radar, laser radar, and master computer
CN109738870A (en) * 2019-01-24 2019-05-10 山东超越数控电子股份有限公司 A kind of method and device for transmitting Radar Signal Processing software
CN110535830B (en) * 2019-07-31 2021-08-17 西安航天动力试验技术研究所 Communication method for rocket engine test system
CN110933191B (en) * 2019-10-18 2022-05-06 深圳市元征科技股份有限公司 IP address obtaining method and device, upper computer and storage medium
CN110995850A (en) * 2019-12-11 2020-04-10 武汉卓讯互动信息科技有限公司 MIDI multi-device access processing method
CN111711568A (en) * 2020-04-17 2020-09-25 新华三技术有限公司成都分公司 Message processing method and processing device
CN113489629B (en) * 2020-08-14 2022-11-18 青岛海信电子产业控股股份有限公司 Control end equipment, controlled end equipment and equipment networking method
CN114253211B (en) * 2021-12-15 2024-09-20 意欧斯智能科技股份有限公司 Method for performing interactive verification on PLC and upper computer WCS signals

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0881812A2 (en) * 1997-05-26 1998-12-02 Oki Electric Industry Co., Ltd. Telephone communication method capable of relating a telephone terminal and a speech channel IP address at the time of call connection
CN102148703A (en) * 2011-01-19 2011-08-10 武汉迈威光电技术有限公司 Network management topology realizing algorithm of switchboard
CN102752409A (en) * 2012-07-31 2012-10-24 上海虎符通信科技有限公司 Control system and control method of wireless cluster

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0881812A2 (en) * 1997-05-26 1998-12-02 Oki Electric Industry Co., Ltd. Telephone communication method capable of relating a telephone terminal and a speech channel IP address at the time of call connection
CN102148703A (en) * 2011-01-19 2011-08-10 武汉迈威光电技术有限公司 Network management topology realizing algorithm of switchboard
CN102752409A (en) * 2012-07-31 2012-10-24 上海虎符通信科技有限公司 Control system and control method of wireless cluster

Also Published As

Publication number Publication date
CN102970385A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
CN102970385B (en) The automatic connection method of a kind of host computer and slave computer
WO2012067942A3 (en) Discovery of electronic devices in a combined network
US20150128194A1 (en) Method and mobile terminal for switching playback device
CN103841466B (en) Screen prjection method, computer terminal and mobile terminal
WO2010041914A3 (en) Method and apparatus for resolving ip address collision in remote access service
US20170047066A1 (en) Voice recognition method, device, and system, and computer storage medium
CN103634312A (en) Device management method for realizing multi-audio fast synchrony based on audio sharing
CN101951368A (en) Service authority control method, terminal and system based on subnet
WO2008147099A3 (en) Method and apparatus for discovering universal plug and play device using resource information
JP2016500230A5 (en)
CN103475907A (en) Multi-screen control method and device
CN105682182A (en) Device discovery and device connection method, device and system
CN104243520A (en) Remote monitoring method, device and system
CN103546352A (en) Remote control method and device based on wireless login
CN103731339A (en) Digital life network alliance system and method for sharing online multimedia resources in digital life network alliance system
CN101621526B (en) iSCSI method and apparatus for preventing useless connection from occupying system resources
CN104426816A (en) Virtual machine communication method and device
CN104009956A (en) Communication method based on embedded multi-core co-processing gatekeeper system
CN102932214B (en) A kind of discovery polymerization of home network dissimilar medium equipment
CN112187486B (en) Interaction method between intelligent devices and intelligent device
WO2009078241A1 (en) Server device, communication terminal, access system, access method, and access program
US20150229700A1 (en) Protocol translation for media player device control
CN102752135A (en) Method for realizing configuration of network devices
TWI457025B (en) Network connection architecture of network electronic device and connection method thereof
CN103812537A (en) FMP support device and method based on Android 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
ASS Succession or assignment of patent right

Owner name: SHENZHEN OUBO TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: HAN WEI

Effective date: 20140520

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

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

TA01 Transfer of patent application right

Effective date of registration: 20140520

Address after: 518000 Guangdong city of Shenzhen province Baoan District Xixiang Republic Industrial Road macro great industrial park A building 6 floor

Applicant after: SHENZHEN OUBO TECHNOLOGY CO., LTD.

Address before: 518102 Guangdong city of Shenzhen province Baoan Xixiang Jinhai Road Gaolin court G-27E

Applicant before: Han Wei

C14 Grant of patent or utility model
GR01 Patent grant