CN108377210B - Local area network multi-device identification method - Google Patents

Local area network multi-device identification method Download PDF

Info

Publication number
CN108377210B
CN108377210B CN201810059086.3A CN201810059086A CN108377210B CN 108377210 B CN108377210 B CN 108377210B CN 201810059086 A CN201810059086 A CN 201810059086A CN 108377210 B CN108377210 B CN 108377210B
Authority
CN
China
Prior art keywords
slave
master
equipment
slave device
area network
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
CN201810059086.3A
Other languages
Chinese (zh)
Other versions
CN108377210A (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.)
Xiamen Yealink Network Technology Co Ltd
Original Assignee
Xiamen Yealink Network 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 Xiamen Yealink Network Technology Co Ltd filed Critical Xiamen Yealink Network Technology Co Ltd
Priority to CN201810059086.3A priority Critical patent/CN108377210B/en
Priority to PCT/CN2018/078200 priority patent/WO2019140756A1/en
Publication of CN108377210A publication Critical patent/CN108377210A/en
Application granted granted Critical
Publication of CN108377210B publication Critical patent/CN108377210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a local area network multi-device identification method, which adopts a C/S architecture as a system architecture of a local area network, takes a local area network host as a main device, and takes other accessories as a slave device; the slave device actively sends a heartbeat packet to the master device according to the IP and the port of the master device, identifies the type of the master device and reports the plugging state of the slave device; and after receiving the heartbeat packet of the slave equipment in the local area network, the master equipment starts to send the heartbeat packet to the slave equipment, and identifies the type and the plugging state of the slave equipment. The disconnection and connection of the local area network equipment can be quickly detected by adopting the local area network multi-equipment identification method.

Description

Local area network multi-device identification method
Technical Field
The invention relates to the technical field of local area network communication, in particular to a local area network multi-device identification method.
Background
The network-based video conference system has the advantages of low cost, easiness in integration, convenience in deployment and the like, is applied more and more widely, and various video conference systems have more and more accessories, so that a multi-device identification method in a local area network is urgently needed to identify the accessories so as to facilitate the use of the accessories.
Disclosure of Invention
The invention aims to provide a local area network multi-device identification method which can quickly detect disconnection and connection of local area network devices.
In order to realize the technical scheme, the technical scheme adopted by the invention is as follows:
a local area network multi-device identification method is characterized in that: setting a system architecture of a local area network into a C/S architecture, wherein a host of the local area network serves as a main device, and other accessories serve as slave devices; the slave device actively sends a heartbeat packet to the master device according to the IP and the port of the master device, identifies the type of the master device and reports the plugging state of the slave device; and after receiving the heartbeat packet of the slave equipment in the local area network, the master equipment starts to send the heartbeat packet to the slave equipment, and identifies the type and the plugging state of the slave equipment.
When the slave device accesses the local area network, the identification process is specifically as follows:
when no slave device is inserted, the master device is in an idle state; when the slave equipment is accessed, the slave equipment actively sends a heartbeat packet to the master equipment; the master device receives the heartbeat packet of the slave device and sends the type message of the master device to the slave device; the slave equipment receives the heartbeat reply packet of the master equipment and acquires the equipment type of the master equipment;
after receiving the heartbeat packet of the slave equipment, the master equipment actively sends the heartbeat packet to the slave equipment; the method comprises the steps that the slave equipment receives a heartbeat packet of the master equipment and sends the type information of the slave equipment to the master equipment; the method comprises the steps that a master device receives a heartbeat reply packet of a slave device, obtains the device type of the slave device and obtains a connection message of the slave device;
after the master device and the slave device complete mutual identification, the master device circularly sends a heartbeat packet and receives the heartbeat packet and replies to the slave device, and the slave device circularly sends the heartbeat packet and receives the heartbeat packet and replies to the master device.
When the slave device disconnects the local area network, the identification process is specifically as follows:
when the master device and the slave device do not obtain the heartbeat reply packet within the overtime time, the slave device is judged to be removed, the slave device pulling-out message is reported, the master device stops the heartbeat packet circulation thread, the heartbeat packet is not sent to the slave device any more, and the slave device is in an idle state.
The heartbeat reply packet is a data packet which is a udp packet.
After the scheme is adopted, the invention has the following beneficial effects:
first, both the master and the slave have a heartbeat packet detection mechanism, and can quickly detect disconnection and reconnection of equipment in the local area network.
And two-way equipment identification is supported, namely the host can identify the type of the accessory, and the accessory can also identify the type of the host.
Drawings
FIG. 1 is a flow chart of the identification of a slave device when accessing the present invention;
fig. 2 is a flow chart of the identification of the slave device when the slave device is disconnected according to the present invention.
Detailed Description
As shown in fig. 1 and 2, the present invention discloses a method for identifying multiple devices in a local area network, which employs a C/S architecture, where the C/S architecture is a client and server architecture, a host of the local area network is a master device, and other accessories are slave devices, and for a slave device, an IP and a port of the master device are fixed, so that the slave device can actively send a heartbeat packet to the master device, identify a type of the master device, and report a plugging/unplugging state of the slave device. For the master device, after receiving the heartbeat packet of the slave device in the local area network, the master device starts to send the heartbeat packet to the slave device, and identifies the type and the plugging state of the slave device.
When the slave device accesses, the identification process is as follows:
step 1, when no slave equipment is inserted into the master equipment, the master equipment is in an idle state, and the master equipment cannot actively send a heartbeat packet; when the slave equipment is accessed, the slave equipment actively sends a heartbeat packet to the master equipment;
step 2, the master device receives the heartbeat packet of the slave device, sends the type message of the master device according to the identification protocol and returns the type message to the slave device; after receiving the heartbeat reply packet of the master device, the slave device can acquire the device type of the master device;
step 3, after receiving the heartbeat packet of the slave device, the master device realizes that the slave device is inserted, and then the master device can actively send the heartbeat packet to the slave device; the slave equipment receives the heartbeat packet of the master equipment, sends the type message of the slave equipment according to the identification protocol and returns the type message to the master equipment;
step 4, after receiving the heartbeat reply packet of the slave device, the master device can acquire the device type of the slave device and acquire the connection message of the slave device;
step 5, the main device circularly sends heartbeat packets and receives heartbeat packet replies; the slave device loops sending heartbeat packets and receiving heartbeat packet replies.
When removed from the device, the identification process is specifically as follows:
step 1, after the master equipment identifies the slave equipment, sending heartbeat packets to the slave equipment at regular intervals; when the slave device is removed, the heartbeat packet sent to the slave device by the master device cannot be replied;
step 2, when the master device and the slave device do not obtain the reply of the heartbeat packet within the overtime time, the slave device is considered to be removed, the slave device is reported to pull out the message, the circulation thread of the heartbeat packet is stopped, the heartbeat packet is not sent to the slave device any more, and the slave device is in an idle state;
in the identification method, the heartbeat packet reply packets of the master device and the slave device are data packets, and the data packets adopt udp packets, wherein udp is a user datagram protocol. Because the network environment is relatively stable in the local area network, the udp packet is adopted for communication, the transceiving is fast, and the network bandwidth occupation is small. But the unreliability of udp itself adds a detection retransmission mechanism, so as to avoid packet loss and ensure the reliability of data transmission. The principle of the retransmission mechanism is to retransmit a data packet if no response is received to the transmitted data packet within a certain time. The transmitted packets are classified, and some packets need to support a retransmission confirmation mechanism to ensure reliability, for example, to obtain a version number. Some packets do not need to guarantee reliability, such as heartbeat packets, and do not need to support retransmission acknowledgement mechanisms.
The above description is only exemplary of the present invention and is not intended to limit the technical scope of the present invention, so that any minor modifications, equivalent changes and modifications made to the above exemplary embodiments according to the technical spirit of the present invention are within the technical scope of the present invention.

Claims (3)

1. A local area network multi-device identification method is characterized in that: setting a system architecture of a local area network into a C/S architecture, wherein a host of the local area network serves as a main device, and other accessories serve as slave devices; the slave device actively sends a heartbeat packet to the master device according to the IP and the port of the master device, identifies the type of the master device and reports the plugging state of the slave device; after receiving a heartbeat packet of a slave device in a local area network, the master device starts to send the heartbeat packet to the slave device, and identifies the type and the plugging state of the slave device;
when the slave device accesses the local area network, the identification process is as follows:
when no slave device is inserted, the master device is in an idle state; when the slave equipment is accessed, the slave equipment actively sends a heartbeat packet to the master equipment; the master device receives the heartbeat packet of the slave device and sends the type message of the master device to the slave device; the slave equipment receives the heartbeat reply packet of the master equipment and acquires the equipment type of the master equipment;
after receiving the heartbeat packet of the slave equipment, the master equipment actively sends the heartbeat packet to the slave equipment; the method comprises the steps that the slave equipment receives a heartbeat packet of the master equipment and sends the type information of the slave equipment to the master equipment; the method comprises the steps that a master device receives a heartbeat reply packet of a slave device, obtains the device type of the slave device and obtains a connection message of the slave device;
after the master device and the slave device complete mutual identification, the master device circularly sends a heartbeat packet and receives the heartbeat packet and replies to the slave device, and the slave device circularly sends the heartbeat packet and receives the heartbeat packet and replies to the master device.
2. The method of claim 1, wherein the method comprises: when the slave device disconnects the local area network, the identification process is specifically as follows:
when the master device and the slave device do not obtain the heartbeat reply packet within the overtime time, the slave device is judged to be removed, the slave device pulling-out message is reported, the master device stops the heartbeat packet circulation thread, the heartbeat packet is not sent to the slave device any more, and the slave device is in an idle state.
3. The local area network multi-device identification method according to claim 1 or 2, characterized in that: the heartbeat reply packet is a data packet which is a udp packet.
CN201810059086.3A 2018-01-22 2018-01-22 Local area network multi-device identification method Active CN108377210B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810059086.3A CN108377210B (en) 2018-01-22 2018-01-22 Local area network multi-device identification method
PCT/CN2018/078200 WO2019140756A1 (en) 2018-01-22 2018-03-07 Method for identifying multiple devices within local area network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810059086.3A CN108377210B (en) 2018-01-22 2018-01-22 Local area network multi-device identification method

Publications (2)

Publication Number Publication Date
CN108377210A CN108377210A (en) 2018-08-07
CN108377210B true CN108377210B (en) 2020-07-24

Family

ID=63016645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810059086.3A Active CN108377210B (en) 2018-01-22 2018-01-22 Local area network multi-device identification method

Country Status (2)

Country Link
CN (1) CN108377210B (en)
WO (1) WO2019140756A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120881B (en) * 2018-09-21 2020-10-02 上海赛连信息科技有限公司 Multi-party conference control method, system and terminal
CN110730116B (en) * 2019-10-21 2021-10-29 杭州鸿雁智能科技有限公司 Operation method of communication equipment in local area network, communication equipment and gateway equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302692A (en) * 2016-08-09 2017-01-04 深圳Tcl新技术有限公司 The discovery method and apparatus of equipment
CN107181628A (en) * 2017-07-20 2017-09-19 杭州老板电器股份有限公司 Two-way wireless communication method, device and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7620001B2 (en) * 2004-10-13 2009-11-17 Good Technology, Inc. Communication system and method with mobile devices
JP2013097548A (en) * 2011-10-31 2013-05-20 Pfu Ltd Information processing system, information processing device, client terminal, information processing method and program
CN105634805B (en) * 2015-12-31 2019-04-16 深圳市磊科实业有限公司 Method of the main control device to the unified configuration of optional equipment under a kind of wireless networking environment
CN105871668B (en) * 2016-03-29 2019-10-25 海尔优家智能科技(北京)有限公司 Interconnect method and the intelligent appliance of Internet of Things intelligent appliance

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302692A (en) * 2016-08-09 2017-01-04 深圳Tcl新技术有限公司 The discovery method and apparatus of equipment
CN107181628A (en) * 2017-07-20 2017-09-19 杭州老板电器股份有限公司 Two-way wireless communication method, device and terminal

Also Published As

Publication number Publication date
WO2019140756A1 (en) 2019-07-25
CN108377210A (en) 2018-08-07

Similar Documents

Publication Publication Date Title
EP3229420A1 (en) Method for establishing persistent connection between multiple smart devices and server, and smart device
KR101271261B1 (en) Method for detection of the activity of a device in a network of distributed stations, as well as a network station for carrying out the method
CN106230896A (en) A kind of information push method, Apparatus and system
CN111427527B (en) Screen projection method, device, equipment and computer readable storage medium
CN102111409B (en) Method and system to support wireless multicast transmission
CN113194550B (en) Data channel construction method, server and data cluster system
CN108377210B (en) Local area network multi-device identification method
CN111263338A (en) Network distribution method of Bluetooth Mesh network and related network distribution equipment and system
CN104683994A (en) Wireless network configuration method and wireless network devices
EP2765741A1 (en) Download method and system by way of broadcast in ubiquitous network
EP2494769B1 (en) Communications system
US20060089164A1 (en) Method and system for transmitting MMS notification message
KR20160118813A (en) Gateway device being connected to remote server through mobile network and ip management method thereof
CN104539749A (en) Connecting method and device based on virtual IP address
CN102025730B (en) Data transmission device based on HTTP protocol and implementation method thereof
CN101232491B (en) Network apparatus, system and method for detecting partner state
CN105553921A (en) Internet of things communication method and apparatus, and internet of things communication system
US20080209003A1 (en) Monitoring device and monitoring method
CN103152495A (en) Method, device and system for media transferring
JP5999461B2 (en) Method, apparatus, and system for obtaining an internet protocol address
KR100377852B1 (en) Message transmission method and system capable of balancing load
US10111051B2 (en) Communication apparatus, control method therefor, program, and storage medium
US20090228591A1 (en) Information processing apparatus, information processing apparatus control method, and computer product
US10200210B2 (en) Electronic device and communications method thereof
CN108632898B (en) Communication equipment and packet transmission method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant