CN103780900B - A kind of ONVIF simulating test device and method - Google Patents

A kind of ONVIF simulating test device and method Download PDF

Info

Publication number
CN103780900B
CN103780900B CN201410019202.0A CN201410019202A CN103780900B CN 103780900 B CN103780900 B CN 103780900B CN 201410019202 A CN201410019202 A CN 201410019202A CN 103780900 B CN103780900 B CN 103780900B
Authority
CN
China
Prior art keywords
test
message
onvif
camera apparatus
equipment
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
CN201410019202.0A
Other languages
Chinese (zh)
Other versions
CN103780900A (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.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Sichuan Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Sichuan Electric Power 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 State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Sichuan Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201410019202.0A priority Critical patent/CN103780900B/en
Publication of CN103780900A publication Critical patent/CN103780900A/en
Application granted granted Critical
Publication of CN103780900B publication Critical patent/CN103780900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of ONVIF simulating test device and method, described device comprises: equipment search module, and described equipment search module for searching for camera apparatus online in the same network segment, and obtains the relevant information of described camera apparatus; Analog detection module, described analog detection module is based on described relevant information, carry out ONVIF simulation test, wherein, described ONVIF simulation test comprises: protocal analysis test, camera function test, expanded function test, automatically test and negative testing, solve existing ONVIF test and there is the technical problem that method of testing is single, testing complex, testing cost are higher, testing efficiency is lower, achieve simple, efficient, low cost, the diversified technique effect completing ONVIF test.

Description

A kind of ONVIF simulating test device and method
Technical field
The present invention relates to video monitoring field tests, particularly relate to a kind of ONVIF simulating test device and method.
Background technology
Video monitoring is one of application technology focus of paying close attention to of people always, it with its intuitive and convenient, the information content is abundant and be widely used in many occasions.Video monitoring system for substation can in real time, image, reflect monitored object truly, the long-time real time information obtained in transformer station, greatly improves the grid company efficiency of management and automatization level.Along with the increase of power consumption demand, the quantity cumulative year after year of transformer station; The simultaneously foundation of national grid " three collection five are large " system, proposes new requirement to the unattended operation of transformer station and centralized monitor, proposes new demand to head end video watch-dog.Therefore between front-end camera and network hard disk video recorder, the importance and necessity of communication protocol standardization test highlights day by day.
At present, main dependence ONVIF official testing tool realizes the test to video camera, does not have the test macro to network hard disk video recorder of set of system.Onsite acceptance adopts the video camera of entity and network hard disk video recorder to carry out ONVIF protocol test, and the camera type of entity is various, and system configuration is complicated, and cost is higher, and complicated operation, cause the efficiency of test lower.
Present inventor, in the process realizing invention technical scheme in the embodiment of the present application, finds that above-mentioned technology at least exists following technical problem:
In the prior art, because existing ONVIF test adopts the video camera of entity and network hard disk video recorder to carry out ONVIF protocol test, and the camera type of entity is various, system configuration is complicated, cost is higher, and complicated operation, and existing ONVIF test only has the test platform to video camera, and lack " OSD captions ", " block alarm ", the test of " three-dimensional focuses " dependence test item, not from the test platform of service end platform to network hard disk video recorder, so existing ONVIF test to there is method of testing single, testing complex, testing cost is higher, the technical problem that testing efficiency is lower.
Summary of the invention
The invention provides a kind of ONVIF simulating test device and method, solve existing ONVIF test and there is the technical problem that method of testing is single, testing complex, testing cost are higher, testing efficiency is lower, achieve simple, efficient, low cost, the diversified technique effect completing ONVIF test.
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of ONVIF simulating test device, and described device comprises:
Equipment search module, described equipment search module for searching for camera apparatus online in the same network segment, and obtains the relevant information of described camera apparatus;
Analog detection module, described analog detection module, based on described relevant information, carries out ONVIF simulation test, and wherein, described ONVIF simulation test comprises: protocal analysis test, camera function test, expanded function test, automatically test and negative testing.
Wherein, described analog detection module specifically comprises:
ONVIF protocal analysis test cell, described ONVIF protocal analysis test cell is used for verifying the interactive information of each ONVIF protocal analysis test item;
Camera function test cell, described camera function test cell is used for camera function test;
Expanded function test cell, described expanded function test cell is used for realizing the functional test of ONVIF protocol extension item;
Automatic test cell, described automatic test cell, for the basis at described ONVIF protocol test unit, realizes the automatic distribution tests of equipment under test being carried out to agreement;
Negative testing unit, described negative testing unit realizes carrying out protocol test to equipment under test from the negative, realizes the integrality to test.
Wherein, described equipment search module is specially the module that the mode utilizing multicast bill to broadcast back searches for camera apparatus online in the same network segment, and described relevant information is specially the IP address of described camera apparatus and identifies the identification code of described camera apparatus and describe the Scopes parameter of described camera apparatus details.
Wherein, described equipment search module specifically comprises:
Message generation unit, generates the Probe message packet meeting soap message format;
Multicast UDP message sending unit, sends multicast UDP message Probe message by generation Probe message in the multicast section of multicast UDP transmitting element multicast port, sends Probe message after multicast section receives message to IPC equipment in the whole network section adding multicast section;
Clean culture UDP message reception units, sends ProbeMatch message with equipment basic service entrance, UUID information to NVR with clean culture UDP form after described clean culture UDP message reception units is used for ONVIF service end simulator being received Probe;
XML message resolution unit, described XML message resolution unit is used for ONVIF tester being received ProbeMatch message and carries out the key element in extraction ProbeMatch and verify;
Information display unit, described information display unit is for being presented at software interface by the key message extracted.
Wherein, described ONVIF protocal analysis test cell is specially based on ONVIF standard regulation, complete the normalization of the SOAP encapsulation format of protocol interface test, unit that the RTP/RTSP protocol specification of Media Stream interface is tested.
Wherein, described camera function test cell specifically comprises:
Equipment control subelement, the basic setup function of described equipment control subelement test video camera, as: during equipment school, restart, obtain facility information, acquisition capability collection;
The Cloud Terrace operator unit, described The Cloud Terrace operator unit testing network ball machine head correlation function, as: the configuration of cloud platform rotation, preset point, three-dimensional focus;
Media management subelement, described media management subelement test video camera plays the ability of real-time video and the configuration feature of video relevant parameter;
Video analysis subelement, described video analysis subelement test configurations mobile detection and the relevant parameter such as region, sensitivity blocking detecting;
Warning information subelement, the alarm function of described warning information subelement test video camera, as: test mobile detection and block the alarm configuration of detecting, alarm subscription, alarm training in rotation report.
Wherein, described expanded function test cell specifically comprises:
Three-dimensional focuses expansion subelement, and described three-dimensional focuses expansion subelement for locating rapidly the specific region in monitored picture;
OSD configuration expansion subelement, described OSD configuration expansion subelement, for arranging monitoring period, place and other annotations on monitoring screen, is convenient to query monitor information, localized accident warning place;
Block alarm expansion subelement, described in block alarm expansion subelement and whether blocked by foreign matter for detecting camera lens, prevent foreign matter being blown lid due to weather reason and cause monitoring to occur blind area to camera lens.
On the other hand, the embodiment of the present application additionally provides a kind of ONVIF analog detection method, and described method comprises:
The equipment search module of utilization searches for camera apparatus online in the same network segment, and obtains the relevant information of described camera apparatus;
Based on described relevant information, carry out ONVIF simulation test, wherein, described ONVIF simulation test comprises: protocal analysis test, camera function test, expanded function test, automatically test and negative testing.
Further, described protocal analysis test is specially and verifies the interactive information of each ONVIF protocal analysis test item;
Described camera function test divides specifically by camera function, realizes the complete test to camera function and agreement;
Described expanded function test is specially based on ONVIF standard agreement form and WebServices technology, and realization three-dimensional focuses, OSD configures, block agreement, the functional test of detecting extension;
Described automatic test is specially the automatic step test utilizing signal sequence control method to realize carrying out equipment under test agreement;
Described negative testing is specially sums up front-end camera and the common typical fault case row of network hard disk video recorder, oppositely revises, regenerates test request message (TRM), test testing equipment from message header and message body.
Further, describedly utilize equipment search module to search for camera apparatus online in the same network segment to be specially: the mode utilizing multicast bill to broadcast back searches for camera apparatus online in the same network segment; Described relevant information is specially the IP address of described camera apparatus and identifies the identification code of described camera apparatus and describe the Scopes parameter of described camera apparatus details.
Further, the described equipment search module that utilizes searches for camera apparatus online in the same network segment, and the relevant information obtaining described camera apparatus specifically comprises:
Generate the Probe message packet meeting soap message format;
Generation Probe message is sent multicast UDP message Probe message through multicast UDP transmitting element in the multicast section of multicast port, after multicast section receives message, sends Probe message to IPC equipment in the whole network section adding multicast section;
ONVIF service end simulator receives after Probe and sends ProbeMatch message with equipment basic service entrance, UUID information to NVR with clean culture UDP form;
After ONVIF tester receives ProbeMatch message, extract the key element in ProbeMatch by XML message resolution unit and verify;
By information display unit, the key message extracted is presented on software interface.
Further, the test of described ONVIF protocal analysis is specially: test the normalization of the SOAP encapsulation format of protocol interface, the RTP/RTSP protocol specification of Media Stream interface tests;
Further, described by dividing camera function, realize specifically comprising the complete test of camera function and agreement:
Equipment control subelement is utilized to test the basic setup function of video camera, as: during equipment school, restart, obtain facility information, acquisition capability collection;
Utilize The Cloud Terrace operator unit testing network ball machine head correlation function, as: the configuration of cloud platform rotation, preset point, three-dimensional focus;
Utilize media management subelement to test video camera and play the ability of real-time video and the configuration feature of video relevant parameter;
Utilize video analysis subelement test configurations mobile detection and the relevant parameter such as region, sensitivity blocking detecting;
Utilize warning information subelement to test the alarm function of video camera, as: test mobile detection and block the alarm configuration of detecting, alarm subscription, alarm training in rotation report.
Further, described based on ONVIF standard agreement form and WebServices technology, realize three-dimensional focusing, OSD configuration, the agreement of blocking detecting extension, functional test specifically comprise:
The three-dimensional expansion subelement that focuses is utilized to complete and locate rapidly the specific region in monitored picture;
Utilize OSD configuration expansion subelement to complete and monitoring period, place and other annotations are set on monitoring screen, be convenient to query monitor information, localized accident warning place;
Whether utilization is blocked alarm expansion subelement and is completed and detect camera lens and blocked by foreign matter, prevents foreign matter being blown lid due to weather reason and causes monitoring to occur blind area to camera lens.
The one or more technical schemes provided in the embodiment of the present application, at least have following technique effect or advantage:
First utilize equipment search module to search for camera apparatus online in the same network segment owing to have employed, and obtain the relevant information of described camera apparatus, then based on described relevant information, carry out the technological means of ONVIF simulation test, namely first utilize client and service end realize equipment search and equipment reach the standard grade, obtain IP address of equipment and PORT COM, then acquisition capability collection request message is sent to equipment under test, and the address, service entrance obtained belonging to tested item, then first send to tested video camera the request message obtaining test item mandatory parameter, then key message in message is extracted by XML message resolution unit, described key message is utilized to test, last logging test results, preserve test associated documents, generate test report, namely analogue system is utilized to instead of original physical network DVR and front-end camera to carry out ONVIF agreement and functional test, so, efficiently solving existing ONVIF test, to there is method of testing single, testing complex, testing cost is higher, the technical problem that testing efficiency is lower, and then achieve simple, efficiently, low cost, the diversified technique effect completing ONVIF test.
Accompanying drawing explanation
Fig. 1 is the structural representation of ONVIF simulating test device in the embodiment of the present application one;
Fig. 2 is the structural representation of simulation testing module in the embodiment of the present application one;
Fig. 3 is the structural representation of equipment search module in the embodiment of the present application one;
Fig. 4 is the structural representation of camera function test cell in the embodiment of the present application one;
Fig. 5 is the structural representation of expanded function test cell in the embodiment of the present application one;
Fig. 6 is the flow chart of ONVIF analog detection method in the embodiment of the present application one;
Fig. 7 is preset point operational testing flow chart in the embodiment of the present application one.
Embodiment
The invention provides a kind of ONVIF simulating test device and method, solve existing ONVIF test and there is the technical problem that method of testing is single, testing complex, testing cost are higher, testing efficiency is lower, achieve simple, efficient, low cost, the diversified technique effect completing ONVIF test.
Technical scheme during the application implements is for solving the problems of the technologies described above.General thought is as follows:
First utilize equipment search module to search for camera apparatus online in the same network segment, and obtain the relevant information of described camera apparatus, then based on described relevant information, carry out the technological means of ONVIF simulation test, namely first utilize client and service end realize equipment search and equipment reach the standard grade, obtain IP address of equipment and PORT COM, then acquisition capability collection request message is sent to equipment under test, and the address, service entrance obtained belonging to tested item, then first send to tested video camera the request message obtaining test item mandatory parameter, then key message in message is extracted by XML message resolution unit, described key message is utilized to test, last logging test results, preserve test associated documents, generate test report, namely analogue system is utilized to instead of original physical network DVR and front-end camera to carry out ONVIF agreement and functional test, so, efficiently solving existing ONVIF test, to there is method of testing single, testing complex, testing cost is higher, the technical problem that testing efficiency is lower, and then achieve simple, efficiently, low cost, the diversified technique effect completing ONVIF test.
In order to better understand technique scheme, below in conjunction with Figure of description and concrete execution mode, technique scheme is described in detail.
Embodiment one:
In embodiment one, provide a kind of ONVIF simulating test device, please refer to Fig. 1-Fig. 5, described device comprises:
Equipment search module 101, described equipment search module 101 for searching for camera apparatus online in the same network segment, and obtains the relevant information of described camera apparatus;
Analog detection module 102, described analog detection module 102 is based on described relevant information, carry out ONVIF simulation test, wherein, described ONVIF simulation test comprises: protocal analysis test, camera function test, expanded function test, automatically test and negative testing.
Wherein, in the embodiment of the present application, described analog detection module 102 specifically comprises:
ONVIF protocal analysis test cell 1021, described ONVIF protocal analysis test cell 1021 is for verifying the interactive information of each ONVIF protocal analysis test item;
Camera function test cell 1022, described camera function test cell 1022 is tested for camera function;
Expanded function test cell 1023, described expanded function test cell 1023 is for realizing the functional test of ONVIF protocol extension item;
Automatic test cell 1024, described automatic test cell 1024, for the basis at described ONVIF protocol test unit 1021, realizes the automatic distribution tests of equipment under test being carried out to agreement;
Negative testing unit 1025, described negative testing unit 1025 realizes carrying out protocol test to equipment under test from the negative, realizes the integrality to test.
Wherein, in the embodiment of the present application, described protocal analysis test cell 1021 verifies the message header of the interactive information content integrity of each ONVIF protocol test item and each test item, message body.By the two-way interactive mechanism of question-response, namely ONVIF tester (client) first forward end IPC (service end) sends basic service entrance request message, after IPC receives request message, the response message with equipment of itself ability information is sent to ONVIF tester, once after ONVIF tester receives response message, verified by the message body of Message Processing submodule to response message, extract the necessary element of relevant test further in message body, described protocal analysis test cell 1021 possesses ONVIF service end ability, by analog service end equipment, realize the protocol conformance to ONVIF client device and Interoperability Testing.
Wherein, in the embodiment of the present application, described equipment search module 101 is specially the module that the mode utilizing multicast bill to broadcast back searches for camera apparatus online in the same network segment, and described relevant information is specially the IP address of described camera apparatus and identifies the identification code of described camera apparatus and describe the Scopes parameter of described camera apparatus details.
Wherein, in actual applications, described equipment search module 101, specifically for searching for online camera apparatus in the same network segment, is the inlet module to testing equipment.Described equipment search module is a kind of information interaction between NVR and front end IPC.
Wherein, in the embodiment of the present application, described equipment search module 101 specifically comprises:
Message generation unit 1011, generates the Probe message packet meeting soap message format;
Multicast UDP message sending unit 1012, generation Probe message is sent multicast UDP message Probe message in the multicast section of multicast UDP transmitting element 1012 multicast port, after multicast section receives message, sends Probe message to IPC equipment in the whole network section adding multicast section;
Clean culture UDP message reception units 1013, described clean culture UDP message reception units 1013 sends ProbeMatch message with equipment basic service entrance, UUID information to NVR with clean culture UDP form for being received by ONVIF service end simulator after Probe;
XML message resolution unit 1014, described XML message resolution unit 1014 is carried out the key element in extraction ProbeMatch for ONVIF tester being received ProbeMatch message and verifies;
Information display unit 1015, described information display unit 1015 is for being presented at software interface by the key message extracted.
Wherein, in the embodiment of the present application, described ONVIF protocal analysis test cell 1021 is specially based on ONVIF standard regulation, complete the normalization of the SOAP encapsulation format of protocol interface test, unit that the RTP/RTSP protocol specification of Media Stream interface is tested.
In actual applications, described ONVIF protocal analysis test cell 1021 comprises ONVIF service end simulation test subelement and client simulation test subelement.The protocol test content that ONVIF tester service end completes comprise the normalization of the SOAP encapsulation format of protocol interface is tested, the test of the RTP/RTSP protocol specification of Media Stream interface.Message header, the message body of the main interactive information content integrity to each ONVIF protocol test item of protocol specification test and each test item verify.
Wherein, in the embodiment of the present application, described camera function test cell 1022 specifically comprises:
Equipment control subelement 10221, the basic setup function of video camera tested by described equipment control subelement 10221, as: during equipment school, restart, obtain facility information, acquisition capability collection;
The Cloud Terrace operator unit 10222, described The Cloud Terrace operator unit 10222 test network ball machine head correlation function, as: the configuration of cloud platform rotation, preset point, three-dimensional focus;
Media management subelement 10223, described media management subelement 10223 is tested video camera and is play the ability of real-time video and the configuration feature of video relevant parameter;
Video analysis subelement 10224, described video analysis subelement 10224 test configurations mobile detection and the relevant parameter such as region, sensitivity blocking detecting;
Warning information subelement 10225, the alarm function of video camera tested by described warning information subelement 10225, as: test mobile detection and block the alarm configuration of detecting, alarm subscription, alarm training in rotation report.
Wherein, in the embodiment of the present application, described automatic test cell test item is divided into equipment control, The Cloud Terrace, media, video analysis, the large test item of alarm five.Described automatic test cell test has continuity by signal sequence rate-determining steps.The described automatic step utilizing signal sequence control method to realize carrying out equipment under test agreement depending on automatic test cell 1022 is tested, in test process, classify according to test sport, each class testing is relatively independent, but has continuity between the test item in such.The test item obtaining configuration parameter must carry out before the test item of configuration parameter.
Wherein, in the embodiment of the present application, described negative testing unit 1025 carries out protocol test to equipment under test from the negative, realizes the integrality to video camera protocol test and stringency.Described negative testing unit 1025 sums up front-end camera and the common typical fault case row of network hard disk video recorder, oppositely revises, regenerates test request message (TRM), test testing equipment from message header and message body.
Wherein, in actual applications, first search for and add a tested IP C equipment, and determining test item type.Then, the address, service entrance of configuration testing item type on test interface, after configuring service entrance, add test packet template, the message key element or message body form that need test are modified, generating messages negative testing sample message (summed up by substation operation frequent fault and form).Then, send a request message to IPC, after receiving message, message body is verified, and check message error type, judge whether message error type meets the actual conditions of message modification.Negative testing is oppositely revised (as message header key message disappearance from message header and message body, message body XML format mistake), and regenerate test request message (TRM), equipment under test is tested, and shown test results by test record, if test item passes through, then show that equipment is not strict to the process of agreement, if test is not passed through, whether the error reason in then misjudgment message meets the actual conditions of amendment message, if met, then show that equipment is strict to agreement verification, test is passed through.
Wherein, in the embodiment of the present application, described expanded function test cell 1023 specifically comprises:
Three-dimensional focuses expansion subelement 10231, and described three-dimensional focuses expansion subelement 10231 for locating rapidly the specific region in monitored picture;
OSD configuration expansion subelement 10232, described OSD configuration expansion subelement 10232, for arranging monitoring period, place and other annotations on monitoring screen, is convenient to query monitor information, localized accident warning place;
Block alarm expansion subelement 10233, described in block alarm expansion subelement 10233 and whether blocked by foreign matter for detecting camera lens, prevent foreign matter being blown lid due to weather reason and cause monitoring to occur blind area to camera lens.
Wherein, in the embodiment of the present application, the device 10 in the application first utilizes client and service end to realize equipment search and equipment is reached the standard grade, and obtains IP address of equipment and PORT COM.Then, device 10 sends acquisition capability collection request message to equipment under test, and obtains the address, service entrance belonging to tested item.Then, device 10 first sends the request message obtaining test item mandatory parameter to tested IP C, then key message in message is extracted by XML message resolution unit, judge that whether response message is correct, if message error, then prompting message type of error, otherwise from response message, obtain key element, generate next step test packet and send a request message to equipment under test, when a response message is received, judge that message is corrected errors, if message error, then prompting message type of error, otherwise, resolve message, judge whether other test items proceeding test automatically.Then, then logging test results, preservation are tested associated documents, are generated test report.
Wherein, in actual applications, when utilizing the device in the embodiment of the present application to test, first ONVIF simulating test device is searched for and is added a tested camera apparatus, and determines test item type.Then, the address, service entrance of configuration testing item type on test interface, after configuring service entrance, ONVIF simulating test device adds test packet template, the message key element or message body form that need test are modified, generating messages negative testing sample message.Then, ONVIF simulating test device sends a request message to video camera, after receiving message, verifies message body, and checks message error type, judges whether message error type meets the actual conditions of message modification.
Please refer to Fig. 7, below for preset point operational testing, utilize the signal sequence of the device in the embodiment of the present application to control test process as follows:
A0. obtain equipment under test in the same network segment by equipment search module 101, return A01 and obtain IP address of equipment and PORT COM.
A1. send acquisition capability collection request message to equipment under test, return A11 and obtain address, service entrance belonging to equipment under test, as got prefabricated bit manipulation capabilities message.
A2. mandatory parameter request is obtained.
A3. extract media general introduction, A31, by obtaining media general introduction, extracts code stream numbering, the response of checking receipt message.
A4., presetting bit request is set, first the request message generating preset point action-item is needed, when generating message, the authentication mode of username and password (WS-UserName) need be adopted by decodement, 20 random strings and 20 bit time sequences, three parameters by obtaining the dark text form of password after Base64 algorithm and SHA-1 algorithm combining encryption, as user authentication parameter.After generating request message, send a request message to tested IP C, wait-receiving mode response message.When A41 verifies response message, if message is the soap message of standard, then recording messages title, type of message is positioned simultaneously, then message header split, extract, whether inspection message header field is complete, then to extraction message body, the name space describing PTZ information and other information on services should be comprised in message body, if obtain preset point test, then should comprise GetPresetsResponse node, Preset child node (carrying token value) and preset point relevant parameter in message body.
A5. have access to the request of prefabricated position, send a request message to tested IP C, wait-receiving mode response message, A51 returns in checking message body and comprises the empty node of GotoPresetResponse.
A6. generate test report by A41 and A51 message verification message, test terminates.
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
First utilize equipment search module to search for camera apparatus online in the same network segment owing to have employed, and obtain the relevant information of described camera apparatus, then based on described relevant information, carry out the technological means of ONVIF simulation test, namely first utilize client and service end realize equipment search and equipment reach the standard grade, obtain IP address of equipment and PORT COM, then acquisition capability collection request message is sent to equipment under test, and the address, service entrance obtained belonging to tested item, then first send to tested video camera the request message obtaining test item mandatory parameter, then key message in message is extracted by XML message resolution unit, described key message is utilized to test, last logging test results, preserve test associated documents, generate test report, namely analogue system is utilized to instead of original physical network DVR and front-end camera to carry out ONVIF agreement and functional test, so, efficiently solving existing ONVIF test, to there is method of testing single, testing complex, testing cost is higher, the technical problem that testing efficiency is lower, and then achieve simple, efficiently, low cost, the diversified technique effect completing ONVIF test.
On the other hand, the embodiment of the present application additionally provides a kind of ONVIF analog detection method, please refer to Fig. 6, and described method comprises:
S10, the equipment search module of utilization searches for camera apparatus online in the same network segment, and obtains the relevant information of described camera apparatus;
S20, based on described relevant information, carries out ONVIF simulation test, and wherein, described ONVIF simulation test comprises: protocal analysis test, camera function test, expanded function test, automatically test and negative testing.
Wherein, in the embodiment of the present application, described protocal analysis test is specially and verifies the interactive information of each ONVIF protocal analysis test item;
Described camera function test divides specifically by camera function, realizes the complete test to camera function and agreement;
Described expanded function test is specially based on ONVIF standard agreement form and WebServices technology, and realization three-dimensional focuses, OSD configures, block agreement, the functional test of detecting extension;
Described automatic test is specially the automatic step test utilizing signal sequence control method to realize carrying out equipment under test agreement;
Described negative testing is specially sums up front-end camera and the common typical fault case row of network hard disk video recorder, oppositely revises, regenerates test request message (TRM), test testing equipment from message header and message body.
Wherein, in the embodiment of the present application, describedly utilize equipment search module to search for camera apparatus online in the same network segment to be specially: the mode utilizing multicast bill to broadcast back searches for camera apparatus online in the same network segment; Described relevant information is specially the IP address of described camera apparatus and identifies the identification code of described camera apparatus and describe the Scopes parameter of described camera apparatus details.
Wherein, in the embodiment of the present application, the described equipment search module that utilizes searches for camera apparatus online in the same network segment, and the relevant information obtaining described camera apparatus specifically comprises:
Generate the Probe message packet meeting soap message format;
Generation Probe message is sent multicast UDP message Probe message through multicast UDP transmitting element in the multicast section of multicast port, after multicast section receives message, sends Probe message to IPC equipment in the whole network section adding multicast section;
ONVIF service end simulator receives after Probe and sends ProbeMatch message with equipment basic service entrance, UUID information to NVR with clean culture UDP form;
After ONVIF tester receives ProbeMatch message, extract the key element in ProbeMatch by XML message resolution unit and verify.
By information display unit, the key message extracted is presented on software interface.
Wherein, in the embodiment of the present application, the test of described ONVIF protocal analysis is specially: test the normalization of the SOAP encapsulation format of protocol interface, the RTP/RTSP protocol specification of Media Stream interface tests.
Wherein, in the embodiment of the present application, described by dividing camera function, realize specifically comprising the complete test of camera function and agreement:
Equipment control subelement is utilized to test the basic setup function of video camera, as: during equipment school, restart, obtain facility information, acquisition capability collection;
Utilize The Cloud Terrace operator unit testing network ball machine head correlation function, as: the configuration of cloud platform rotation, preset point, three-dimensional focus;
Utilize media management subelement to test video camera and play the ability of real-time video and the configuration feature of video relevant parameter;
Utilize video analysis subelement test configurations mobile detection and the relevant parameter such as region, sensitivity blocking detecting;
Utilize warning information subelement to test the alarm function of video camera, as: test mobile detection and block the alarm configuration of detecting, alarm subscription, alarm training in rotation report.
Wherein, in the embodiment of the present application, described based on ONVIF standard agreement form and WebServices technology, realize three-dimensional focusing, OSD configuration, the agreement of blocking detecting extension, functional test specifically comprise:
The three-dimensional expansion subelement that focuses is utilized to complete and locate rapidly the specific region in monitored picture;
Utilize OSD configuration expansion subelement to complete and monitoring period, place and other annotations are set on monitoring screen, be convenient to query monitor information, localized accident warning place;
Whether utilization is blocked alarm expansion subelement and is completed and detect camera lens and blocked by foreign matter, prevents foreign matter being blown lid due to weather reason and causes monitoring to occur blind area to camera lens.
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
First utilize equipment search module to search for camera apparatus online in the same network segment owing to have employed, and obtain the relevant information of described camera apparatus, then based on described relevant information, carry out the technological means of ONVIF simulation test, namely first utilize client and service end realize equipment search and equipment reach the standard grade, obtain IP address of equipment and PORT COM, then acquisition capability collection request message is sent to equipment under test, and the address, service entrance obtained belonging to tested item, then first send to tested video camera the request message obtaining test item mandatory parameter, then key message in message is extracted by XML message resolution unit, described key message is utilized to test, last logging test results, preserve test associated documents, generate test report, namely analogue system is utilized to instead of original physical network DVR and front-end camera to carry out ONVIF agreement and functional test, so, efficiently solving existing ONVIF test, to there is method of testing single, testing complex, testing cost is higher, the technical problem that testing efficiency is lower, and then achieve simple, efficiently, low cost, the diversified technique effect completing ONVIF test.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (8)

1. an ONVIF simulating test device, is characterized in that, described device comprises:
Equipment search module, described equipment search module for searching for camera apparatus online in the same network segment, and obtains the relevant information of described camera apparatus;
Analog detection module, described analog detection module is based on described relevant information, carry out ONVIF simulation test, wherein, described ONVIF simulation test comprises: protocal analysis test, camera function test, expanded function test, automatically test and negative testing, wherein, described analog detection module specifically comprises: ONVIF protocal analysis test cell, and described ONVIF protocal analysis test cell is used for verifying the interactive information of each ONVIF protocal analysis test item; Camera function test cell, described camera function test cell is used for camera function test; Expanded function test cell, described expanded function test cell is used for based on ONVIF standard agreement form and WebServices technology, and realization three-dimensional focuses, OSD configures, block agreement, the functional test of detecting extension; Automatic test cell, described automatic test cell, for the basis at described ONVIF protocal analysis test cell, realizes the automatic distribution tests of equipment under test being carried out to agreement; Negative testing unit, described negative testing unit realizes carrying out protocol test to equipment under test from the negative, realizes the integrality to test.
2. device according to claim 1, it is characterized in that, described equipment search module is specially the module that the mode utilizing multicast bill to broadcast back searches for camera apparatus online in the same network segment, and described relevant information is specially the IP address of described camera apparatus and identifies the identification code of described camera apparatus and describe the Scopes parameter of described camera apparatus details.
3. device according to claim 2, is characterized in that, described equipment search module specifically comprises:
Message generation unit, generates the Probe message packet meeting soap message format;
Multicast UDP message sending unit, generation Probe message is sent multicast UDP message Probe message in the multicast section of described multicast UDP transmitting element multicast port, after multicast section receives message, sends Probe message to IPC equipment in the whole network section adding multicast section;
Clean culture UDP message reception units, described clean culture UDP message reception units receives after Probe and sends ProbeMatch message with equipment basic service entrance, UUID information to NVR with clean culture UDP form for receiving ONVIF service end simulator;
XML message resolution unit, described XML message resolution unit is used for ONVIF tester being received ProbeMatch message and carries out the key element in extraction ProbeMatch and verify;
Information display unit, described information display unit is for being presented at software interface by the key message extracted.
4. device according to claim 1, it is characterized in that, described ONVIF protocal analysis test cell is specially based on ONVIF standard regulation, complete the normalization of the SOAP encapsulation format of protocol interface test, unit that the RTP/RTSP protocol specification of Media Stream interface is tested.
5. an ONVIF analog detection method, is characterized in that, described method comprises:
The equipment search module of utilization searches for camera apparatus online in the same network segment, and obtains the relevant information of described camera apparatus;
Based on described relevant information, carry out ONVIF simulation test, wherein, described ONVIF simulation test comprises: protocal analysis test, camera function test, expanded function test, automatically test and negative testing, wherein, described protocal analysis test is specially and verifies the interactive information of each ONVIF protocal analysis test item;
Described camera function test divides specifically by camera function, realizes the complete test to camera function and agreement;
Described expanded function test is specially based on ONVIF standard agreement form and WebServices technology, and realization three-dimensional focuses, OSD configures, block agreement, the functional test of detecting extension;
Described automatic test is specially the automatic step test utilizing signal sequence control method to realize carrying out equipment under test agreement;
Described negative testing is specially sums up front-end camera and the common typical fault case row of network hard disk video recorder, oppositely revises, regenerates test request message (TRM), test testing equipment from message header and message body.
6. method according to claim 5, is characterized in that, describedly utilizes equipment search module to search for camera apparatus online in the same network segment to be specially: the mode utilizing multicast bill to broadcast back searches for camera apparatus online in the same network segment; Described relevant information is specially the IP address of described camera apparatus and identifies the identification code of described camera apparatus and describe the Scopes parameter of described camera apparatus details.
7. method according to claim 6, it is characterized in that, the described equipment search module that utilizes searches for camera apparatus online in the same network segment, and the relevant information obtaining described camera apparatus specifically comprises:
Generate the Probe message packet meeting soap message format;
Generation Probe message is sent multicast UDP message Probe message through multicast UDP transmitting element in the multicast section of multicast port, after multicast section receives message, sends Probe message to IPC equipment in the whole network section adding multicast section;
ONVIF service end simulator receives after Probe and sends ProbeMatch message with equipment basic service entrance, UUID information to NVR with clean culture UDP form;
After ONVIF tester receives ProbeMatch message, extract the key element in ProbeMatch by XML message resolution unit and verify;
By information display unit, the key message extracted is presented on software interface.
8. method according to claim 5, is characterized in that, described ONVIF protocal analysis test is specially: test the normalization of the SOAP encapsulation format of protocol interface, the RTP/RTSP protocol specification of Media Stream interface tests.
CN201410019202.0A 2014-01-16 2014-01-16 A kind of ONVIF simulating test device and method Active CN103780900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410019202.0A CN103780900B (en) 2014-01-16 2014-01-16 A kind of ONVIF simulating test device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410019202.0A CN103780900B (en) 2014-01-16 2014-01-16 A kind of ONVIF simulating test device and method

Publications (2)

Publication Number Publication Date
CN103780900A CN103780900A (en) 2014-05-07
CN103780900B true CN103780900B (en) 2016-02-17

Family

ID=50572672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410019202.0A Active CN103780900B (en) 2014-01-16 2014-01-16 A kind of ONVIF simulating test device and method

Country Status (1)

Country Link
CN (1) CN103780900B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361871A (en) * 2018-11-30 2019-02-19 四川九州电子科技股份有限公司 A method of IP Camera is modeled as USB camera

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG11201703705TA (en) * 2014-11-13 2017-08-30 Canon Kk Information processing apparatus, control method, and program
CN104581138B (en) * 2014-12-17 2017-06-16 广州动钛电子有限公司 A kind of web camera investigating method and device
CN105448058A (en) * 2015-12-14 2016-03-30 讯美电子科技有限公司 Method for simulating alarming of hard disk video recorder
CN105657368A (en) * 2016-01-06 2016-06-08 福建星网智慧科技股份有限公司 Method for rapidly switching IPC (Inter Process Communication) camera into IP (Internet Protocol) multimedia system IMS
CN106559271B (en) * 2016-12-02 2019-10-18 浙江宇视科技有限公司 A kind of resource access method and system
CN106657905A (en) * 2016-12-12 2017-05-10 深圳市中博睿存科技有限公司 Video capture method and device based on onvif standard
CN108965272A (en) * 2018-07-02 2018-12-07 山东华软金盾软件股份有限公司 A kind of method of detection network camera weak password
CN109218104B (en) * 2018-09-30 2021-12-07 天地伟业技术有限公司 Method and device for realizing QoS network optimization based on Onvif protocol
CN110113598A (en) * 2019-04-17 2019-08-09 深圳市天视通电子科技有限公司 A kind of Network Personal Video Recorder test method and system
CN110536132B (en) * 2019-08-30 2020-10-23 重庆紫光华山智安科技有限公司 IPC simulation method, IPC simulation software system and server
CN111031279A (en) * 2019-11-29 2020-04-17 武汉烽火众智数字技术有限责任公司 Monitoring platform-based simulation front-end equipment point location construction method and system
CN113115032A (en) * 2021-04-19 2021-07-13 广州欢网科技有限责任公司 Batch testing method and device for smart television equipment and electronic equipment
CN114022278B (en) * 2021-11-05 2024-04-02 光大科技有限公司 Analog transaction processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060446A (en) * 2007-05-25 2007-10-24 华为技术有限公司 Network protocol test system and method
CN101969233A (en) * 2010-10-29 2011-02-09 广东电网公司电力科学研究院 Testing method and device of power grid video and environment monitoring system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101348617B1 (en) * 2010-11-22 2014-01-08 한국전자통신연구원 Surveillance systemme using wireless network, master sensor node and server apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060446A (en) * 2007-05-25 2007-10-24 华为技术有限公司 Network protocol test system and method
CN101969233A (en) * 2010-10-29 2011-02-09 广东电网公司电力科学研究院 Testing method and device of power grid video and environment monitoring system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网络摄像机应用接口的研究与实现;马永昌;《中国优秀硕士学位论文全文数据库 信息科技辑,2013年第6期》;20130615;I136-1001 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361871A (en) * 2018-11-30 2019-02-19 四川九州电子科技股份有限公司 A method of IP Camera is modeled as USB camera
CN109361871B (en) * 2018-11-30 2020-07-24 四川九州电子科技股份有限公司 Method for simulating network camera as USB camera

Also Published As

Publication number Publication date
CN103780900A (en) 2014-05-07

Similar Documents

Publication Publication Date Title
CN103780900B (en) A kind of ONVIF simulating test device and method
CN101778307B (en) Device for testing functions of set top box
CN106327605B (en) A kind of method for inspecting
CN104866414A (en) Method, device and system for testing application program
CN109714221B (en) Method, device and system for determining network data packet
CN101472191A (en) Automatic test equipment and method for network TV set-top box
CN109413417B (en) System and method for detecting interactive television service quality
CN105356615A (en) Mobile polling control system for high-voltage overhead transmission lines based on QR (Quick Response) Code technology
CN109982037A (en) Intelligent patrol detection device
CN104935883A (en) Remote monitoring method and server
CN102467442A (en) Software testing method, system and equipment
CN108197634A (en) Automatic meter reading method, system, computer equipment and readable storage medium storing program for executing
CN112929679B (en) Method and device for detecting validity of live client and identifying plug-in behavior
CN102331487A (en) Device and method for automatically processing water quality monitoring data
CN110245077A (en) A kind of response method and equipment of program exception
CN113448834A (en) Buried point testing method and device, electronic equipment and storage medium
CN110825776B (en) Air quality detection report processing method and device, computing equipment and storage medium
CN102395042B (en) Method and system for debugging digital television system
CN106383759A (en) Method and apparatus convenient for tracking and locating fault of payment terminal
CN113506096B (en) Inter-system interface method based on industrial internet identification analysis system
CN106022813A (en) Methods and apparatus to report reference media data to multiple data collection facilities
CN103220555B (en) The sorting technique of a kind of digital cable customers, Apparatus and system
CN104408556B (en) Remote units test installation system based on Android mobile terminal
CN101969233A (en) Testing method and device of power grid video and environment monitoring system
CN111935501B (en) Scene recognition method and device

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