CN111083471A - Network camera test system and method - Google Patents

Network camera test system and method Download PDF

Info

Publication number
CN111083471A
CN111083471A CN202010012263.XA CN202010012263A CN111083471A CN 111083471 A CN111083471 A CN 111083471A CN 202010012263 A CN202010012263 A CN 202010012263A CN 111083471 A CN111083471 A CN 111083471A
Authority
CN
China
Prior art keywords
network camera
wireless router
network
telnet
ssh
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
Application number
CN202010012263.XA
Other languages
Chinese (zh)
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.)
Taicang T&W Electronics Co Ltd
Original Assignee
Taicang T&W 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 Taicang T&W Electronics Co Ltd filed Critical Taicang T&W Electronics Co Ltd
Priority to CN202010012263.XA priority Critical patent/CN111083471A/en
Publication of CN111083471A publication Critical patent/CN111083471A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Abstract

The invention discloses a network camera testing system and a network camera testing method, wherein the network camera testing system comprises a pC, an automatic testing platform arranged on the pC, a wireless router connected with the pC, and a plurality of network cameras connected with the wireless router, the network cameras are also connected with the pC, a wifi module and an SD expansion port are arranged on the network cameras, and an SD card is arranged in the SD expansion port. The invention sets the IPCamera to connect different ssid and passwords through the SD expansion function, solves the problem of mutual interference during mass production, has low cost input, high universality and high stability, greatly improves the production test efficiency and reduces the production test cost.

Description

Network camera test system and method
Technical Field
The invention belongs to the field of performance test of network cameras, and particularly relates to a system and a method for testing a network camera.
Background
The development of modern society and the security industry have greatly advanced, wherein the internet protocol camera (IPCamera) gradually forms a situation of large-scale application due to the excellent performance of the internet protocol camera in transmission, high definition and the like. As a core device in a network video monitoring system, IPCamera is rapidly applied and popularized. APP remote viewing, remote control and automatic alarm functions are already standard provisions of IPCamera, and to provide the functions, the product must provide Wi-Fi (wireless fidelity) and SD (secure digital) expansion card functions. The scheme of directly testing the camera module through the test fixture in the traditional test scheme cannot be executed by the IPCamera product. To test such IPCamera products, a PC must be connected to the IPCamera, and the IPCamera is controlled by telnet/SSH and other protocols to perform testing, but such products do not have a network port, and therefore, the products cannot be directly connected to the IPCamera to perform testing, and how to connect to a network to perform testing becomes a difficult point in the industry.
The traditional test method generally comprises the steps of 1), through a USB port of the IPCamera, a USB network switching card driver is arranged in IPCamera software, a PC is connected with the IPCamera through a USB wire, the USB network switching card driver is installed at the PC end, the USB ports of the PC and the IPCamera are converted into a network port, and then the IPCamera is controlled through telnet/SSH and other protocols to carry out the test. The method becomes mainstream in the industry, but part of chips do not support the scheme, and part of IPCamera of the extremely small flash is difficult to realize, so that the method is difficult to be comprehensively applied. 2) The wireless network card is installed on the PC in advance through the function of the IPCamera with the wifi, the wireless network card is automatically connected with the designated wifi, and the IPCamera is controlled to test through protocols such as telnet/SSH. However, in mass production, because there are many ipcameras, the products will interfere with each other, and the PC cannot be connected to the designated IPCamera product, which is likely to cause test failure or test failure.
Disclosure of Invention
The invention provides a system and a method for testing a network camera to solve the technical problems.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
the first technical scheme is as follows:
the utility model provides a network camera test system, includes pC, set up in automatic test platform on the pC, with the wireless router that the pC is connected, with a plurality of network cameras that wireless router connects, network camera still with pC is connected, be provided with wifi module and SD expansion port on the network camera, be provided with the SD card in the SD expansion port.
Further, the automatic test platform is connected with the wireless router through telnet/ssh.
Further, the automatic test platform is connected with the network camera through telnet/ssh.
Further, the wireless router has a DHCP function, the wireless router automatically allocates an IP address through a network port and wifi, and when a network camera is connected to the network port or the wifi, the wireless router acquires network information of the network camera through telnet/ssh and provides wifi common information for modifying the wireless router;
a text file is arranged in the sd card, and the set ssid and the password which need to be connected are written in the text file;
the network camera automatically reads the set ssid and the password to be connected in the SD when the network camera is started, and the wireless router set as the ssid and the password is connected by searching the ssid and the password;
the automatic test platform is used for providing production management information and a telnet/ssh connection function; when the network camera is successfully connected with the wireless router, the automatic test platform is used for connecting to the wireless router through telnet/ssh to obtain the IP address of the network camera which is successfully connected; the system comprises a telnet/ssh interface, a network camera and a camera module, wherein the telnet/ssh interface is used for establishing connection with the successfully connected network camera and then carrying out related performance test on the successfully connected network camera through the telnet/ssh interface;
further, the wifi common information of the modified wireless router comprises an ssid, a password, a connection rate and a connection channel.
Further, a status indicator lamp is further arranged on the network camera and used for indicating a connection result of the network camera and the wireless router.
The second technical scheme is as follows:
a network camera testing method specifically comprises the following steps:
step 1, preparing a wireless router with a DHCP function; the wireless router automatically allocates an IP address through a network port and wifi, and when a network camera is connected to the network port or the wifi, the wireless router acquires network information of the network camera through telnet/ssh and provides wifi common information for modifying the wireless router; the wifi common information of the modified wireless router comprises an ssid, a password, a connection rate, a connection channel and the like;
step 2, an automatic test platform running on the PC is automatically connected with the network camera;
step 3, preparing a network camera to be tested with a wifi function and an SD expansion port, building a new text file in an SD card before testing, writing an ssid and a password which need to be automatically connected into the text file, and then inserting the SD card into the SD expansion port of the network camera;
step 4, developing new functions by the network camera software in a test mode;
the method comprises the steps that a network camera is opened, the network camera automatically reads an ssid and a password which are set in an SD card and need to be connected when the SD card is started, and a wireless router set as the ssid and the password is connected by searching the ssid and the password;
step 5, when the network camera is successfully connected with the wireless router, the automatic test platform is connected to the wireless router through telnet/ssh to obtain the IP address of the successfully connected network camera;
step 6, after the IP address of the network camera is obtained, an automatic test platform running on the PC is connected with the successfully connected network camera through a telnet/ssh interface, and the successfully connected network camera is subjected to related performance test through the telnet/ssh interface;
further, in step 4, the result of the connection between the network camera and the wireless router is displayed through the state change of the status indicator lamp of the network camera; when the network camera is successfully connected with the wireless router, the status indicator lamp is on for a long time, and when the network camera is failed to be connected with the wireless router, the status indicator lamp flickers.
Further, when the connection between the network camera and the wireless router is over time, the network camera is restarted, and the connection between the network camera and the wireless router is continued.
Further, in step 6, in the process of performing the related performance test, the automatic test platform sends a test command to the network camera which is successfully connected, and meanwhile, the next step of execution is judged according to the return value of the object to be tested, so that the purpose of judging whether the network camera is good is finally achieved.
Compared with the prior art, the invention has the following beneficial effects:
according to the invention, different ssids and passwords connected with the network camera IPCamera are set through the SD expansion function, during testing, production technicians only need to modify the different ssids and passwords required to be connected in the SD card, and then mass copy testing can be carried out without worrying about the problem of mutual interference between compatibility and wifi, so that the abnormal condition of production is greatly reduced, the problem of mutual interference during mass production is solved, the cost investment is low, the universality is high, the stability is high, the production testing efficiency is greatly improved, and the production testing cost is reduced.
The invention searches IP addresses of different IPCamera through the AP Route query function of the wireless router, and controls the IPCamera to carry out various performances in real time through the automatic test platform.
Drawings
Fig. 1 is a system configuration diagram of an embodiment of a network camera test system according to the present invention;
fig. 2 is a flowchart illustrating an embodiment of a network camera testing method according to the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention.
Fig. 1 shows an embodiment of a network camera testing system of the present invention, which includes a pC, an automatic testing platform 2 disposed on the pC1, a wireless router 3 connected to the pC1, and a plurality of network cameras 4 connected to the wireless router 3, wherein the network cameras 4 are further connected to the pC1, the network cameras 4 are provided with wifi modules and SD expansion ports, and SD expansion ports are provided with SD cards.
As another embodiment of the network camera test system of the present invention, the automated test platform 2 and the wireless router 3 are connected through telnet/ssh. The telnet/ssh refers to a remote management protocol, other telnets do not encrypt a transmission protocol, and ssh is an encrypted transmission protocol.
As another embodiment of the network camera testing system of the present invention, the automated testing platform 2 and the network camera 4 are connected through telnet/ssh.
As another embodiment of the network camera test system of the present invention, the wireless router 3 has a DHCP function, the wireless router 3 automatically allocates an IP address through a network port and wifi, and when the network camera 4 is connected to the network port or wifi, the wireless router 3 acquires network information of the network camera 4 through telnet/ssh and provides wifi common information for modifying the wireless router;
a text file is arranged in the sd card, and the set ssid and the password which need to be connected are written in the text file;
the network camera 4 automatically reads the set ssid and password to be connected in the SD when the network camera is started, and connects the wireless router set as the ssid and the password by searching the ssid and the password;
the automatic test platform 2 is used for providing production management information and a telnet/ssh connection function; after the network camera 4 is successfully connected with the wireless router 3, the automatic test platform 2 is used for connecting to the wireless router through telnet/ssh to acquire the IP address of the network camera which is successfully connected; the system comprises a telnet/ssh interface, a network camera and a camera module, wherein the telnet/ssh interface is used for establishing connection with the successfully connected network camera and then carrying out related performance test on the successfully connected network camera through the telnet/ssh interface;
further, the wifi common information of the modified wireless router includes an ssid, a password, a connection rate, a connection channel, and the like.
As another embodiment of the network camera testing system of the present invention, a status indicator lamp is further disposed on the network camera 4, and the status indicator lamp is used for indicating a connection result between the network camera 4 and the wireless router 3.
A method for testing by using the network camera testing system, as shown in fig. 2, specifically includes the following steps:
step 1, preparing a wireless router with a DHCP function; the wireless router automatically allocates an IP address through a network port and wifi, and when a network camera is connected to the network port or the wifi, the wireless router acquires network information of the network camera through telnet/ssh and provides wifi common information for modifying the wireless router; the wifi common information of the modified wireless router comprises an ssid, a password, a connection rate, a connection channel and the like; the telnet/ssh refers to a remote management protocol, other telnets do not encrypt a transmission protocol, and ssh is an encryption transmission protocol;
step 2, an automatic test platform running on the PC is automatically connected with the network camera;
step 3, preparing a network camera to be tested with a wifi function and an SD expansion port, and before testing, newly building a text file, such as wifi.txt, in an SD card, writing an ssid and a password which need to be automatically connected in the text file, and automatically negotiating to other formats, wherein the purpose is to enable the network camera to obtain the ssid and the password which need to be automatically connected; then inserting the SD card into an SD expansion port of the network camera;
step 4, developing new functions by the network camera software in a test mode;
the method comprises the steps that a network camera is opened, the network camera automatically reads an ssid and a password which are set in an SD card and need to be connected when the SD card is started, and a wireless router set as the ssid and the password is connected by searching the ssid and the password; then the result of the connection is displayed through the state change of the indicator light of the network camera, if the connection is successful, the indicator light is on for a long time, if the connection is failed, the indicator light flickers, when the connection is overtime, the network camera is restarted, the connection is continued, the states can execute the negotiation, and the purpose is that the staff can judge whether the current network camera is in the state of trying to connect the wireless router or is successfully connected;
step 5, when the network camera is successfully connected with the wireless router, namely an indicator light of the network camera is displayed to be normally on, the automatic test platform is connected to the wireless router through telnet/ssh to acquire the IP address of the network camera which is successfully connected;
step 6, after the IP address of the network camera is obtained, an automatic test platform running on the PC is connected with the successfully connected network camera through a telnet/ssh interface, and the successfully connected network camera is subjected to related performance test through the telnet/ssh interface;
in the process of carrying out related performance test, the automatic test platform sends a test command to the network camera which is successfully connected, and meanwhile, the next step of execution is judged according to the return value of the object to be tested, and finally the purpose of judging whether the network camera is good or not is achieved.
The embodiments described above are only preferred embodiments of the invention and are not exhaustive of the possible implementations of the invention. Any obvious modifications to the above would be obvious to those of ordinary skill in the art, but would not bring the invention so modified beyond the spirit and scope of the present invention.

Claims (10)

1. The utility model provides a network camera test system, its characterized in that, including pC (1), set up in automatic test platform (2) on pC (1), with wireless router (3) that pC (1) is connected, with a plurality of network camera (4) that wireless router (3) are connected, network camera (4) still with pC (1) are connected, be provided with wifi module and SD extension mouth on network camera (4), be provided with the SD card in the SD extension mouth.
2. The network camera test system according to claim 1, wherein the automated test platform (2) and the wireless router (3) are connected through telnet/ssh.
3. The network camera test system according to claim 1, wherein the automated test platform (2) and the network camera (4) are connected through telnet/ssh.
4. The network camera test system according to claim 1, wherein the wireless router (3) has a DHCP function, the wireless router (3) automatically allocates an IP address through a network port and wifi, when the network camera (4) is connected to the network port or wifi, the wireless router (3) acquires network information of the network camera (4) through telnet/ssh and provides wifi common information for modifying the wireless router;
a text file is arranged in the sd card, and the set ssid and the password which need to be connected are written in the text file;
the network camera (4) automatically reads the set ssid and the password to be connected in the SD when the network camera is started, and connects the wireless router set as the ssid and the password by searching the ssid and the password;
the automatic test platform (2) is used for providing production management information and a telnet/ssh connection function; after the network camera (4) is successfully connected with the wireless router (3), the automatic test platform (2) is used for being connected to the wireless router (3) through telnet/ssh to obtain the IP address of the network camera which is successfully connected; the system is used for establishing connection with the successfully connected network camera through the telnet/ssh interface and then carrying out related performance test on the successfully connected network camera through the telnet/ssh interface.
5. The system of claim 4, wherein the wifi common information of the modified wireless router comprises an ssid, a password, a connection rate, and a connection channel.
6. The network camera test system according to claim 1, wherein a status indicator lamp is further disposed on the network camera (4), and the status indicator lamp is used for indicating a connection result between the network camera (4) and the wireless router (3).
7. A network camera testing method is characterized by comprising the following steps:
step 1, preparing a wireless router with a DHCP function;
step 2, an automatic test platform running on the PC is automatically connected with the network camera;
step 3, preparing a network camera to be tested with a wifi function and an SD expansion port, building a new text file in an SD card before testing, writing an ssid and a password which need to be automatically connected into the text file, and then inserting the SD card into the SD expansion port of the network camera;
step 4, developing new functions by the network camera software in a test mode;
the method comprises the steps that a network camera is opened, the network camera automatically reads an ssid and a password which are set in an SD card and need to be connected when the SD card is started, and a wireless router set as the ssid and the password is connected by searching the ssid and the password;
step 5, when the network camera is successfully connected with the wireless router, the automatic test platform is connected to the wireless router through telnet/ssh to obtain the IP address of the successfully connected network camera;
and 6, after the IP address of the network camera is obtained, connecting an automatic test platform running on the PC with the successfully connected network camera through a telnet/ssh interface, and carrying out related performance test on the successfully connected network camera through the telnet/ssh interface.
8. The method according to claim 7,
in step 4, the result of the connection between the network camera and the wireless router is displayed through the state change of a state indicator lamp of the network camera; when the network camera is successfully connected with the wireless router, the status indicator lamp is on for a long time, and when the network camera is failed to be connected with the wireless router, the status indicator lamp flickers.
9. The method according to claim 7,
and when the connection between the network camera and the wireless router is over time, restarting the network camera and continuing to connect the network camera and the wireless router.
10. The method for testing a network camera according to claim 7, wherein in step 6, in the process of performing the related performance test, the automatic test platform sends a test command to the network camera which has been successfully connected, and meanwhile, the next step of execution is judged according to the return value of the object to be tested, so that the purpose of judging whether the network camera is good is finally achieved.
CN202010012263.XA 2020-01-07 2020-01-07 Network camera test system and method Pending CN111083471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010012263.XA CN111083471A (en) 2020-01-07 2020-01-07 Network camera test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010012263.XA CN111083471A (en) 2020-01-07 2020-01-07 Network camera test system and method

Publications (1)

Publication Number Publication Date
CN111083471A true CN111083471A (en) 2020-04-28

Family

ID=70322290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010012263.XA Pending CN111083471A (en) 2020-01-07 2020-01-07 Network camera test system and method

Country Status (1)

Country Link
CN (1) CN111083471A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654691A (en) * 2020-05-21 2020-09-11 Oppo(重庆)智能科技有限公司 Performance test method, device, computer storage medium and system
CN112565746A (en) * 2020-12-30 2021-03-26 杭州视洞科技有限公司 Automatic pressure test method and process for detecting IP address of wired network port of camera

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254424A (en) * 2016-07-21 2016-12-21 深圳市智美达科技股份有限公司 Web camera collocation method and device
CN207603824U (en) * 2017-12-20 2018-07-10 深圳市天和荣科技有限公司 A kind of web camera automatic checkout system established by Android development board
CN109151460A (en) * 2018-10-17 2019-01-04 杭州兆华电子有限公司 A kind of IP Camera test macro and its test method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254424A (en) * 2016-07-21 2016-12-21 深圳市智美达科技股份有限公司 Web camera collocation method and device
CN207603824U (en) * 2017-12-20 2018-07-10 深圳市天和荣科技有限公司 A kind of web camera automatic checkout system established by Android development board
CN109151460A (en) * 2018-10-17 2019-01-04 杭州兆华电子有限公司 A kind of IP Camera test macro and its test method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654691A (en) * 2020-05-21 2020-09-11 Oppo(重庆)智能科技有限公司 Performance test method, device, computer storage medium and system
CN111654691B (en) * 2020-05-21 2022-04-15 Oppo(重庆)智能科技有限公司 Performance test method, device, computer storage medium and system
CN112565746A (en) * 2020-12-30 2021-03-26 杭州视洞科技有限公司 Automatic pressure test method and process for detecting IP address of wired network port of camera

Similar Documents

Publication Publication Date Title
EP3118700B1 (en) Intelligent home control method and system based on alljoyn technology
CN111083471A (en) Network camera test system and method
CN104683797A (en) Intelligent television production test method and system
CN110912944B (en) CAN equipment safety test system and test method
CN109245951B (en) Method for realizing networking monitoring of network optimization equipment based on web
EP3884369A1 (en) Display apparatus and method of controlling the same
CN109660887B (en) Method for adapting ONU to different OLTs
CN103731663A (en) Method and device for testing smart television
WO2022121660A1 (en) Method, apparatus and system for implementing remote automatic packet capture
CN110706426A (en) Method and system for managing USB tax control disk
CN109995615B (en) Power acquisition terminal network port detection method
WO2014187384A1 (en) Method for mobile terminal automatic adaptation for network switchover and mobile terminal
CN109286575B (en) Message priority configuration method, device and network equipment
CN106059635A (en) Bluetooth setting method and device for electronic equipment and Bluetooth connection method
CN203457171U (en) Home gateway with automatic fault elimination indication
CN106254424B (en) Web camera configuration method and device
CN101795186B (en) Linkage disconnecting method, system and equipment
CN115022215A (en) Method and system for testing MAC address of optical network unit
CN114157350A (en) Optical fiber misconnection detection method and system
CN112188327B (en) Optical network unit burning method, device, medium and equipment
CN107171824B (en) Wifi disconnection processing method of terminal, terminal and storage device
CN105391574A (en) Server address setting method and device
US11637750B2 (en) Providing configuration data to a connected network switch
CN102724116B (en) Connection establishment method and storage device
JP2013143582A (en) Method for automating interface setting, program, and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200428