CN111757000B - Camera ad hoc network in local area network and video transmission method - Google Patents

Camera ad hoc network in local area network and video transmission method Download PDF

Info

Publication number
CN111757000B
CN111757000B CN202010605875.XA CN202010605875A CN111757000B CN 111757000 B CN111757000 B CN 111757000B CN 202010605875 A CN202010605875 A CN 202010605875A CN 111757000 B CN111757000 B CN 111757000B
Authority
CN
China
Prior art keywords
camera
server
video stream
sends
port
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
CN202010605875.XA
Other languages
Chinese (zh)
Other versions
CN111757000A (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.)
Jiangsu Brmico Electronics Co ltd
Original Assignee
Jiangsu Brmico Electronics 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 Jiangsu Brmico Electronics Co ltd filed Critical Jiangsu Brmico Electronics Co ltd
Priority to CN202010605875.XA priority Critical patent/CN111757000B/en
Publication of CN111757000A publication Critical patent/CN111757000A/en
Application granted granted Critical
Publication of CN111757000B publication Critical patent/CN111757000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/661Transmitting camera control signals through networks, e.g. control via the Internet

Abstract

The invention relates to the field of vision, and discloses a camera ad hoc network and a video transmission method in a local area network, which comprises a server, a switch and a camera, wherein the server is in communication connection with the camera through the switch, a service program and an application program are installed on the server, the service program is used for receiving a video stream sent by the camera, the application program is used for acquiring data of the video stream from the service program, when networking, the camera sends own physical address to the server, the server sends RARP packet to the camera to request to obtain IP of the camera after receiving the physical address of the camera, the server sends own IP to the camera after obtaining the IP of the camera, the camera opens a port for transmitting video stream after obtaining the IP of the server, and the video stream is sent to the server through the port, the whole networking process is simple, the topology is easy, and the method can be flexibly applied to various application scenes needing the upgrading of the visual ability.

Description

Camera ad hoc network in local area network and video transmission method
Technical Field
The invention relates to the field of vision, in particular to a camera ad hoc network in a local area network and a video transmission method.
Background
Under the background of industrial 4.0, a large number of traditional industrial production scenes are urgently required to be intelligently upgraded and modified, but the cost for replacing production equipment is generally high, and the intelligent upgrading and modification based on the existing production equipment is a more economic and rapid upgrading scheme.
In some upgrading requirements that require binocular vision capabilities, such as visual applications like appearance inspection, product metering, flow statistics, etc., there is still a lack of a flexible and economical solution. For example, when security monitoring is performed in an old cell, not only a large number of cameras need to be deployed, but also network parameters need to be configured for each camera and tested when all the cameras are connected to a local area network, and thus the workload is large.
Disclosure of Invention
In view of the defects of the background art, the invention provides a camera ad hoc network and a video transmission method in a local area network, and aims to solve the technical problems that in some application scenes needing vision capability upgrading requirements, network parameters need to be manually configured for each camera and tested, and then networking of the cameras can be completed, and the workload is large.
In order to solve the technical problems, the invention provides the following technical scheme: a camera ad hoc network and video transmission method in a local area network comprises a server, a switch and a camera, wherein the server is in communication connection with the camera through the switch, a service program and an application program are installed on the server, the service program is used for receiving a video stream sent by the camera, and the application program is used for acquiring data of the video stream from the service program, and the method comprises the following steps:
s1: after the camera is accessed into the local area network, sending a broadcast packet to a special PORT (PORT for maintaining monitoring registration) of the server, wherein the broadcast packet comprises a physical address of the camera;
s2: the server receives a broadcast packet sent by the camera to obtain a physical address of the camera, and sends an RARP packet to the camera according to the physical address to request to acquire the IP of the camera;
s3: the camera receives the RARP packet and sends an IP of the camera to the server;
s4: the server sends the server IP to the camera after receiving the IP of the camera;
s5: and after receiving the IP of the server, the camera opens a port for transmitting the video stream and sends the video stream to the server through the port.
Further, in step S1, the camera transmits the broadcast packet to the PORT dedicated to the keep-alive registration of the server through the UDP protocol.
Further, in step S5, the camera transmits the video stream to the server via the RTCP protocol.
Further, the camera is a monocular camera, a binocular camera or a multi-view camera.
Compared with the prior art, the invention has the beneficial effects that: in an application scene needing the vision ability upgrading, only a camera needs to be deployed on the site, then the camera is in communication connection with a server through a switch, the camera can be accessed into a local area network by itself and performs video transmission, the network parameters of each camera do not need to be configured manually, the workload is reduced, and the method and the device can be flexibly applied to various applications needing the vision ability upgrading.
Drawings
The invention has the following drawings:
fig. 1 is a flowchart of the camera completing ad hoc network according to the present invention.
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic views illustrating only the basic structure of the present invention in a schematic manner, and thus show only the constitution related to the present invention.
As shown in fig. 1, a method for ad hoc networking of cameras and video transmission in a local area network includes a server, a switch, and a camera, where the server is in communication connection with the camera through the switch, the server is installed with a service program and an application program, the service program is used to receive a video stream sent by the camera, and the application program is used to obtain data of the video stream from the service program, and the method includes the following steps:
s1: after the camera is accessed into the local area network, sending a broadcast packet to a special PORT (PORT for maintaining monitoring registration) of the server, wherein the broadcast packet comprises a physical address of the camera;
s2: the server receives a broadcast packet sent by the camera to obtain a physical address of the camera, and sends an RARP packet to the camera according to the physical address to request to acquire the IP of the camera;
s3: the camera receives the RARP packet and sends an IP of the camera to the server;
s4: the server sends the server IP to the camera after receiving the IP of the camera;
s5: and after receiving the IP of the server, the camera opens a port for transmitting the video stream and sends the video stream to the server through the port.
In step S1, the camera sends a broadcast packet to the PORT dedicated to the listen-on registration of the server via the UDP protocol.
In step S5, the camera transmits the video stream to the server via the RTCP protocol.
The camera is a monocular camera, a binocular camera or a multi-view camera; when the camera is a monocular camera, the camera opens a port for transmitting the video stream in step S5; when the camera is a binocular camera, in step S5, two ports for transmitting video streams are opened; when the camera is a multi-view camera, the number of ports of the transmission video stream opened by the camera in step S5 is the same as the number of cameras.
In this embodiment, in a local area network, the camera, the switch, and the server may communicate through a network cable.
In summary, according to the camera ad hoc network and the video transmission method in the embodiment, after the camera is connected to the local area network, the network parameters do not need to be manually configured for each camera and tested, so that the workload is reduced, and the method can be flexibly applied to various application scenes needing vision capability upgrading.
In light of the foregoing, it is to be understood that various changes and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. The technical scope of the present invention is not limited to the content of the specification, and must be determined according to the scope of the claims.

Claims (3)

1. A camera ad hoc network and video transmission method in a local area network comprises a server, a switch and a camera, wherein the server is in communication connection with the camera through the switch, and the method is characterized in that: the server is provided with a service program and an application program, the service program is used for receiving the video stream sent by the camera, and the application program is used for acquiring the data of the video stream from the service program, and the method comprises the following steps:
s1: after the camera is accessed to a local area network, a broadcast packet is sent to a special PORT (PORT for maintaining monitoring registration) of the server through a UDP (user datagram protocol), wherein the broadcast packet comprises a physical address of the camera;
s2: the server receives a broadcast packet sent by the camera and then obtains a physical address of the camera, and the server sends an RARP packet to the camera according to the physical address to request to acquire the IP of the camera;
s3: the camera sends own IP to the server after receiving the RARP packet;
s4: the server sends the server IP to the camera after receiving the IP of the camera;
s5: and after receiving the IP of the server, the camera opens a port for transmitting the video stream and sends the video stream to the server through the port.
2. The method of claim 1, wherein the method comprises the following steps: in step S5, the camera sends a video stream to the server via the RTCP protocol.
3. The method of claim 1, wherein the method comprises the following steps: the camera is a monocular camera, a binocular camera or a multi-view camera.
CN202010605875.XA 2020-06-29 2020-06-29 Camera ad hoc network in local area network and video transmission method Active CN111757000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010605875.XA CN111757000B (en) 2020-06-29 2020-06-29 Camera ad hoc network in local area network and video transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010605875.XA CN111757000B (en) 2020-06-29 2020-06-29 Camera ad hoc network in local area network and video transmission method

Publications (2)

Publication Number Publication Date
CN111757000A CN111757000A (en) 2020-10-09
CN111757000B true CN111757000B (en) 2021-12-28

Family

ID=72678041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010605875.XA Active CN111757000B (en) 2020-06-29 2020-06-29 Camera ad hoc network in local area network and video transmission method

Country Status (1)

Country Link
CN (1) CN111757000B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1922847A (en) * 2004-01-09 2007-02-28 松下电器产业株式会社 Ip device, management server and network system
CN101282450A (en) * 2007-04-02 2008-10-08 厦门瑞科技术有限公司 Method capable of immediate access and management of network camera
CN101753354A (en) * 2008-12-22 2010-06-23 北京中星微电子有限公司 Method for realizing the automatic configuration of network camera and monitoring system
CN102025799A (en) * 2010-12-17 2011-04-20 北京东土科技股份有限公司 Method for discovery and automatic configuration for IP address of device
CN103327130A (en) * 2012-03-22 2013-09-25 中兴通讯股份有限公司 Method, terminal and system for reusing MAC address
CN103501356A (en) * 2013-09-18 2014-01-08 中安消技术有限公司 Network address configuration method and system of network camera
CN103780408A (en) * 2012-10-19 2014-05-07 中兴通讯股份有限公司 Device online and address issuing methods, front-end device, server and monitoring system
CN105656680A (en) * 2016-01-29 2016-06-08 浙江宇视科技有限公司 Method and device for controlling web camera
CN105791047A (en) * 2016-02-29 2016-07-20 农忠海 Method for controlling management system of secure video private network
CN105872391A (en) * 2016-06-15 2016-08-17 华为技术有限公司 Control method, control device and control system for IP (Internet Protocol) Camera
KR101897270B1 (en) * 2018-05-14 2018-09-10 주식회사 경림이앤지 Block encryption and description system of IP based CCTV camera video and audio data

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350768B (en) * 2007-07-19 2011-08-24 中兴通讯股份有限公司 Method for conveying IP packet in broadcast network
CN101378385A (en) * 2007-08-27 2009-03-04 上海市闵行中学 Method for preventing LAN from cheat aggressing by address analysis protocol
CN103024861B (en) * 2011-09-20 2015-05-27 北京信威通信技术股份有限公司 GARP (Generic Attribute Registration Protocol)-based data channel updating method in wireless automatic relay communication system
CN106453683A (en) * 2016-10-17 2017-02-22 济南浪潮高新科技投资发展有限公司 Method for centralized access management of cameras
US10728209B2 (en) * 2017-01-05 2020-07-28 Ademco Inc. Systems and methods for relating configuration data to IP cameras

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1922847A (en) * 2004-01-09 2007-02-28 松下电器产业株式会社 Ip device, management server and network system
CN101282450A (en) * 2007-04-02 2008-10-08 厦门瑞科技术有限公司 Method capable of immediate access and management of network camera
CN101753354A (en) * 2008-12-22 2010-06-23 北京中星微电子有限公司 Method for realizing the automatic configuration of network camera and monitoring system
CN102025799A (en) * 2010-12-17 2011-04-20 北京东土科技股份有限公司 Method for discovery and automatic configuration for IP address of device
CN103327130A (en) * 2012-03-22 2013-09-25 中兴通讯股份有限公司 Method, terminal and system for reusing MAC address
CN103780408A (en) * 2012-10-19 2014-05-07 中兴通讯股份有限公司 Device online and address issuing methods, front-end device, server and monitoring system
CN103501356A (en) * 2013-09-18 2014-01-08 中安消技术有限公司 Network address configuration method and system of network camera
CN105656680A (en) * 2016-01-29 2016-06-08 浙江宇视科技有限公司 Method and device for controlling web camera
CN105791047A (en) * 2016-02-29 2016-07-20 农忠海 Method for controlling management system of secure video private network
CN105872391A (en) * 2016-06-15 2016-08-17 华为技术有限公司 Control method, control device and control system for IP (Internet Protocol) Camera
KR101897270B1 (en) * 2018-05-14 2018-09-10 주식회사 경림이앤지 Block encryption and description system of IP based CCTV camera video and audio data

Also Published As

Publication number Publication date
CN111757000A (en) 2020-10-09

Similar Documents

Publication Publication Date Title
CN106789606B (en) Network communication system, management method and communication method thereof
US10951804B2 (en) Photographing synchronization method and apparatus
CN101425935B (en) VoIP service customer experience quality test and monitoring method and system
CN103873472A (en) Method for automatically having access to network
CN105763905A (en) Method and system for sharing camera between mobile phone and television set
CN107645339B (en) A kind of optical fiber repeater realizes the method and device of topological structure automatically
DE60012913T2 (en) CABLE INTEGRITY TESTING TECHNOLOGY FOR REMOTE HARSH ENVIRONMENTAL MONITORING
WO2010123268A2 (en) Method and apparatus for using contents of wireless terminal in home network system
CN107547932A (en) Sharing method and device, the terminal of data message
CN111757000B (en) Camera ad hoc network in local area network and video transmission method
EP2461580A1 (en) Monitoring message transmission method and system
CN101072212A (en) Multimedia data monitoring method
CN101094159B (en) Method for penetrating through private network of media stream
CN104506425A (en) Instant messaging system based on family cloud host and method thereof
CN108184091A (en) A kind of video monitoring equipment dispositions method and device
CN110740287B (en) Data processing method and device for autonomous network
CN103873600A (en) Network address translation penetration method and devices
CN101395905A (en) Method and apparatus of communication between embedded cable modem and embedded set-top box
CN107291409B (en) Online desktop sharing method and system
CN104980955A (en) Method for improving transfer rate of Wi-Fi Display
WO2015043170A1 (en) Endpoint information interaction processing method, apparatus and telepresence endpoint
CN104581025A (en) Image monitoring system and method
KR101337111B1 (en) Server, system, and control method for monitoring remote image
CN117201737A (en) Video stream cascade transmission method and system based on upper and lower video monitoring platforms
US20230188436A1 (en) Automated initiation of help session in a video streaming system

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