CN106162071A - Procotol is used automatically to detect the method for video monitoring main frame in LAN - Google Patents
Procotol is used automatically to detect the method for video monitoring main frame in LAN Download PDFInfo
- Publication number
- CN106162071A CN106162071A CN201510204510.5A CN201510204510A CN106162071A CN 106162071 A CN106162071 A CN 106162071A CN 201510204510 A CN201510204510 A CN 201510204510A CN 106162071 A CN106162071 A CN 106162071A
- Authority
- CN
- China
- Prior art keywords
- video monitoring
- main frame
- bag
- class
- monitoring main
- 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.)
- Pending
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses and a kind of use procotol automatically to detect the method for video monitoring main frame in LAN, belong to monitor video and information retrieval field, comprise the following steps: S1 loads all worker thread class examples with network discovery function supported, uses unified interface to realize;S2 starts all of worker thread class example with network discovery function successively, and each worker thread class example sends network detection bag automatically;S3 waits video monitoring main frame feedback, and goes out video monitoring host information according to the data parsing of feedback, until all finishing receiving or time-out.Beneficial effects of the present invention is as follows: by use this method can quickly find the machine the most all video monitoring main frames existed and support, finally giving a video monitoring host information list, this list information can be used for video monitoring host data and extracts business.
Description
Technical field
The invention belongs to video monitoring and information retrieval field, be specifically related to a kind of use procotol and automatically visit
The method of video monitoring main frame in survey LAN.
Background technology
Video monitoring is the important component part of safety and protection system, and traditional monitoring system includes that front end images
Machine, transmission cable, video monitoring platform.Video camera can be divided into network digital camera and analog video camera,
Can be as the collection of head end video picture signal.It is the integrated system that a kind of prevention ability is stronger.Video is supervised
Control directly perceived with it, accurate, abundant with information content in time and be widely used in many occasions.In recent years, with
Computer, network and image procossing, the developing rapidly of transmission technology, Video Supervision Technique there has also been length
The development of foot.
The most a variety of video monitoring main frames, DVR digital video monitoring main frame, NVR Internet video at present
Monitoring host computer, respective production firm is different, and the procotol of use is the most different, and part main frame manufacturer
SDK (SDK, Software Development for finding monitoring host computer is not provided
Kit).Therefore, for needing the data extraction meeting supporting various video monitoring host computer the most inconvenient, typically deposit
In following defect, concrete condition is as follows:
1. the agreement providing the manufacturer of network discovery function SDK to use is different, it is impossible to general;
2. the quantity of information providing the SDK of network discovery function to extract is inconsistent;
3. part manufacturer only provides Network finding instrument, does not provides SDK, and instrument here refers to special
Software tool;
4. part manufacturer does not provides any instrument carrying out Network finding and SDK.
Summary of the invention
The present invention is directed to the deficiencies in the prior art, it is provided that a kind of use procotol detects in LAN automatically
The method of video monitoring main frame, it is possible to effective solution has the SDK of network discovery function because manufacturer does not provides
Or the SDK that each manufacturer provides uses agreement inconsistent causing not support to detect various video monitoring host computer and letter
The problem that breath extracts inconvenience.
For solving problem above, the technical solution used in the present invention is as follows: a kind of use procotol is visited automatically
The method of video monitoring main frame in survey LAN, comprises the following steps:
S1: load all worker thread class examples with network discovery function supported, use unified
Interface realizes;
S2: start all of worker thread class example with network discovery function, each worker thread successively
Class example sends network detection bag automatically;
S3: wait video monitoring main frame feedback, and go out video monitoring host information according to the data parsing of feedback,
Until all finishing receiving or time-out.
As preferably: the IO bag that network detection bag is no-protocol described in S2 or udp protocol bag.
As preferably: when what described S2 sent is the IO bag of no-protocol, concrete grammar is as follows:
S211: Mac address when receiving changes to send the Mac address of main frame;
S212: directly to LAN broadcast's IO bag.
As preferably: when what described S2 sent is udp protocol bag, concrete grammar is as follows:
S221: the SDK bag using video monitoring main frame manufacturer to provide detects;
S222: send UDP message bag.
As preferably: S2 is further comprising the steps of:
S231: preserve video monitoring main frame usual end slogan list, a corresponding class video monitoring of port numbers
Main frame;
S232: the IP address of all existence in traversal LAN;
S233: to each IP address scan main frame usual end slogan, if port has turned on, then it is assumed that this port
Corresponding video monitoring main frame exists.
As preferably: S2 is further comprising the steps of:
S24. abstract package common framework and Network finding interface, each video monitoring Host Type realizes once
Network finding interface.
As preferably: the concrete grammar of described S24 is as follows:
S241. a video monitoring Host Detection management class and a general operations thread class, Qi Zhongjian are built
Test tube reason class is singleton pattern;
S242. the video monitoring main frame of each kind is inherited from a general operations thread class, and joins
In the list of management class.
As preferably: the video monitoring host information described in S3 includes Host Type, host IP address and master
Machine port numbers.
Beneficial effects of the present invention is as follows: by using this method, no matter whether manufacturer provides SDK, all may be used
With quickly find the machine the most all video monitoring main frames existed and support, compared to existing
The poor efficiency of technology, loaded down with trivial details, the method is more efficient, succinct.A video monitoring may finally be obtained after detection
Host information list, this list information can be used for the data of video monitoring main frame and extracts business.
Accompanying drawing explanation
Fig. 1 is video monitoring host information extraction main flow chart in LAN net;
Fig. 2 is video monitoring host information extraction detail flowchart in LAN net.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, develop simultaneously reality referring to the drawings
Execute example, the present invention is described in further details.
Procotol is used automatically to detect the method for video monitoring main frame in LAN as it is shown in figure 1, a kind of,
Refer in particular to discovery and the acquisition of information of video monitoring main frame in LAN, comprise the following steps:
S1: load all worker thread class examples with network discovery function supported, use unified
Interface realizes;
S2: start all of worker thread class example with network discovery function, each worker thread successively
Class example sends network detection bag automatically;
S3: wait video monitoring main frame feedback, and go out video monitoring host information according to the data parsing of feedback,
Until all finishing receiving or time-out.
The IO bag that network detection bag is no-protocol described in S2 or udp protocol bag.
When what described S2 sent is the IO bag of no-protocol, concrete grammar is as follows:
S211: Mac address when receiving changes to send the Mac address of main frame;
S212: directly to LAN broadcast's IO bag.
Embodiment 1, as shown in Figure 2:
201 when agreement send be the IO bag of no-protocol time:
2011 Haikang monitoring host computer protocol package contents:
FFFFFFFFFFFFBCEE7BE30291803321010142000004C806040300A9D3BCEE7BE3029
1C0A8003BFFFFFFFFFFFF0000000000000000000000000000000000000000000000
00000000000000000000000000;
Wherein FFFFFFFFFFFF is the Mac address receiving bag, represents and is not specific to certain main frame;
B.BCEE7BE30291 is the Mac location sending bag, when feedback then for receiving the Mac address of bag, institute
This address is replaced with during to receive the Mac address of the machine;
C. directly to LAN broadcast's IO bag.
2012 wait Internet video main frame feedback information, until all finishing receiving or time-out.
Wherein, send I/O data bag and receive feedback, using the SDK of open source technology WinPcap, part
C++ code is as follows:
When what described S2 sent is udp protocol bag, concrete grammar is as follows:
S221: the SDK bag using video monitoring main frame manufacturer to provide detects;
S222: send UDP message bag.
Embodiment 2, as shown in Figure 2:
202 when agreement send be udp protocol bag time:
The 2021 SDK bags using monitoring host computer manufacturer to provide detect;Such as:
1. tie up century main frame LAN host detection API in.
2. world great achievement main frame LAN host detection API.
3. big China main frame LAN host detection API.
2022 send UDP message bag and wait data feedback.
S2 is further comprising the steps of:
Determine whether video monitoring main frame exists with the method for traversal port:
A, preservation video monitoring main frame well known port list, a corresponding class video monitoring main frame of port
The IP address of all existence in b, traversal LAN
C, to each IP address scan main frame well known port, if port has turned on, then it is assumed that this port is corresponding
Video monitoring main frame exist, and IP address, commodity, video monitoring Host Type are preserved into one
Bar finds record.
Embodiment 3, as shown in Figure 2:
203 scanning LAN host ports:
Main frame in 2031 traversal LANs, is judged whether by the conventional video monitoring host port of scanning
Corresponding video monitoring main frame;
A. resolve in advance and store the video monitoring main frame well known port information supported;
The most such as: the port information such as Haikang, middle dimension century, world great achievement, big China, Chinese nation, Jing Yang.
Scanning result is converted to corresponding video monitoring host information, including following information: main frame class by 2032
Type, host ip (ipv4) address, host port etc..
204 storage detection results: finally giving a video monitoring host information list, this list information can
Business is extracted for video monitoring host data.
Furthermore it is also possible to abstract package common framework and Network finding interface, each Host Type realizes once
Network finding interface, it is simple to system expands the support to new type main frame.
Concrete grammar is as follows: build video monitoring Host Detection management class (singleton pattern), and one
General operations thread class;The video monitoring main frame of each kind is inherited from a general operations thread class, and
Join in the list of management class;If supporting new video monitoring main frame, then have only to increase correspondence
Worker thread realizes, it is achieved be to carry out for abstract worker thread class.
The working method of interface instance: 1. management class example performs " all detections " method;Start the most successively
Worker thread list thread;3. preserve and completed the data that the thread of work returns;4. wait all of work
Complete as thread or time-out;5. worked.
Those of ordinary skill in the art is it will be appreciated that embodiment described here is to aid in reader's reason
Solve the implementation of the present invention, it should be understood that protection scope of the present invention is not limited to such the oldest
State and embodiment.Those of ordinary skill in the art can make according to these technology disclosed by the invention enlightenment
Various other various concrete deformation and combinations without departing from essence of the present invention, these deformation and combination are still at this
In the protection domain of invention.
Claims (8)
1. using procotol automatically to detect a method for video monitoring main frame in LAN, its feature exists
In, comprise the following steps:
S1: load all worker thread class examples with network discovery function supported, use unified
Interface realizes;
S2: start all of worker thread class example with network discovery function, each worker thread successively
Class example sends network detection bag automatically;
S3: wait video monitoring main frame feedback, and go out video monitoring host information according to the data parsing of feedback,
Until all finishing receiving or time-out.
Method the most according to claim 1, it is characterised in that the network detection bag described in S2 is without association
The IO bag of view or udp protocol bag.
Method the most according to claim 1 and 2, it is characterised in that what described S2 sent is without association
During the IO bag discussed, concrete grammar is as follows:
S211: Mac address when receiving changes to send the Mac address of main frame;
S212: directly to LAN broadcast's IO bag.
Method the most according to claim 1 and 2, it is characterised in that described S2 sends is UDP
During protocol package, concrete grammar is as follows:
S221: the SDK bag using video monitoring main frame manufacturer to provide detects;
S222: send UDP message bag.
Method the most according to claim 1, it is characterised in that S2 is further comprising the steps of:
S231: preserve video monitoring main frame usual end slogan list, a corresponding class video monitoring of port numbers
Main frame;
S232: the IP address of all existence in traversal LAN;
S233: to each IP address scan main frame usual end slogan, if port has turned on, then it is assumed that this port
Corresponding video monitoring main frame exists.
Method the most according to claim 1, it is characterised in that S2 is further comprising the steps of:
S24. abstract package common framework and Network finding interface, each video monitoring Host Type realizes once
Network finding interface.
Method the most according to claim 6, it is characterised in that the concrete grammar of described S24 is as follows:
S241. a video monitoring Host Detection management class and a general operations thread class, Qi Zhongjian are built
Test tube reason class is singleton pattern;
S242. the video monitoring main frame of each kind is inherited from a general operations thread class, and joins
In the list of management class.
Method the most according to claim 1, it is characterised in that the video monitoring host information described in S3
Including Host Type, host IP address and host side slogan.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510204510.5A CN106162071A (en) | 2015-04-27 | 2015-04-27 | Procotol is used automatically to detect the method for video monitoring main frame in LAN |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510204510.5A CN106162071A (en) | 2015-04-27 | 2015-04-27 | Procotol is used automatically to detect the method for video monitoring main frame in LAN |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106162071A true CN106162071A (en) | 2016-11-23 |
Family
ID=57346478
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510204510.5A Pending CN106162071A (en) | 2015-04-27 | 2015-04-27 | Procotol is used automatically to detect the method for video monitoring main frame in LAN |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106162071A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112312075A (en) * | 2019-08-02 | 2021-02-02 | 广州弘度信息科技有限公司 | Operation and maintenance system and method for video monitoring network |
CN113765728A (en) * | 2020-06-04 | 2021-12-07 | 深信服科技股份有限公司 | Network detection method, device, equipment and storage medium |
CN114679296A (en) * | 2022-02-09 | 2022-06-28 | 浙江远望信息股份有限公司 | Method for discovering multi-network card equipment based on specific video protocol |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08223169A (en) * | 1995-02-13 | 1996-08-30 | Nec Miyagi Ltd | Method for automatically setting tcp/ip host address and device therefor |
US20040148388A1 (en) * | 2003-01-24 | 2004-07-29 | Wen-Tzu Chung | Protocol at layer two for discovering and configuring network devices |
CN101729507A (en) * | 2008-10-14 | 2010-06-09 | 中兴通讯股份有限公司 | Method and device for discovering and recognizing network devices |
CN101753354A (en) * | 2008-12-22 | 2010-06-23 | 北京中星微电子有限公司 | Method for realizing the automatic configuration of network camera and monitoring system |
CN101778264A (en) * | 2010-02-11 | 2010-07-14 | 北京众和汇智科技有限公司 | Video monitoring method and video monitoring system |
CN101924754A (en) * | 2010-07-15 | 2010-12-22 | 国家计算机网络与信息安全管理中心 | Method and device for actively finding malicious code control end |
CN102647302A (en) * | 2012-04-28 | 2012-08-22 | 浪潮电子信息产业股份有限公司 | Monitoring and managing method aiming at cluster node network and ports |
CN104410530A (en) * | 2014-12-12 | 2015-03-11 | 杭州奥博瑞光通信有限公司 | Method of finding and utilizing MAC address to manage industrial switches |
-
2015
- 2015-04-27 CN CN201510204510.5A patent/CN106162071A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08223169A (en) * | 1995-02-13 | 1996-08-30 | Nec Miyagi Ltd | Method for automatically setting tcp/ip host address and device therefor |
US20040148388A1 (en) * | 2003-01-24 | 2004-07-29 | Wen-Tzu Chung | Protocol at layer two for discovering and configuring network devices |
CN101729507A (en) * | 2008-10-14 | 2010-06-09 | 中兴通讯股份有限公司 | Method and device for discovering and recognizing network devices |
CN101753354A (en) * | 2008-12-22 | 2010-06-23 | 北京中星微电子有限公司 | Method for realizing the automatic configuration of network camera and monitoring system |
CN101778264A (en) * | 2010-02-11 | 2010-07-14 | 北京众和汇智科技有限公司 | Video monitoring method and video monitoring system |
CN101924754A (en) * | 2010-07-15 | 2010-12-22 | 国家计算机网络与信息安全管理中心 | Method and device for actively finding malicious code control end |
CN102647302A (en) * | 2012-04-28 | 2012-08-22 | 浪潮电子信息产业股份有限公司 | Monitoring and managing method aiming at cluster node network and ports |
CN104410530A (en) * | 2014-12-12 | 2015-03-11 | 杭州奥博瑞光通信有限公司 | Method of finding and utilizing MAC address to manage industrial switches |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112312075A (en) * | 2019-08-02 | 2021-02-02 | 广州弘度信息科技有限公司 | Operation and maintenance system and method for video monitoring network |
CN113765728A (en) * | 2020-06-04 | 2021-12-07 | 深信服科技股份有限公司 | Network detection method, device, equipment and storage medium |
CN114679296A (en) * | 2022-02-09 | 2022-06-28 | 浙江远望信息股份有限公司 | Method for discovering multi-network card equipment based on specific video protocol |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10762345B2 (en) | Method and device for acquiring text data from trademark image, computer device and storage medium | |
CN106162071A (en) | Procotol is used automatically to detect the method for video monitoring main frame in LAN | |
WO2017084600A1 (en) | Internet of things system used for intelligent gas meter and information transmission method for internet of things system | |
CN101902617B (en) | Device and method for realizing video structural description by using DSP and FPGA | |
CN105930835B (en) | Enhanced image identifying system and method | |
CN106445426B (en) | Text data acquisition and print control program and system based on printing driving | |
WO2016045608A1 (en) | Processing a flow entry in vxlan | |
CN101651561B (en) | Network topology analytical method and system based on rule engine | |
US20180232889A1 (en) | Generating and reviewing motion metadata | |
CN101309274B (en) | Mixed structure invasion detection system rule base establishing method | |
CN105282128B (en) | A kind of two-way call method and system based on long connection | |
CN104809384A (en) | Method and system for quickly starting camera based on eyeprint identification as well as mobile terminal | |
Rao et al. | Implementation of real time image processing system with FPGA and DSP | |
CN103472065A (en) | Steel plate surface image acquisition and data transmission method | |
CN101719847A (en) | High-performance monitoring method for DNS traffic | |
CN103731641A (en) | Video streaming data distribution method and device for monitoring device | |
CN113691460A (en) | Data transmission method, device and equipment based on load balancing and storage medium | |
CN107194394A (en) | Remotely access monitoring method and relevant apparatus | |
CN105939328A (en) | Method and device for updating network attack feature library | |
US20130050522A1 (en) | Video image providing apparatus, video image utilizing apparatus, video image providing system, video image providing method and recording medium | |
CN105553792A (en) | Home gateway access device type identifying system and method | |
CN105338315B (en) | Storehouse security video monitoring system based on intelligent mobile terminal | |
CN105024989A (en) | Malicious URL heuristic detection method and system based on abnormal port | |
CN105337797A (en) | Data capturing method of network protocol of complex electronic information system | |
CN114978808B (en) | Data forwarding method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: No. 183 Songshan Road, Neijiang, Sichuan, Sichuan Applicant after: SICHUAN XLY INFORMATION SAFETY TECHNOLOGY CO., LTD. Address before: No. 183 Songshan Road, Neijiang, Sichuan, Sichuan Applicant before: Sichuan SalvationData Information Safety Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161123 |
|
WD01 | Invention patent application deemed withdrawn after publication |