WO2018035678A1 - Method and system for adding camera - Google Patents
Method and system for adding camera Download PDFInfo
- Publication number
- WO2018035678A1 WO2018035678A1 PCT/CN2016/096242 CN2016096242W WO2018035678A1 WO 2018035678 A1 WO2018035678 A1 WO 2018035678A1 CN 2016096242 W CN2016096242 W CN 2016096242W WO 2018035678 A1 WO2018035678 A1 WO 2018035678A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- camera
- area network
- local area
- uid
- client
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Definitions
- the present invention relates to the field of computer technologies, and in particular, to a method and system for adding a camera.
- Smart cameras are gradually coming into people's eyes. Especially for working people with elderly parents and children at home, installing one or more smart cameras at home to look after parents and children is very Necessary, so smart cameras came into being. Smart cameras are widely popular in the civilian market due to their small size, simple configuration, wide application environment and close function to consumers' usage habits.
- a smart camera Before using a smart camera, a smart camera needs to be added to the user's mobile client software.
- the existing method of adding a smart camera to the mobile client software is mainly as follows: First, the user long presses the set button outside the smart camera. The smart camera is set to receive the information sent by the mobile phone client, and then the mobile phone client scans the smart camera's two-dimensional code to obtain the UID of the smart camera, and interacts with the short-distance information according to the acquired UID of the smart camera. The technology communicates with the smart camera to complete the addition of the smart camera.
- this method of addition has the following drawbacks: When the user does not intend to delete the smart camera from the mobile client software and needs to add the smart camera again, the user needs to set the smart camera again before the camera process can be added later. The operation is troublesome; in addition, this addition method is only applicable to short-range applications, and the function of adding a camera remotely cannot be realized.
- An embodiment of the present invention provides a method for adding a camera, which is to solve the above problem.
- the user does not intend to delete the smart camera from the mobile client software and needs to add the smart camera again, the user needs to re-set the smart camera. Bit manipulation, and the problem of remotely adding camera functionality is not possible. Problem solution
- an embodiment of the present invention provides a method for adding a camera, where the method includes: [0006] When the camera is used for the first time, the camera is set to obtain the UID of the camera;
- Searching for the camera in the local area network by using a local area network search technology if the camera is searched, performing data communication with the camera according to the UID of the camera and using P2P penetration technology to complete the addition of the camera .
- the searching for the camera in the local area network by using a local area network search technology, and if the camera is searched, adopting a P2P penetration technology and the camera according to the UID of the camera.
- Data communication to complete the addition of the camera specifically includes:
- a display interface prompting the user to input a user name and password for logging in to the camera is displayed;
- the searching for the camera in the local area network by using a local area network search technology, and if the camera is searched, adopting a P2P penetration technology and the camera according to the UID of the camera.
- the camera After data communication to complete the addition of the camera, it also includes:
- the searching for the camera in the local area network by using a local area network search technology, and if the camera is searched, adopting a P2P penetration technology and the camera according to the UID of the camera.
- the camera After data communication to complete the addition of the camera, it also includes:
- the camera is deleted from the client and the camera needs to be added again, the DDNS or IP address and port of the camera are acquired, and the DDNS or IP address and port connection of the camera is used. The camera, and after the connection is successful, the user name and password are used to log in to the camera. Complete the addition of the camera.
- the method further includes:
- the client is connected to a local area network where the camera is located;
- the client searches for the camera in the local area network, and displays the camera information that is located in the same local area network, and the camera information includes the UID of the camera or the IP address and port of the camera;
- Another object of the embodiments of the present invention is to provide a system for adding a camera, including:
- a UID acquiring unit configured to acquire a UID of the camera when the camera is used for the first time
- a protocol data sending unit configured to: according to the UI of the camera when the camera is in a set state
- the camera Transmitting the protocol data to the camera by using the EZLink short-distance information interaction technology, so that the camera accesses the local area network where the client is located according to the protocol data, where the protocol data includes the UID of the camera, the local area network Wifi name and wifi password;
- a first camera adding unit configured to search for the camera in the local area network by using a local area network search technology, and if the camera is searched, use the P2P penetration technology to perform data with the camera according to the UID of the camera. Communication to complete the addition of the camera.
- the first camera adding unit is specifically configured to:
- a display interface prompting the user to input a user name and password for logging in to the camera is displayed;
- the method further includes: [0030] a second camera adding unit, configured to: when the camera is deleted from the client and the camera needs to be added again, obtain the UID of the camera directly by scanning the two-dimensional code, by using the The UID of the camera communicates with the camera in P2P penetration mode to complete the addition of the camera.
- a second camera adding unit configured to: when the camera is deleted from the client and the camera needs to be added again, obtain the UID of the camera directly by scanning the two-dimensional code, by using the The UID of the camera communicates with the camera in P2P penetration mode to complete the addition of the camera.
- the method further includes:
- a third camera adding unit configured to acquire a DDNS or an IP address and a port of the camera, if the camera is deleted from the client and need to add the camera again, by using the camera
- the DDNS or IP address and port are connected to the camera, and after the connection is successful, the user name and password are used to log in to the camera to complete the addition of the camera.
- a fourth camera adding unit configured to:
- the client is connected to a local area network where the camera is located;
- the client searches for the camera in the local area network, and displays the camera information that is located in the same local area network, and the camera information includes the UID of the camera or the IP address and port of the camera;
- data communication is performed by using a P2P penetration technology between a client and a camera, so that only When the camera is added for the first time, the camera is set.
- the client can also remotely add the camera function through the P2P penetration technology.
- FIG. 1 is a schematic flow chart of a method for adding a camera according to a first embodiment of the present invention
- FIG. 2 is a schematic flow chart of a method for adding a camera according to a second embodiment of the present invention
- FIG. 3 is a schematic flow chart of a method for adding a camera according to a third embodiment of the present invention.
- FIG. 4 is a schematic flow chart of a method for adding a camera according to a fourth embodiment of the present invention.
- FIG. 5 is a schematic block diagram of an added camera system according to a first embodiment of the present invention.
- FIG. 6 is a schematic block diagram of an added camera system according to a second embodiment of the present invention.
- FIG. 7 is a schematic block diagram of an add camera system according to a third embodiment of the present invention.
- FIG. 8 is a schematic block diagram of an add camera system according to a fourth embodiment of the present invention.
- FIG. 9 is a schematic block diagram of an added camera system according to a fifth embodiment of the present invention.
- the term “if” can be interpreted as “when” or “once” or “in response to determining” or “responsive” depending on the context. detected”.
- the phrase “if determined” or “if detected [condition or event described]” may be interpreted as meaning “once determined” or “in response to determining” or “once detected [the condition or The event] or “response to the detected condition or event].
- a first embodiment of the present invention provides a schematic flowchart of a method for adding a camera. As shown in FIG. 1, the method may include the following steps:
- the camera ⁇ is used for the first time, and the camera is set to acquire the UID of the camera.
- the UID of the camera can be obtained by scanning the two-dimensional code of the camera body.
- S102 when the camera is in a set state, transmitting protocol data to the camera according to the UID of the camera through an EZLink short-distance information interaction technology, so that the camera accesses according to the protocol data.
- the local area network where the client is located wherein the protocol data includes a UID of the camera, a wifi name of the local area network, and a wifi password.
- the user since the camera is used for the first time, the user is required to first press the set button outside the camera to put the camera into the set state, so that the camera can receive the protocol data sent by the client.
- the camera enters the set state it will prompt the user through its own set status indicator. For example: When the camera enters the set state, the set indicator on the camera will flash green.
- the client can send the protocol data to the client according to the UID of the previously acquired camera, where the protocol data includes the wifi password and wifi name of the local area network where the client is located, and carries With the UID of the camera, after receiving the protocol data, the client first parses whether the UID carried in the protocol data matches its own UID. If it matches, then the root According to the wifi name and the wifi password in the protocol data, the network is connected to the local area network where the client is located.
- step S103 searching for the camera in the local area network by using a local area network search technology, and if searching for the camera, performing data communication with the camera according to the UID of the camera, using P2P penetration technology, Complete the addition of the camera. Further, step S203 specifically includes:
- a display interface prompting the user to input a user name and password for logging in to the camera is displayed;
- the camera when the camera successfully accesses the local area network, the camera automatically returns a notification message of successful access to the client, and the client receives the successful return from the client.
- a display interface prompting the user to input the user name and password for logging in to the camera is displayed on the touch display screen, and the user is prompted to input the user name and password to log in to the camera.
- the user name and password input by the user are received in the display interface, and the user name and password input by the user are sent to the user according to the UID of the camera through the P2P penetration technology.
- the verification of the camera to complete the addition of the camera specifically includes:
- the client when the user name and password input by the user are incorrect, the client prompts the user to re-enter the user name and password for logging in to the camera according to the verification failure information returned by the camera, and returns to the user again.
- the process of authentication if the number of failed verifications is greater than the preset number, Add the process of the camera. If the user name and password entered by the user are correct, the client can successfully log in to the camera, and the monitoring screen of the camera can be obtained, that is, the addition of the camera is completed.
- the method for adding a camera provides a data communication between the client and the camera by using a P2P penetration technology after the camera accesses the local area network of the client, so that only When the camera is added for the first time, the camera is set.
- the client can also remotely add the camera function through the P2P penetration technology.
- a second embodiment of the present invention provides a schematic flowchart of a method for adding a camera.
- a method for adding a camera according to the previous embodiment is provided. And receiving, by the user, the user name and password of the camera that is input by the user, and logging in to the camera, and after the camera is added, the method further includes:
- the UID of the camera is directly obtained by scanning a two-dimensional code, and the UID of the camera is P2P.
- the penetration mode is in data communication with the camera to complete the addition of the camera.
- the UID of the camera can be obtained by scanning the two-dimensional code directly, and then The camera is connected in a P2P penetration manner according to the acquired UID, and data communication is performed after the connection is successful to complete the addition of the camera.
- the two-dimensional code of the camera can be copied by photographing, the user can obtain the UID of the camera by scanning the two-dimensional code of the camera saved in advance, even if the user is not at the position where the camera is located, and then according to The acquired UID performs remote data communication with the camera in a P2P penetration manner, thereby completing the addition of the camera.
- steps S201 to S203 in the embodiment are completely the same as the steps S101 to S103 in the embodiment shown in FIG. 1, and therefore, details are not described herein.
- the method for adding a camera also needs to set the camera when the camera is added for the first time.
- the camera ⁇ because the P2P service can directly establish a data communication connection with the camera, thereby eliminating the need to re-set the camera, which is convenient for the user to operate;
- the terminal implements the function of adding a camera remotely through P2P penetration technology.
- FIG. 3 is a schematic flowchart of a method for adding a camera according to a third embodiment of the present invention. As shown in FIG. 3, a method for adding a camera according to the first embodiment is provided. And receiving, by the user, the user name and password of the camera that is input by the user, and logging in to the camera, and after the camera is added, the method further includes:
- the user may configure the DDNS of the camera or obtain the IP address and port of the camera through a PC such as a computer, and then the DDNS of the camera or the IP address and port of the camera.
- the client Sending to the client, the client directly establishes a connection with the camera according to the DDNS or IP address and port of the camera, and completes the addition of the camera, and it does not need to re-set the camera.
- steps S301 to S303 in this embodiment are completely the same as the steps S101 to S103 in the embodiment shown in FIG. 1, and therefore, details are not described herein.
- the method for adding a camera also needs to set the camera only after the camera is added for the first time.
- the user does not intend to delete the camera from the client and needs to add it again.
- the data communication connection can be directly established with the camera through the DDNS of the camera or the IP address and port of the camera, it is not necessary to re-set the camera, which is convenient for the user to operate.
- FIG. 4 is a schematic flowchart of a method for adding a camera according to a third embodiment of the present invention. As shown in FIG. 4, a method for adding a camera according to the first embodiment is provided. And receiving, by the user, the user name and password of the camera that is input by the user, and logging in to the camera, and after the camera is added, the method further includes:
- the client searches for the camera in the local area network, and displays the search to the same place.
- the camera information in the same local area network the camera information to the UID including the camera or the IP address and port of the camera;
- the connected network may change during the process of the client adding the camera for the first time and adding the camera again. Therefore, when the client needs to add the camera again, the network setting is first set. Modify to access the local area network where the camera is located, and then search for the camera in the local area network.
- the communication between the client and the camera is performed by using the P2P penetration mode, after searching for the camera, the UID or IP address and port of the camera can be obtained, and then the P2P is worn according to the UID of the camera.
- the technology establishes a data communication connection with the camera or establishes a data communication connection with the camera directly through the IP address and port of the camera, so that it is not necessary to set the camera again.
- steps S401 to S403 in this embodiment are completely the same as the steps S101 to S103 in the embodiment shown in FIG. 1, and therefore, details are not described herein again.
- the method for adding a camera also needs to set the camera when the camera is added for the first time.
- the user does not intend to delete the camera from the client and needs to add it again.
- the camera ⁇ since the data communication connection can be established with the camera through the P2P penetration technology according to the UID of the camera or the data communication connection is established directly with the camera through the IP address and port of the camera, Set state, convenient for user operation
- FIG. 5 is a schematic block diagram of an add camera system according to a first embodiment of the present invention, which is used to run the method provided in the embodiment shown in FIG. 1. Only the parts related to the embodiment are shown for convenience of explanation.
- a system for adding a camera provided by this embodiment includes:
- Another object of the embodiments of the present invention is to provide a system for adding a camera, including:
- the UID acquiring unit 1 is configured to acquire the UID of the camera for the first time using the camera ⁇ ;
- a protocol data sending unit 2 configured to: when the camera is in a set state, according to the U of the camera The ID data is sent to the camera by the EZLink short-distance information interaction technology, so that the camera accesses the local area network where the client is located according to the protocol data, where the protocol data includes the UID of the camera, the local area network. Wifi name and wifi password;
- a first camera adding unit 3 configured to search for the camera in the local area network by using a local area network search technology, and if the camera is searched, use a P2P penetration technology and the camera according to the UID of the camera Data communication is performed to complete the addition of the camera.
- the first camera adding unit 3 is specifically configured to:
- a display interface prompting the user to input a user name and password for logging in to the camera is displayed;
- FIG. 6 is a schematic block diagram of an add camera system according to a second embodiment of the present invention, where the system is used to run the method provided in the embodiment shown in FIG. 2, as shown in FIG. With respect to the previous embodiment, in this embodiment, the system further includes:
- a second camera adding unit 4 configured to: when the camera is deleted from the client and need to add the camera ⁇ again, directly acquire a UID of the camera by scanning a two-dimensional code, The UID of the camera communicates with the camera in a P2P penetration manner to complete the addition of the camera.
- FIG. 7 is a schematic block diagram of an add camera system according to a second embodiment of the present invention, where the system is used to run the method provided in the embodiment shown in FIG. 3, as shown in FIG. With respect to the previous embodiment, in this embodiment, the system further includes:
- a third camera adding unit 5 configured to acquire a DDNS or an IP address and a port of the camera by deleting the camera from the client and adding the camera again, by using the camera
- the DDNS or IP address is connected to the camera, and after the connection is successful, the user name and password are used to log in to the camera to complete the addition of the camera.
- FIG. 8 is a schematic block diagram of an add camera system according to a third embodiment of the present invention, where the system is used to run the method provided in the embodiment shown in FIG. Relative to the previous one
- the system further includes a fourth camera adding unit 6 for:
- the client is connected to a local area network where the camera is located;
- the client searches for the camera in the local area network, and displays the camera information that is located in the same local area network as the camera.
- the camera information includes the UID of the camera or the IP address and port of the camera;
- the system for adding a camera provided by the embodiment of the present invention only needs to set the camera when the camera is added for the first time, when the user does not intend to delete the camera from the client and needs to add the camera again.
- the camera it is not necessary to set the camera again, which is convenient for the user to operate.
- the client can also realize the function of adding the camera remotely.
- FIG. 9 is a schematic block diagram of a system for adding a camera according to a fifth embodiment of the present invention, which is used to operate the method provided by the embodiment shown in FIG. 1 to FIG. 4 of the present invention. For the convenience of explanation, only the parts related to the present embodiment are shown.
- a system for adding a camera includes:
- processor 910 processing circuit 910 (processor), communication interface 920 (Communications
- memory 930 (memory), bus 940.
- the processor 910, the communication interface 920, and the memory 930 complete communication with each other through the bus 940.
- the communication interface 920 is configured to communicate with a cable modem.
- the processor 910 is configured to execute the program 931.
- the program 931 can include program code, the program code including computer operating instructions.
- the processor 910 may be a central processing unit CPU, or an ASIC (Applicatio n Specific Integrated Circuit), or one or more configured to implement the embodiments of the present invention. Integrated circuit.
- the memory 930 is configured to store the program 931.
- Memory 930 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
- the program 931 specifically includes:
- the UID acquiring unit 1 is configured to acquire the UID of the camera when the camera is used for the first time;
- a protocol data sending unit 2 configured to: when the camera is in a set state, according to the U of the camera
- the ID data is sent to the camera by the EZLink short-distance information interaction technology, so that the camera accesses the local area network where the client is located according to the protocol data, where the protocol data includes the UID of the camera, the local area network. Wifi name and wifi password;
- a first camera adding unit 3 configured to search for the camera in the local area network by using a local area network search technology, and if the camera is searched, use a P2P penetration technology and the camera according to the UID of the camera Data communication is performed to complete the addition of the camera.
- the first camera adding unit 3 is specifically configured to:
- a display interface prompting the user to input a user name and password for logging in to the camera is displayed;
- the program 931 further includes:
- a second camera adding unit 4 configured to: when the camera is deleted from the client and the camera needs to be added again, obtain the UID of the camera directly by scanning the two-dimensional code, The UID of the camera communicates with the camera in a P2P penetration manner to complete the addition of the camera.
- the program 931 further includes:
- a third camera adding unit 5 configured to acquire a DDNS or an IP address and a port of the camera by deleting the camera from the client and adding the camera again, by using the camera
- the DDNS or IP address and port are connected to the camera, and after the connection is successful, the user name and password are used to log in to the camera to complete the addition of the camera.
- the program 931 further includes a fourth camera adding unit 6 configured to:
- the client is connected to a local area network where the camera is located;
- the client searches for the camera in the local area network, and displays the camera information that is located in the same local area network as the camera.
- the camera information includes the UID of the camera or the IP address and port of the camera.
- the disclosed terminal and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface 920, device or unit, and may be in electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple networks. On the module. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
- the function is implemented in the form of a software function module and is sold or used as a stand-alone product, To be stored in a terminal readable storage medium.
- the technical solution of the present invention which is essential to the prior art or part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including several The instructions are for causing a terminal (which may be a cell phone, IPAD, etc.) to perform all or part of the steps of the method of the various embodiments of the present invention.
- the foregoing storage medium includes: a medium that can store program codes, such as a USB flash drive, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
发明名称:一种添加摄像机的方法及系统 Invention name: A method and system for adding a camera
技术领域 Technical field
[0001] 本发明涉及计算机技术领域, 尤其涉及一种添加摄像机的方法及系统。 [0001] The present invention relates to the field of computer technologies, and in particular, to a method and system for adding a camera.
背景技术 Background technique
[0002] 随着智能家居的兴起, 智能摄像机逐渐走进人们的视野, 尤其对于家中有年迈 父母及小孩的上班人士来说, 在家里安装一台或多台智能摄像机来看护父母和 小孩是非常必要, 因此智能摄像机应运而生。 智能摄像机由于具有体积小、 配 置简单, 应用环境广泛, 功能也更加贴近消费者的使用习惯等特点, 因此在民 用市场受到广泛欢迎。 [0002] With the rise of smart homes, smart cameras are gradually coming into people's eyes. Especially for working people with elderly parents and children at home, installing one or more smart cameras at home to look after parents and children is very Necessary, so smart cameras came into being. Smart cameras are widely popular in the civilian market due to their small size, simple configuration, wide application environment and close function to consumers' usage habits.
[0003] 在使用智能摄像机前, 需要在用户手机客户端软件中添加智能摄像机, 现有的 在手机客户端软件中添加智能摄像机的方法主要是: 首先由用户长按智能摄像 机外部的置位按钮, 使智能摄像机处于置位状态能够接收手机客户端发送的信 息, 然后由手机客户端扫描智能摄像机的二维码, 获取智能摄像机的 UID, 并根 据获取到的智能摄像机的 UID通过短距离信息交互技术与智能摄像机进行通信来 完成智能摄像机的添加。 然而, 这种添加方式存在有以下缺陷: 当用户无意将 智能摄像机从手机客户端软件中删掉并需要再次添加智能摄像机时, 需要用户 重新对智能摄像机进行置位操作, 才能进行后面添加摄像机流程, 其操作比较 麻烦; 此外, 这种添加方式仅适用于短距离的应用范围, 无法实现远程添加摄 像机的功能。 [0003] Before using a smart camera, a smart camera needs to be added to the user's mobile client software. The existing method of adding a smart camera to the mobile client software is mainly as follows: First, the user long presses the set button outside the smart camera. The smart camera is set to receive the information sent by the mobile phone client, and then the mobile phone client scans the smart camera's two-dimensional code to obtain the UID of the smart camera, and interacts with the short-distance information according to the acquired UID of the smart camera. The technology communicates with the smart camera to complete the addition of the smart camera. However, this method of addition has the following drawbacks: When the user does not intend to delete the smart camera from the mobile client software and needs to add the smart camera again, the user needs to set the smart camera again before the camera process can be added later. The operation is troublesome; in addition, this addition method is only applicable to short-range applications, and the function of adding a camera remotely cannot be realized.
技术问题 technical problem
[0004] 本发明实施例提供一种添加摄像机的方法系统, 旨在解决上述当用户无意将智 能摄像机从手机客户端软件中删掉并需要再次添加智能摄像机时, 需要用户重 新对智能摄像机进行置位操作, 并且无法实现远程添加摄像机的功能的问题。 问题的解决方案 An embodiment of the present invention provides a method for adding a camera, which is to solve the above problem. When the user does not intend to delete the smart camera from the mobile client software and needs to add the smart camera again, the user needs to re-set the smart camera. Bit manipulation, and the problem of remotely adding camera functionality is not possible. Problem solution
技术解决方案 Technical solution
[0005] 第一方面, 本发明实施例提供了一种添加摄像机的方法, 该方法包括: [0006] 初次使用所述摄像机时, 将摄像机处于置位状态, 获取所述摄像机的 UID; [0005] In a first aspect, an embodiment of the present invention provides a method for adding a camera, where the method includes: [0006] When the camera is used for the first time, the camera is set to obtain the UID of the camera;
[0007] 通过 EZLink短距离信息交互技术向所述摄像机发送协议数据, 使所述摄像机根 据所述协议数据接入客户端所处的局域网, 其中, 所述协议数据包括所述摄像 机的 UID、 所述局域网的 wifi名称和 wifi密码; [0007] transmitting protocol data to the camera by using an EZLink short-distance information interaction technology, so that the camera accesses a local area network where the client is located according to the protocol data, where the protocol data includes a UID and a location of the camera. The wifi name and wifi password of the local area network;
[0008] 通过局域网搜索技术在所述局域网内搜索所述摄像机, 若搜索到所述摄像机, 则根据所述摄像机的 UID釆用 P2P穿透技术与所述摄像机进行数据通信, 以完成 摄像机的添加。 Searching for the camera in the local area network by using a local area network search technology, if the camera is searched, performing data communication with the camera according to the UID of the camera and using P2P penetration technology to complete the addition of the camera .
[0009] 在上述技术方案的基础上, 所述通过局域网搜索技术在所述局域网内搜索所述 摄像机, 若搜索到所述摄像机, 则根据所述摄像机的 UID采用 P2P穿透技术与所 述摄像机进行数据通信, 以完成摄像机的添加具体包括: [0009] On the basis of the foregoing technical solution, the searching for the camera in the local area network by using a local area network search technology, and if the camera is searched, adopting a P2P penetration technology and the camera according to the UID of the camera. Data communication to complete the addition of the camera specifically includes:
[0010] 通过局域网搜索技术在所述局域网内搜索所述摄像机; [0010] searching for the camera in the local area network by using a local area network search technology;
[0011] 若搜索到所述摄像机, 则跳出提示用户输入登录所述摄像机的用户名及密码的 显示界面; [0011] if the camera is searched, a display interface prompting the user to input a user name and password for logging in to the camera is displayed;
[0012] 在所述显示界面下接收用户输入的用户名及密码, 并根据所述摄像机的 UID通 过 P2P穿透技术将用户输入的用户名及密码发送至所述摄像机进行验证, 以完成 摄像机的添加。 [0012] receiving the user name and password input by the user in the display interface, and transmitting the user name and password input by the user to the camera for verification according to the UID of the camera through the P2P penetration technology, to complete the camera Add to.
[0013] 在上述技术方案的基础上, 所述通过局域网搜索技术在所述局域网内搜索所述 摄像机, 若搜索到所述摄像机, 则根据所述摄像机的 UID采用 P2P穿透技术与所 述摄像机进行数据通信, 以完成摄像机的添加之后还包括: [0013] On the basis of the foregoing technical solution, the searching for the camera in the local area network by using a local area network search technology, and if the camera is searched, adopting a P2P penetration technology and the camera according to the UID of the camera. After data communication to complete the addition of the camera, it also includes:
[0014] 当将所述摄像机从所述客户端中刪掉并需要再次添加所述摄像机吋, 则直接通 过扫描二维码获取所述摄像机的 UID, 通过所述摄像机的 UID以 P2P穿透方式与 所述摄像机进行数据通信, 以完成摄像机的添加。 [0014] When the camera is deleted from the client and the camera 需要 needs to be added again, the UID of the camera is directly obtained by scanning the two-dimensional code, and the UID of the camera is penetrated by P2P. Data communication with the camera to complete the addition of the camera.
[0015] 在上述技术方案的基础上, 所述通过局域网搜索技术在所述局域网内搜索所述 摄像机, 若搜索到所述摄像机, 则根据所述摄像机的 UID采用 P2P穿透技术与所 述摄像机进行数据通信, 以完成摄像机的添加之后还包括: [0015] On the basis of the foregoing technical solution, the searching for the camera in the local area network by using a local area network search technology, and if the camera is searched, adopting a P2P penetration technology and the camera according to the UID of the camera. After data communication to complete the addition of the camera, it also includes:
[0016] 若将所述摄像机从所述客户端中刪掉并需要再次添加所述摄像机, 则获取所述 摄像机的 DDNS或者 IP地址及端口, 通过所述摄像机的 DDNS或者 IP地址及端口 连接所述摄像机, 并在连接成功后, 利用所述用户名及密码登录所述摄像机, 完成摄像机的添加。 [0016] If the camera is deleted from the client and the camera needs to be added again, the DDNS or IP address and port of the camera are acquired, and the DDNS or IP address and port connection of the camera is used. The camera, and after the connection is successful, the user name and password are used to log in to the camera. Complete the addition of the camera.
[0017] 在上述技术方案的基础上, 所述在所述显示界面下接收用户输入的登录所述摄 像机的用户名及密码登录所述摄像机, 完成摄像机添加之后还包括: [0017] On the basis of the above technical solution, the user name and password registered in the camera input by the user are input to the camera under the display interface, and after the camera is added, the method further includes:
[0018] 若将所述摄像机从所述客户端中刪掉并需要再次添加所述摄像机, 则将所述客 户端接入所述摄像机所在的局域网; [0018] If the camera is deleted from the client and the camera needs to be added again, the client is connected to a local area network where the camera is located;
[0019] 所述客户端在所述局域网内搜索所述摄像机, 并显示搜索到与其处于同一局域 网内的所摄像机信息, 所述摄像机信息包括摄像机的 UID或者所述摄像机的 IP地 址及端口; [0019] The client searches for the camera in the local area network, and displays the camera information that is located in the same local area network, and the camera information includes the UID of the camera or the IP address and port of the camera;
[0020] 根据搜索到的摄像机的 UID通过 P2P穿透技术与所述摄像机进行数据通信, 以 完成摄像机的添加; 或者, 根据搜索到的所述摄像机的 IP地址及端口直接与所述 摄像机进行数据通信, 以完成摄像机的添加。 [0020] performing data communication with the camera through a P2P penetration technology according to the UID of the searched camera to complete the addition of the camera; or directly performing data with the camera according to the searched IP address and port of the camera. Communication to complete the addition of the camera.
[0021] 本发明实施例的另一目的在于提供一种添加摄像机的系统, 包括: [0021] Another object of the embodiments of the present invention is to provide a system for adding a camera, including:
[0022] UID获取单元, 用于初次使用所述摄像机时, 获取所述摄像机的 UID; [0022] a UID acquiring unit, configured to acquire a UID of the camera when the camera is used for the first time;
[0023] 协议数据发送单元, 用于当所述摄像机处于置位状态时, 根据所述摄像机的 UI [0023] a protocol data sending unit, configured to: according to the UI of the camera when the camera is in a set state
D通过 EZLink短距离信息交互技术向所述摄像机发送协议数据, 使所述摄像机根 据所述协议数据接入客户端所处的局域网, 其中, 所述协议数据包括所述摄像 机的 UID、 所述局域网的 wifi名称和 wifi密码; Transmitting the protocol data to the camera by using the EZLink short-distance information interaction technology, so that the camera accesses the local area network where the client is located according to the protocol data, where the protocol data includes the UID of the camera, the local area network Wifi name and wifi password;
[0024] 第一摄像机添加单元, 用于通过局域网搜索技术在所述局域网内搜索所述摄像 机, 若搜索到所述摄像机, 则根据所述摄像机的 UID采用 P2P穿透技术与所述摄 像机进行数据通信, 以完成摄像机的添加。 [0024] a first camera adding unit, configured to search for the camera in the local area network by using a local area network search technology, and if the camera is searched, use the P2P penetration technology to perform data with the camera according to the UID of the camera. Communication to complete the addition of the camera.
[0025] 在上述技术方案的基础上, 所述第一摄像机添加单元具体用于: [0025] On the basis of the foregoing technical solution, the first camera adding unit is specifically configured to:
[0026] 通过局域网搜索技术在所述局域网内搜索所述摄像机; Searching for the camera in the local area network by using a local area network search technology;
[0027] 若搜索到所述摄像机, 则跳出提示用户输入登录所述摄像机的用户名及密码的 显示界面; [0027] if the camera is searched, a display interface prompting the user to input a user name and password for logging in to the camera is displayed;
[0028] 在所述显示界面下接收用户输入的用户名及密码, 并根据所述摄像机的 UID通 过 P2P穿透技术将用户输入的用户名及密码发送至所述摄像机进行验证, 以完成 摄像机的添加。 Receiving a user name and a password input by the user in the display interface, and sending a user name and a password input by the user to the camera for verification according to the UID of the camera through a P2P penetration technology, to complete the camera. Add to.
[0029] 在上述技术方案的基础上, 还包括: [0030] 第二摄像机添加单元, 用于当将所述摄像机从所述客户端中刪掉并需要再次添 加所述摄像机时, 则直接通过扫描二维码获取所述摄像机的 UID , 通过所述摄像 机的 UID以 P2P穿透方式与所述摄像机进行数据通信, 以完成摄像机的添加。 [0029] Based on the foregoing technical solutions, the method further includes: [0030] a second camera adding unit, configured to: when the camera is deleted from the client and the camera needs to be added again, obtain the UID of the camera directly by scanning the two-dimensional code, by using the The UID of the camera communicates with the camera in P2P penetration mode to complete the addition of the camera.
[0031] 在上述技术方案的基础上, 还包括: [0031] Based on the foregoing technical solution, the method further includes:
[0032] 第三摄像机添加单元, 用于若将所述摄像机从所述客户端中刪掉并需要再次添 加所述摄像机, 则获取所述摄像机的 DDNS或者 IP地址及端口, 通过所述摄像机 的 DDNS或者 IP地址及端口连接所述摄像机, 并在连接成功后, 利用所述用户名 及密码登录所述摄像机, 完成摄像机的添加。 [0032] a third camera adding unit, configured to acquire a DDNS or an IP address and a port of the camera, if the camera is deleted from the client and need to add the camera again, by using the camera The DDNS or IP address and port are connected to the camera, and after the connection is successful, the user name and password are used to log in to the camera to complete the addition of the camera.
[0033] 在上述技术方案的基础上, 还包括第四摄像机添加单元, 用于: [0033] Based on the foregoing technical solution, a fourth camera adding unit is further included, configured to:
[0034] 若将所述摄像机从所述客户端中刪掉并需要再次添加所述摄像机, 则将所述客 户端接入所述摄像机所在的局域网; [0034] if the camera is deleted from the client and the camera needs to be added again, the client is connected to a local area network where the camera is located;
[0035] 所述客户端在所述局域网内搜索所述摄像机, 并显示搜索到与其处于同一局域 网内的所摄像机信息, 所述摄像机信息包括摄像机的 UID或者所述摄像机的 IP地 址及端口; [0035] the client searches for the camera in the local area network, and displays the camera information that is located in the same local area network, and the camera information includes the UID of the camera or the IP address and port of the camera;
[0036] 根据搜索到的摄像机的 UID通过 P2P穿透技术与所述摄像机进行数据通信, 以 完成摄像机的添加; 或者, 根据搜索到的所述摄像机的 IP地址及端口直接与所述 摄像机进行数据通信, 以完成摄像机的添加。 [0036] performing data communication with the camera through a P2P penetration technology according to the UID of the searched camera to complete the addition of the camera; or directly performing data with the camera according to the searched IP address and port of the camera. Communication to complete the addition of the camera.
发明的有益效果 Advantageous effects of the invention
有益效果 Beneficial effect
[0037] 实施本发明实施例提供的一种添加摄像机方法及系统具有以下有益效果: [0038] 本发明实施例由于在客户端和摄像机之间釆用 P2P穿透技术进行数据通信, 从 而只需在初次添加摄像机时, 对摄像机进行置位操作, 当用户无意将摄像机从 客户端中刪掉并且需要再次添加该摄像机时, 由于可以通过 P2P服务直接与摄像 机建立数据通信连接, 从而无需重新对摄像机进行置位操作, 方便了用户操作 ; 此外, 还能够使客户端通过 P2P穿透技术实现远程添加摄像机的功能。 The method and system for adding a camera provided by the embodiments of the present invention have the following beneficial effects: [0038] In the embodiment of the present invention, data communication is performed by using a P2P penetration technology between a client and a camera, so that only When the camera is added for the first time, the camera is set. When the user does not intend to delete the camera from the client and needs to add the camera again, since the data communication connection can be established directly with the camera through the P2P service, there is no need to re-pair the camera. The set operation is convenient for the user to operate; in addition, the client can also remotely add the camera function through the P2P penetration technology.
对附图的简要说明 Brief description of the drawing
附图说明 DRAWINGS
[0039] 为了更清楚地说明本发明实施例技术方案, 下面将对实施例描述中所需要使用 的附图作简单地介绍, 显而易见地, 下面描述中的附图是本发明的一些实施例 , 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据 这些附图获得其他的附图。 [0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following needs to be used in the description of the embodiments. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are incorporated in the accompanying drawings, in FIG Other drawings.
[0040] 图 1是本发明第一实施例提供的一种添加摄像机方法的示意流程图; 1 is a schematic flow chart of a method for adding a camera according to a first embodiment of the present invention;
[0041] 图 2是本发明第二实施例提供的一种添加摄像机方法的示意流程图; 2 is a schematic flow chart of a method for adding a camera according to a second embodiment of the present invention;
[0042] 图 3是本发明第三实施例提供的一种添加摄像机方法的示意流程图; 3 is a schematic flow chart of a method for adding a camera according to a third embodiment of the present invention;
[0043] 图 4是本发明第四实施例提供的一种添加摄像机方法的示意流程图; 4 is a schematic flow chart of a method for adding a camera according to a fourth embodiment of the present invention;
[0044] 图 5是本发明第一实施例提供的一种提供的一种添加摄像机系统的示意性框图 5 is a schematic block diagram of an added camera system according to a first embodiment of the present invention.
[0045] 图 6是本发明第二实施例提供的一种提供的一种添加摄像机系统的示意性框图 6 is a schematic block diagram of an added camera system according to a second embodiment of the present invention.
[0046] 图 7是本发明第三实施例提供的一种提供的一种添加摄像机系统的示意性框图 7 is a schematic block diagram of an add camera system according to a third embodiment of the present invention.
[0047] 图 8是本发明第四实施例提供的一种提供的一种添加摄像机系统的示意性框图 8 is a schematic block diagram of an add camera system according to a fourth embodiment of the present invention.
[0048] 图 9是本发明第五实施例提供的一种提供的一种添加摄像机系统的示意性框图 发明实施例 9 is a schematic block diagram of an added camera system according to a fifth embodiment of the present invention.
本发明的实施方式 Embodiments of the invention
[0049] 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实 施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前 提下所获得的所有其他实施例, 都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive work are all within the scope of the present invention.
[0050] 应当理解, 当在本说明书和所附权利要求书中使用吋, 术语"包括"和"包含"指 示所描述特征、 整体、 步骤、 操作、 元素和 /或组件的存在, 伹并不排除一个或 多个其它特征、 整体、 步骤、 操作、 元素、 组件和 /或其集合的存在或添加。 [0050] It is to be understood that the terms "comprise" and "comprising", when used in the specification and the claims Exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or collections thereof.
[0051] 还应当理解, 在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的 目的而并不意在限制本发明。 如在本发明说明书和所附权利要求书中所使用的 那样, 除非上下文清楚地指明其它情况, 否则单数形式的"一"、 "一个 "及"该"意 在包括复数形式。 The terminology used herein is for the purpose of describing particular embodiments and is not intended to limit the invention. As used in the description of the invention and the appended claims In the singular, "a", "an"
[0052] 还应当进一步理解 , 在本发明说明书和所附权利要求书中使用的术语 "和 /或" 是指相关联列出的项中的一个或多个的任何组合以及所有可能组合, 并且包括 这些组合。 [0052] It should also be further understood that the term "and/or" used in the description of the invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and These combinations are included.
[0053] 如在本说明书和所附权利要求书中所使用的那样, 术语"如果"可以依据上下文 被解释为"当...时"或"一旦"或"响应于确定"或"响应于检测到"。 类似地, 短语" 如果确定"或"如果检测到 [所描述条件或事件]"可以依据上下文被解释为意指' '一 旦确定 "或"响应于确定"或"一旦检测到 [所描述条件或事件]"或"响应于捡测到 [所 描述条件或事件]"。 [0053] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "once" or "in response to determining" or "responsive" depending on the context. detected". Similarly, the phrase "if determined" or "if detected [condition or event described]" may be interpreted as meaning "once determined" or "in response to determining" or "once detected [the condition or The event] or "response to the detected condition or event].
[0054] 参见图 1, 是本发明第一实施例提供一种添加摄像机的方法的示意流程图, 如 图 1所示, 该方法可包括以下步骤: [0054] Referring to FIG. 1, a first embodiment of the present invention provides a schematic flowchart of a method for adding a camera. As shown in FIG. 1, the method may include the following steps:
[0055] 在 S101中, 初次使用所述摄像机吋, 将摄像机处于置位状态, 获取所述摄像机 的 UID。 [0055] In S101, the camera 吋 is used for the first time, and the camera is set to acquire the UID of the camera.
[0056] 在本实施例中, 可以通过扫描摄像机机身的二维码的方式来获取摄像机的 UID [0056] In this embodiment, the UID of the camera can be obtained by scanning the two-dimensional code of the camera body.
[0057] 在 S 102中, 当所述摄像机处于置位状态时, 根据所述摄像机的 UID通过 EZLink 短距离信息交互技术向所述摄像机发送协议数据, 使所述摄像机根据所述协议 数据接入客户端所处的局域网, 其中, 所述协议数据包括所述摄像机的 UID、 所 述局域网的 wifi名称和 wifi密码。 [0057] In S102, when the camera is in a set state, transmitting protocol data to the camera according to the UID of the camera through an EZLink short-distance information interaction technology, so that the camera accesses according to the protocol data. The local area network where the client is located, wherein the protocol data includes a UID of the camera, a wifi name of the local area network, and a wifi password.
[0058] 在本实施例中, 由于是初次使用摄像机, 因此, 需要用户首先通过长按摄像机 外部的置位按钮使摄像机进入置位状态, 这样摄像机才能够接收到客户端发送 的协议数据, 当摄像机进入置位状态吋, 会通过自身的置位状态指示灯提示用 户, 例如: 摄像机进入置位状态吋, 摄像机上的置位指示灯会呈显示绿色闪烁 状态。 当用户获知摄像机进入置位状态时, 即可利用客户端根据先前获取到的 摄像机的 UID向客户端发送协议数据, 其中所述协议数据包括客户端所处局域网 的 wifi密码和 wifi名称, 并且携带有摄像机的 UID , 客户端在接收到协议数据吋 , 首先解析出协议数据中携带的 UID是否与自身的 UID相匹配, 若相匹配, 则根 据所述协议数据中的 wifi名称和 wifi密码连接网络, 接入所述客户端所处的局域 网。 [0058] In this embodiment, since the camera is used for the first time, the user is required to first press the set button outside the camera to put the camera into the set state, so that the camera can receive the protocol data sent by the client. When the camera enters the set state, it will prompt the user through its own set status indicator. For example: When the camera enters the set state, the set indicator on the camera will flash green. When the user knows that the camera enters the set state, the client can send the protocol data to the client according to the UID of the previously acquired camera, where the protocol data includes the wifi password and wifi name of the local area network where the client is located, and carries With the UID of the camera, after receiving the protocol data, the client first parses whether the UID carried in the protocol data matches its own UID. If it matches, then the root According to the wifi name and the wifi password in the protocol data, the network is connected to the local area network where the client is located.
[0059] 在 S103中, 通过局域网搜索技术在所述局域网内搜索所述摄像机, 若搜索到所 述摄像机, 则根据所述摄像机的 UID釆用 P2P穿透技术与所述摄像机进行数据通 信, 以完成摄像机的添加。 进一步的, 步骤 S203具体包括: [0059] In S103, searching for the camera in the local area network by using a local area network search technology, and if searching for the camera, performing data communication with the camera according to the UID of the camera, using P2P penetration technology, Complete the addition of the camera. Further, step S203 specifically includes:
[0060] 通过局域网搜索技术在所述局域网内搜索所述摄像机; [0060] searching for the camera in the local area network by using a local area network search technology;
[0061] 若搜索到所述摄像机, 则跳出提示用户输入登录所述摄像机的用户名及密码的 显示界面; [0061] if the camera is searched, a display interface prompting the user to input a user name and password for logging in to the camera is displayed;
[0062] 在所述显示界面下接收用户输入的用户名及密码, 并根据所述摄像机的 UID通 过 P2P穿透技术将用户输入的用户名及密码发送至所述摄像机进行验证, 以完成 摄像机的添加。 Receiving a user name and a password input by the user in the display interface, and sending a user name and a password input by the user to the camera for verification according to the UID of the camera through a P2P penetration technology, to complete the camera. Add to.
[0063] 在本实施例中, 当摄像机成功接入所述局域网时, 所述摄像机会自动向所述客 户端端返回接入成功的通知消息, 当客户端接收到客户端返回的接入成功的通 知消息时, 会在自身触摸显示屏上显示提示用户输入登录所述摄像机的用户名 及密码的显示界面, 提示用户输入用户名及密码, 以登录所述摄像机。 [0063] In this embodiment, when the camera successfully accesses the local area network, the camera automatically returns a notification message of successful access to the client, and the client receives the successful return from the client. When the notification message is displayed, a display interface prompting the user to input the user name and password for logging in to the camera is displayed on the touch display screen, and the user is prompted to input the user name and password to log in to the camera.
[0064] 进一步的, 在本实施例中, 在所述显示界面下接收用户输入的用户名及密码, 并根据所述摄像机的 UID通过 P2P穿透技术将用户输入的用户名及密码发送至所 述摄像机进行验证, 以完成摄像机的添加具体包括: [0064] Further, in this embodiment, the user name and password input by the user are received in the display interface, and the user name and password input by the user are sent to the user according to the UID of the camera through the P2P penetration technology. The verification of the camera to complete the addition of the camera specifically includes:
[0065] 在所述显示界面下接收用户输入的登录所述摄像机的用户名及密码; [0065] receiving, by the display interface, a user name and a password input by the user to log in to the camera;
[0066] 根据摄像机的 UID通过 P2P穿透技术将用户输入的用户名及密码发送至所述摄 像机, 使所述摄像机根据所述用户名及密码对用户进行身份验证; Sending a user name and password input by the user to the camera according to the UID of the camera through the P2P penetration technology, so that the camera authenticates the user according to the user name and password;
[0067] 若验证失败, 则接收所述摄像机返回的验证失败的反馈信息, 并提示用户重新 输入登录所述摄像机的用户名及密码; [0067] if the verification fails, receiving feedback information of the verification failure returned by the camera, and prompting the user to re-enter the user name and password for logging in to the camera;
[0068] 若验证通过, 则接收并显示所述摄像机返回的登录成功的提示信息, 完成摄像 机添加。 [0068] If the verification is passed, the prompt information of the successful login returned by the camera is received and displayed, and the camera addition is completed.
[0069] 在本实施例, 当用户输入的用户名及密码错误吋, 客户端会根据摄像机返回的 验证失败的信息提示用户重新输入登录所述摄像机的用户名及密码, 并重新返 回对用户进行身份验证的流程; 若验证失败次数大于预设次数, 则直接退出添 加摄像机的流程。 若用户输入的用户名及密码正确, 那么客户端即可成功登录 所述摄像机, 可以获取到所述摄像机的监控画面, 即完成了摄像机的添加。 [0069] In this embodiment, when the user name and password input by the user are incorrect, the client prompts the user to re-enter the user name and password for logging in to the camera according to the verification failure information returned by the camera, and returns to the user again. The process of authentication; if the number of failed verifications is greater than the preset number, Add the process of the camera. If the user name and password entered by the user are correct, the client can successfully log in to the camera, and the monitoring screen of the camera can be obtained, that is, the addition of the camera is completed.
[0070] 以上可以看出, 本实施例提供的一种添加摄像机的方法由于在摄像机接入客户 端所在局域网之后, 在客户端和摄像机之间釆用 P2P穿透技术进行数据通信, 从 而只需在初次添加摄像机时, 对摄像机进行置位操作, 当用户无意将摄像机从 客户端中刪掉并且需要再次添加该摄像机时, 由于可以通过 P2P服务直接与摄像 机建立数据通信连接, 从而无需重新对摄像机进行置位操作, 方便了用户操作 ; 此外, 还能够使客户端通过 P2P穿透技术实现远程添加摄像机的功能。 [0070] It can be seen that the method for adding a camera according to the embodiment provides a data communication between the client and the camera by using a P2P penetration technology after the camera accesses the local area network of the client, so that only When the camera is added for the first time, the camera is set. When the user does not intend to delete the camera from the client and needs to add the camera again, since the data communication connection can be established directly with the camera through the P2P service, there is no need to re-pair the camera. The set operation is convenient for the user to operate; in addition, the client can also remotely add the camera function through the P2P penetration technology.
[0071] 参见图 2, 是本发明第二实施例提供一种添加摄像机的方法的示意流程图, 如 图 2所示, 相对于上一实施例, 本实施例提供的一种添加摄像机的方法, 在所述 在显示界面下接收用户输入的登录所述摄像机的用户名及密码登录所述摄像机 , 完成摄像机添加之后还包括: [0071] Referring to FIG. 2, a second embodiment of the present invention provides a schematic flowchart of a method for adding a camera. As shown in FIG. 2, a method for adding a camera according to the previous embodiment is provided. And receiving, by the user, the user name and password of the camera that is input by the user, and logging in to the camera, and after the camera is added, the method further includes:
[0072] 在 S204中, 若将所述摄像机从所述客户端中刪掉并需要再次添加所述摄像机, 则直接通过扫描二维码获取所述摄像机的 UID, 通过所述摄像机的 UID以 P2P穿 透方式与所述摄像机进行数据通信, 以完成摄像机的添加。 [0072] In S204, if the camera is deleted from the client and the camera needs to be added again, the UID of the camera is directly obtained by scanning a two-dimensional code, and the UID of the camera is P2P. The penetration mode is in data communication with the camera to complete the addition of the camera.
[0073] 在本实施例中, 当需要重新在客户端上添加所述摄像机时, 无需重新对摄像机 进行置位操作, 此吋可直接通过扫描二维码的方式获取所述摄像机的 UID, 然后 根据获取到的 UID以 P2P穿透方式连接所述摄像机, 并在连接成功后与其进行数 据通信, 以完成摄像机的添加。 进一步的, 由于摄像机的二维码是可以通过拍 照的方式复制的, 因此用户即使不在摄像机所处的位置, 也可以通过扫面预先 保存的摄像机的二维码照片来获取摄像机的 UID, 然后根据获取到的 UID以 P2P 穿透方式与摄像机进行远程数据通信, 从而完成摄像机的添加。 [0073] In this embodiment, when the camera needs to be added again on the client, the camera does not need to be set again, and the UID of the camera can be obtained by scanning the two-dimensional code directly, and then The camera is connected in a P2P penetration manner according to the acquired UID, and data communication is performed after the connection is successful to complete the addition of the camera. Further, since the two-dimensional code of the camera can be copied by photographing, the user can obtain the UID of the camera by scanning the two-dimensional code of the camera saved in advance, even if the user is not at the position where the camera is located, and then according to The acquired UID performs remote data communication with the camera in a P2P penetration manner, thereby completing the addition of the camera.
[0074] 需要说明的是, 本实施例中的步骤 S201〜步骤 S203由于与图 1所示实施例中的步 骤 S101~步骤 S103完全相同, 因此, 在此不再赘述。 [0074] It should be noted that the steps S201 to S203 in the embodiment are completely the same as the steps S101 to S103 in the embodiment shown in FIG. 1, and therefore, details are not described herein.
[0075] 以上也可以看出, 本实施例提供的一种添加摄像机方法同样只需在初次添加摄 像机时, 对摄像机进行置位操作, 当用户无意将摄像机从客户端中删掉并且需 要再次添加该摄像机吋, 由于可以通过 P2P服务直接与摄像机建立数据通信连接 , 从而无需重新对摄像机进行置位操作, 方便了用户操作; 此外, 还能够使客 户端通过 P2P穿透技术实现远程添加摄像机的功能。 [0075] As can be seen from the above, the method for adding a camera provided by this embodiment also needs to set the camera when the camera is added for the first time. When the user does not intend to delete the camera from the client and needs to add it again. The camera 吋, because the P2P service can directly establish a data communication connection with the camera, thereby eliminating the need to re-set the camera, which is convenient for the user to operate; The terminal implements the function of adding a camera remotely through P2P penetration technology.
[0076] 参见图 3, 是本发明第三实施例提供一种添加摄像机的方法的示意流程图, 如 图 3所示, 相对于第一实施例, 本实施例提供的一种添加摄像机的方法, 在所述 在显示界面下接收用户输入的登录所述摄像机的用户名及密码登录所述摄像机 , 完成摄像机添加之后还包括: [0076] FIG. 3 is a schematic flowchart of a method for adding a camera according to a third embodiment of the present invention. As shown in FIG. 3, a method for adding a camera according to the first embodiment is provided. And receiving, by the user, the user name and password of the camera that is input by the user, and logging in to the camera, and after the camera is added, the method further includes:
[0077] 在 S304中, 若将所述摄像机从所述客户端中刪掉并需要再次添加所述摄像机, 则获取所述摄像机的 DDNS或者 IP地址及端口, 通过所述摄像机的 DDNS或者 IP 地址及端口连接所述摄像机, 并在连接成功后, 利用所述用户名及密码登录所 述摄像机, 完成摄像机的添加。 [0077] In S304, if the camera is deleted from the client and the camera needs to be added again, the DDNS or IP address and port of the camera are acquired, and the DDNS or IP address of the camera is obtained. And connecting the camera to the port, and after the connection is successful, the user name and password are used to log in to the camera to complete the addition of the camera.
[0078] 在本实施例中, 用户可通过计算机等 PC端来配置所述摄像机的 DDNS或者获取 所述摄像机的 IP地址及端口, 然后将所述摄像机的 DDNS或所述摄像机的 IP地址 及端口发送至客户端, 使客户端根据所述摄像机的 DDNS或者 IP地址及端口直接 与所述摄像机建立连接, 并完成摄像机的添加, 其也不需要再重新对摄像机进 行置位。 [0078] In this embodiment, the user may configure the DDNS of the camera or obtain the IP address and port of the camera through a PC such as a computer, and then the DDNS of the camera or the IP address and port of the camera. Sending to the client, the client directly establishes a connection with the camera according to the DDNS or IP address and port of the camera, and completes the addition of the camera, and it does not need to re-set the camera.
[0079] 需要说明的是, 本实施例中的步骤 S301〜步骤 S303由于与图 1所示实施例中的步 骤 S101~步骤 S103完全相同, 因此, 在此不再赘述。 [0079] It should be noted that the steps S301 to S303 in this embodiment are completely the same as the steps S101 to S103 in the embodiment shown in FIG. 1, and therefore, details are not described herein.
[0080] 以上也可以看出, 本实施例提供的一种添加摄像机方法同样只需在初次添加摄 像机吋, 对摄像机进行置位操作, 当用户无意将摄像机从客户端中刪掉并且需 要再次添加该摄像机时, 由于可以通过所述摄像机的 DDNS或所述摄像机的 IP地 址及端口直接与摄像机建立数据通信连接, 从而无需重新对摄像机进行置位操 作, 方便了用户操作。 [0080] As can be seen from the above, the method for adding a camera provided by this embodiment also needs to set the camera only after the camera is added for the first time. When the user does not intend to delete the camera from the client and needs to add it again. In this camera, since the data communication connection can be directly established with the camera through the DDNS of the camera or the IP address and port of the camera, it is not necessary to re-set the camera, which is convenient for the user to operate.
[0081] 参见图 4, 是本发明第三实施例提供一种添加摄像机的方法的示意流程图, 如 图 4所示, 相对于第一实施例, 本实施例提供的一种添加摄像机的方法, 在所述 在显示界面下接收用户输入的登录所述摄像机的用户名及密码登录所述摄像机 , 完成摄像机添加之后还包括: [0081] FIG. 4 is a schematic flowchart of a method for adding a camera according to a third embodiment of the present invention. As shown in FIG. 4, a method for adding a camera according to the first embodiment is provided. And receiving, by the user, the user name and password of the camera that is input by the user, and logging in to the camera, and after the camera is added, the method further includes:
[0082] 在 S404中, 若将所述摄像机从所述客户端中刪掉并需要再次添加所述摄像机, 则将所述客户端接入所述摄像机所在的局域网; [0082] In S404, if the camera is deleted from the client and the camera needs to be added again, the client is connected to a local area network where the camera is located;
[0083] 在 S405中, 所述客户端在所述局域网内搜索所述摄像机, 并显示搜索到与其处 于同一局域网内的所摄像机信息, 所述摄像机信息至包括摄像机的 UID或者摄像 机的 IP地址及端口; [0083] In S405, the client searches for the camera in the local area network, and displays the search to the same place. The camera information in the same local area network, the camera information to the UID including the camera or the IP address and port of the camera;
[0084] 在 S406中, 根据搜索到的摄像机的 UID通过 P2P穿透技术与所述摄像机进行数 据通信, 以完成摄像机的添加; 或者, 根据搜索到的所述摄像机的 iPitttt及端口 直接与所述摄像机进行数据通信, 以完成摄像机的添加。 [0084] in S406, performing data communication with the camera through a P2P penetration technology according to the UID of the searched camera to complete the addition of the camera; or, according to the searched iPitttt and port of the camera, directly The camera performs data communication to complete the addition of the camera.
[0085] 在本实施例中, 由于客户端初次添加摄像机和再次添加摄像机的过程中, 连接 的网络可能发生了变化, 因此, 当客户端需要再次添加所述摄像机时, 首先要 将其网络设置修改为接入所述摄像机所处的局域网, 然后再在该局域网中搜索 所述摄像机。 另外, 由于客户端与摄像机之间是采用 P2P穿透方式进行的通信, 因此在搜索到摄像机后, 可以获取到所述摄像机的 UID或者 IP地址及端口, 然后 根据所述摄像机的 UID通过 P2P穿透技术与所述摄像机建立数据通信连接或者直 接通过所述摄像机的 IP地址及端口与所述摄像机建立数据通信连接, 因此无需再 次对摄像机进行置位状态。 [0085] In this embodiment, the connected network may change during the process of the client adding the camera for the first time and adding the camera again. Therefore, when the client needs to add the camera again, the network setting is first set. Modify to access the local area network where the camera is located, and then search for the camera in the local area network. In addition, since the communication between the client and the camera is performed by using the P2P penetration mode, after searching for the camera, the UID or IP address and port of the camera can be obtained, and then the P2P is worn according to the UID of the camera. The technology establishes a data communication connection with the camera or establishes a data communication connection with the camera directly through the IP address and port of the camera, so that it is not necessary to set the camera again.
[0086] 此外, 需要说明的是, 本实施例中的步骤 S401〜步骤 S403由于与图 1所示实施例 中的步骤 S 101〜步骤 S 103完全相同, 因此, 在此不再赘述。 [0086] In addition, it should be noted that the steps S401 to S403 in this embodiment are completely the same as the steps S101 to S103 in the embodiment shown in FIG. 1, and therefore, details are not described herein again.
[0087] 以上也可以看出, 本实施例提供的一种添加摄像机方法同样只需在初次添加摄 像机时, 对摄像机进行置位操作, 当用户无意将摄像机从客户端中删掉并且需 要再次添加该摄像机吋, 由于可以根据所述摄像机的 UID通过 P2P穿透技术与所 述摄像机建立数据通信连接或者直接通过所述摄像机的 IP地址及端口与所述摄像 机建立数据通信连接, 因此无需再次对摄像机进行置位状态, 方便了用户操作 [0087] As can be seen from the above, the method for adding a camera provided by this embodiment also needs to set the camera when the camera is added for the first time. When the user does not intend to delete the camera from the client and needs to add it again. The camera 吋, since the data communication connection can be established with the camera through the P2P penetration technology according to the UID of the camera or the data communication connection is established directly with the camera through the IP address and port of the camera, Set state, convenient for user operation
[0088] 图 5是本发明第一实施例提供的一种提供的一种添加摄像机系统的示意性框图 , 该系统用于运行图 1所示实施例提供的方法。 为了便于说明仅仅示出了与本实 施例相关的部分。 FIG. 5 is a schematic block diagram of an add camera system according to a first embodiment of the present invention, which is used to run the method provided in the embodiment shown in FIG. 1. Only the parts related to the embodiment are shown for convenience of explanation.
[0089] 参见图 5所示, 本实施例提供的一种添加摄像机的系统, 包括: [0089] Referring to FIG. 5, a system for adding a camera provided by this embodiment includes:
[0090] 本发明实施例的另一目的在于提供一种添加摄像机的系统, 包括: [0090] Another object of the embodiments of the present invention is to provide a system for adding a camera, including:
[0091] UID获取单元 1, 用于初次使用所述摄像机吋, 获取所述摄像机的 UID; [0091] The UID acquiring unit 1 is configured to acquire the UID of the camera for the first time using the camera 吋;
[0092] 协议数据发送单元 2, 用于当所述摄像机处于置位状态吋, 根据所述摄像机的 U ID通过 EZLink短距离信息交互技术向所述摄像机发送协议数据, 使所述摄像机 根据所述协议数据接入客户端所处的局域网, 其中, 所述协议数据包括所述摄 像机的 UID、 所述局域网的 wifi名称和 wifi密码; [0092] a protocol data sending unit 2, configured to: when the camera is in a set state, according to the U of the camera The ID data is sent to the camera by the EZLink short-distance information interaction technology, so that the camera accesses the local area network where the client is located according to the protocol data, where the protocol data includes the UID of the camera, the local area network. Wifi name and wifi password;
[0093] 第一摄像机添加单元 3, 用于通过局域网搜索技术在所述局域网内搜索所述摄 像机, 若搜索到所述摄像机, 则根据所述摄像机的 UID釆用 P2P穿透技术与所述 摄像机进行数据通信, 以完成摄像机的添加。 [0093] a first camera adding unit 3, configured to search for the camera in the local area network by using a local area network search technology, and if the camera is searched, use a P2P penetration technology and the camera according to the UID of the camera Data communication is performed to complete the addition of the camera.
[0094] 可选的, 所述第一摄像机添加单元 3具体用于: [0094] Optionally, the first camera adding unit 3 is specifically configured to:
[0095] 通过局域网搜索技术在所述局域网内搜索所述摄像机; Searching for the camera within the local area network by a local area network search technique;
[0096] 若搜索到所述摄像机, 则跳出提示用户输入登录所述摄像机的用户名及密码的 显示界面; [0096] if the camera is searched, a display interface prompting the user to input a user name and password for logging in to the camera is displayed;
[0097] 在所述显示界面下接收用户输入的用户名及密码, 并根据所述摄像机的 UID通 过 P2P穿透技术将用户输入的用户名及密码发送至所述摄像机进行验证, 以完成 摄像机的添加。 Receiving a user name and a password input by the user in the display interface, and transmitting a user name and a password input by the user to the camera for verification according to the UID of the camera through a P2P penetration technology, to complete the camera. Add to.
[0098] 可选的, 参见图 6, 是本发明第二实施例提供的一种添加摄像机系统的示意性 框图, 该系统用于运行图 2所示实施例提供的方法, 参见图 6所示, 相对于上一 实施例, 本实施例中, 所述系统还包括: [0098] Optionally, FIG. 6 is a schematic block diagram of an add camera system according to a second embodiment of the present invention, where the system is used to run the method provided in the embodiment shown in FIG. 2, as shown in FIG. With respect to the previous embodiment, in this embodiment, the system further includes:
[0099] 第二摄像机添加单元 4, 用于当将所述摄像机从所述客户端中删掉并需要再次 添加所述摄像机吋, 则直接通过扫描二维码获取所述摄像机的 UID, 通过所述摄 像机的 UID以 P2P穿透方式与所述摄像机进行数据通信, 以完成摄像机的添加。 [0099] a second camera adding unit 4, configured to: when the camera is deleted from the client and need to add the camera 再次 again, directly acquire a UID of the camera by scanning a two-dimensional code, The UID of the camera communicates with the camera in a P2P penetration manner to complete the addition of the camera.
[0100] 可选的, 参见图 7, 是本发明第二实施例提供的一种添加摄像机系统的示意性 框图, 该系统用于运行图 3所示实施例提供的方法, 参见图 7所示, 相对于上一 实施例, 本实施例中, 所述系统还包括: [0100] Optionally, FIG. 7 is a schematic block diagram of an add camera system according to a second embodiment of the present invention, where the system is used to run the method provided in the embodiment shown in FIG. 3, as shown in FIG. With respect to the previous embodiment, in this embodiment, the system further includes:
[0101] 第三摄像机添加单元 5, 用于若将所述摄像机从所述客户端中删掉并需要再次 添加所述摄像机, 则获取所述摄像机的 DDNS或者 IP地址及端口, 通过所述摄像 机的 DDNS或者 IP地址连接所述摄像机, 并在连接成功后, 利用所述用户名及密 码登录所述摄像机, 完成摄像机的添加。 [0101] a third camera adding unit 5, configured to acquire a DDNS or an IP address and a port of the camera by deleting the camera from the client and adding the camera again, by using the camera The DDNS or IP address is connected to the camera, and after the connection is successful, the user name and password are used to log in to the camera to complete the addition of the camera.
[0102] 可选的, 参见图 8, 是本发明第三实施例提供的一种添加摄像机系统的示意性 框图, 该系统用于运行图 4所示实施例提供的方法, 参见图 8所示, 相对于上一 实施例, 本实施例中, 所述系统还包括第四摄像机添加单元 6 , 用于: [0102] Optionally, referring to FIG. 8, is a schematic block diagram of an add camera system according to a third embodiment of the present invention, where the system is used to run the method provided in the embodiment shown in FIG. Relative to the previous one In this embodiment, the system further includes a fourth camera adding unit 6 for:
[0103] 若将所述摄像机从所述客户端中刪掉并需要再次添加所述摄像机, 则将所述客 户端接入所述摄像机所在的局域网; [0103] If the camera is deleted from the client and the camera needs to be added again, the client is connected to a local area network where the camera is located;
[0104] 所述客户端在所述局域网内搜索所述摄像机, 并显示搜索到与其处于同一局域 网内的所摄像机信息, 所述摄像机信息包括摄像机的 UID或者所述摄像机的 IP地 址及端口; [0104] The client searches for the camera in the local area network, and displays the camera information that is located in the same local area network as the camera. The camera information includes the UID of the camera or the IP address and port of the camera;
[0105] 根据搜索到的摄像机的 UID通过 P2P穿透技术与所述摄像机进行数据通信, 以 完成摄像机的添加; 或者, 根据搜索到的所述摄像机的 IP地址及端口直接与所述 摄像机进行数据通信, 以完成摄像机的添加。 [0105] performing data communication with the camera through a P2P penetration technology according to the UID of the searched camera to complete the addition of the camera; or directly performing data with the camera according to the searched IP address and port of the camera. Communication to complete the addition of the camera.
[0106] 需要说明的是, 本发明实施例提供的上述终端中各个单元, 由于与本发明图方 法实施例基于同一构思, 其带来的技术效果与本发明方法实施例相同, 具体内 容可参见本发明方法实施例中的叙述, 此处不再赘述。 [0106] It is to be noted that, in the foregoing embodiments of the present invention, the embodiments of the present invention are based on the same concept as the embodiment of the present invention, and the technical effects thereof are the same as the method embodiments of the present invention. The description in the embodiment of the method of the present invention is not described herein again.
[0107] 因此, 可以看出本发明实施例提供的添加摄像机的系统同样只需在初次添加摄 像机时, 对摄像机进行置位操作, 当用户无意将摄像机从客户端中刪掉并且需 要再次添加该摄像机时, 无需重新对摄像机进行置位操作, 方便了用户操作; 此外, 还能够使客户端实现远程添加摄像机的功能。 [0107] Therefore, it can be seen that the system for adding a camera provided by the embodiment of the present invention only needs to set the camera when the camera is added for the first time, when the user does not intend to delete the camera from the client and needs to add the camera again. When the camera is used, it is not necessary to set the camera again, which is convenient for the user to operate. In addition, the client can also realize the function of adding the camera remotely.
[0108] 参见图 9 , 是本发明第五实施例提供的一种添加摄像机的系统的示意框图, 该 系统用于运行本发明图 1~图4所示实施例提供的方法。 为了便于说明, 仅仅示出 了与本实施例相关的部分。 9 is a schematic block diagram of a system for adding a camera according to a fifth embodiment of the present invention, which is used to operate the method provided by the embodiment shown in FIG. 1 to FIG. 4 of the present invention. For the convenience of explanation, only the parts related to the present embodiment are shown.
[0109] 参见图 9所示, 本实施例提供的一种添加摄像机的系统, 包括: [0109] Referring to FIG. 9, a system for adding a camera according to this embodiment includes:
[0110] 处理器 910 (processor) , 通信接口 920 (Communications [0110] processor 910 (processor), communication interface 920 (Communications
Interface) , 存储器 930 (memory) , 总线 940。 Interface), memory 930 (memory), bus 940.
[0111] 处理器 910, 通信接口 920, 存储器 930通过总线 940完成相互间的通信。 [0111] The processor 910, the communication interface 920, and the memory 930 complete communication with each other through the bus 940.
[0112] 通信接口 920, 用于与电缆调制解调器通信。 [0112] The communication interface 920 is configured to communicate with a cable modem.
[0113] 处理器 910, 用于执行程序 931。 [0113] The processor 910 is configured to execute the program 931.
[0114] 具体地, 程序 931可以包括程序代码, 所述程序代码包括计算机操作指令。 [0114] Specifically, the program 931 can include program code, the program code including computer operating instructions.
[0115] 处理器 910可能是一个中央处理器 CPU , 或者是特定集成电路 ASIC (Applicatio n Specific Integrated Circuit) , 或者是被配置成实施本发明实施例的一个或多个 集成电路。 [0115] The processor 910 may be a central processing unit CPU, or an ASIC (Applicatio n Specific Integrated Circuit), or one or more configured to implement the embodiments of the present invention. Integrated circuit.
[0116] 存储器 930, 用于存放程序 931。 存储器 930可能包含高速 RAM存储器, 也可能 还包括非易失性存储器 (non-volatile memory) , 例如至少一个磁盘存储器。 程 序 931具体包括: [0116] The memory 930 is configured to store the program 931. Memory 930 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory. The program 931 specifically includes:
[0117] UID获取单元 1, 用于初次使用所述摄像机时, 获取所述摄像机的 UID; [0117] The UID acquiring unit 1 is configured to acquire the UID of the camera when the camera is used for the first time;
[0118] 协议数据发送单元 2, 用于当所述摄像机处于置位状态吋, 根据所述摄像机的 U [0118] a protocol data sending unit 2, configured to: when the camera is in a set state, according to the U of the camera
ID通过 EZLink短距离信息交互技术向所述摄像机发送协议数据, 使所述摄像机 根据所述协议数据接入客户端所处的局域网, 其中, 所述协议数据包括所述摄 像机的 UID、 所述局域网的 wifi名称和 wifi密码; The ID data is sent to the camera by the EZLink short-distance information interaction technology, so that the camera accesses the local area network where the client is located according to the protocol data, where the protocol data includes the UID of the camera, the local area network. Wifi name and wifi password;
[0119] 第一摄像机添加单元 3, 用于通过局域网搜索技术在所述局域网内搜索所述摄 像机, 若搜索到所述摄像机, 则根据所述摄像机的 UID釆用 P2P穿透技术与所述 摄像机进行数据通信, 以完成摄像机的添加。 [0119] a first camera adding unit 3, configured to search for the camera in the local area network by using a local area network search technology, and if the camera is searched, use a P2P penetration technology and the camera according to the UID of the camera Data communication is performed to complete the addition of the camera.
[0120] 可选的, 所述第一摄像机添加单元 3具体用于: [0120] Optionally, the first camera adding unit 3 is specifically configured to:
[0121] 通过局域网搜索技术在所述局域网内搜索所述摄像机; Searching for the camera within the local area network by a local area network search technique;
[0122] 若搜索到所述摄像机, 则跳出提示用户输入登录所述摄像机的用户名及密码的 显示界面; [0122] if the camera is searched, a display interface prompting the user to input a user name and password for logging in to the camera is displayed;
[0123] 在所述显示界面下接收用户输入的用户名及密码, 并根据所述摄像机的 UID通 过 P2P穿透技术将用户输入的用户名及密码发送至所述摄像机进行验证, 以完成 摄像机的添加。 [0123] receiving the user name and password input by the user in the display interface, and transmitting the user name and password input by the user to the camera for verification according to the UID of the camera through the P2P penetration technology, to complete the camera. Add to.
[0124] 可选的, 所述程序 931还包括: [0124] Optionally, the program 931 further includes:
[0125] 第二摄像机添加单元 4, 用于当将所述摄像机从所述客户端中删掉并需要再次 添加所述摄像机时, 则直接通过扫描二维码获取所述摄像机的 UID, 通过所述摄 像机的 UID以 P2P穿透方式与所述摄像机进行数据通信, 以完成摄像机的添加。 [0125] a second camera adding unit 4, configured to: when the camera is deleted from the client and the camera needs to be added again, obtain the UID of the camera directly by scanning the two-dimensional code, The UID of the camera communicates with the camera in a P2P penetration manner to complete the addition of the camera.
[0126] 可选的, 所述程序 931还包括: [0126] Optionally, the program 931 further includes:
[0127] 第三摄像机添加单元 5, 用于若将所述摄像机从所述客户端中删掉并需要再次 添加所述摄像机, 则获取所述摄像机的 DDNS或者 IP地址及端口, 通过所述摄像 机的 DDNS或者 IP地址及端口连接所述摄像机, 并在连接成功后, 利用所述用户 名及密码登录所述摄像机, 完成摄像机的添加。 [0128] 可选的, 所述程序 931还包括第四摄像机添加单元 6 , 用于: [0127] a third camera adding unit 5, configured to acquire a DDNS or an IP address and a port of the camera by deleting the camera from the client and adding the camera again, by using the camera The DDNS or IP address and port are connected to the camera, and after the connection is successful, the user name and password are used to log in to the camera to complete the addition of the camera. [0128] Optionally, the program 931 further includes a fourth camera adding unit 6 configured to:
[0129] 若将所述摄像机从所述客户端中刪掉并需要再次添加所述摄像机, 则将所述客 户端接入所述摄像机所在的局域网; [0129] If the camera is deleted from the client and the camera needs to be added again, the client is connected to a local area network where the camera is located;
[0130] 所述客户端在所述局域网内搜索所述摄像机, 并显示搜索到与其处于同一局域 网内的所摄像机信息, 所述摄像机信息包括摄像机的 UID或者所述摄像机的 IP地 址及端口; [0130] The client searches for the camera in the local area network, and displays the camera information that is located in the same local area network as the camera. The camera information includes the UID of the camera or the IP address and port of the camera.
[0131] 根据搜索到的摄像机的 UID通过 P2P穿透技术与所述摄像机进行数据通信, 以 完成摄像机的添加; 或者, 根据搜索到的所述摄像机的 IP地址及端口直接与所述 摄像机进行数据通信, 以完成摄像机的添加。 [0131] performing data communication with the camera through a P2P penetration technology according to the UID of the searched camera to complete the addition of the camera; or directly performing data with the camera according to the searched IP address and port of the camera. Communication to complete the addition of the camera.
[0132] 所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的终 端中单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再 赘述。 It will be apparent to those skilled in the art that, for the convenience and brevity of the description, the specific working process of the unit in the terminal described above may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
[0133] 在本申请所提供的几个实施例中, 应该理解到, 所揭露的终端和方法可以通过 其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所 述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式 , 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征可以 忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通信 连接可以是通过一些通信接口 920, 装置或单元的间接耦合或通信连接, 可以是 电性, 机械或其它的形式。 [0133] In the several embodiments provided by the present application, it should be understood that the disclosed terminal and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. Alternatively, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface 920, device or unit, and may be in electrical, mechanical or other form.
[0134] 所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络模块上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。 [0134] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple networks. On the module. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
[0135] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理模块中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个模块中。 [0135] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
[0136] 本发明实施例方法中的步骤可以根据实际需要进行顺序调整、 合并和刪减。 [0136] The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
[0137] 本发明实施例终端中的单元可以根据实际需要进行合并、 划分和删减。 [0137] The units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
[0138] 所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时, 可 以存储在一个终端可读取存储介质中。 基于这样的理解, 本发明的技术方案本 质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品 的形式体现出来, 该软件产品存储在一个存储介质中, 包括若干指令用以使得 一台终端 (可以是手机、 IPAD等) 执行本发明各个实施例所述方法的全部或部 分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 (ROM , Readonly Memory) 、 随机存取存储器 (RAM , Random Access Memory) 、 磁碟或 者光盘等各种可以存储程序代码的介质。 [0138] If the function is implemented in the form of a software function module and is sold or used as a stand-alone product, To be stored in a terminal readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential to the prior art or part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including several The instructions are for causing a terminal (which may be a cell phone, IPAD, etc.) to perform all or part of the steps of the method of the various embodiments of the present invention. The foregoing storage medium includes: a medium that can store program codes, such as a USB flash drive, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0139] 所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的系 统和单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再 赘述。 [0139] It will be apparent to those skilled in the art that, for the convenience and brevity of the description, the specific working process of the system and the unit described above may be referred to the corresponding process in the foregoing method embodiments, and details are not described herein.
[0140] 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到各种 等效的修改或替换, 这些修改或替换都应涵盖在本发明的保护范围之内。 因此 , 本发明的保护范围应以权利要求的保护范围为准。 The above description is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of various kinds within the technical scope disclosed by the present invention. Equivalent modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2016/096242 WO2018035678A1 (en) | 2016-08-22 | 2016-08-22 | Method and system for adding camera |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2016/096242 WO2018035678A1 (en) | 2016-08-22 | 2016-08-22 | Method and system for adding camera |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018035678A1 true WO2018035678A1 (en) | 2018-03-01 |
Family
ID=61245990
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/096242 Ceased WO2018035678A1 (en) | 2016-08-22 | 2016-08-22 | Method and system for adding camera |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2018035678A1 (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2010076597A1 (en) * | 2008-12-30 | 2010-07-08 | Beng Kiok Anthony Koh | Integrated point of sale payment terminal |
| CN103354595A (en) * | 2013-07-12 | 2013-10-16 | 何建亿 | P2P (Point to Point) network camera system realizing zero configuration for users |
| CN103517036A (en) * | 2012-06-29 | 2014-01-15 | 上海益网数码科技有限公司 | P2P video security and protection monitoring platform of 3G Internet of things |
| CN204633873U (en) * | 2014-12-31 | 2015-09-09 | 王纲 | A kind of intelligent domestic system |
| CN104967762A (en) * | 2014-07-22 | 2015-10-07 | 上海万沣信息技术有限公司 | Configuration method for wireless Internet camera and configuration system thereof |
| CN205304999U (en) * | 2015-12-31 | 2016-06-08 | 东莞市精汇发电子有限公司 | WIFI-based near-distance baby video monitoring system |
-
2016
- 2016-08-22 WO PCT/CN2016/096242 patent/WO2018035678A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2010076597A1 (en) * | 2008-12-30 | 2010-07-08 | Beng Kiok Anthony Koh | Integrated point of sale payment terminal |
| CN103517036A (en) * | 2012-06-29 | 2014-01-15 | 上海益网数码科技有限公司 | P2P video security and protection monitoring platform of 3G Internet of things |
| CN103354595A (en) * | 2013-07-12 | 2013-10-16 | 何建亿 | P2P (Point to Point) network camera system realizing zero configuration for users |
| CN104967762A (en) * | 2014-07-22 | 2015-10-07 | 上海万沣信息技术有限公司 | Configuration method for wireless Internet camera and configuration system thereof |
| CN204633873U (en) * | 2014-12-31 | 2015-09-09 | 王纲 | A kind of intelligent domestic system |
| CN205304999U (en) * | 2015-12-31 | 2016-06-08 | 东莞市精汇发电子有限公司 | WIFI-based near-distance baby video monitoring system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI604739B (en) | Configuring secure wireless networks | |
| US9264901B2 (en) | Method, apparatus, and system for establishing data connection | |
| KR101851147B1 (en) | Methods, apparatuses, program and recording medium for binding with device | |
| CN110430557B (en) | Method, device and system for accessing equipment to network, electronic equipment and storage medium | |
| RU2636677C2 (en) | Method and appliance for device binding | |
| US9615195B2 (en) | Media file sharing method and system | |
| JP5473471B2 (en) | COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND ITS CONTROL METHOD | |
| CN104378145A (en) | Method and system for pairing bluetooth devices | |
| US20150373538A1 (en) | Configuring Secure Wireless Networks | |
| WO2018076604A1 (en) | Bluetooth pairing method and terminal device | |
| CN103414740B (en) | A kind of private cloud account configuration method and device | |
| WO2015196472A1 (en) | Method, terminal, client, smart card and system for accessing wireless network | |
| WO2015165350A1 (en) | Method, device and system of switching smart television mobile end and obtaining television end information | |
| US7870305B2 (en) | Proxy association for devices | |
| WO2018166102A1 (en) | Method and device for wireless connection of multiple devices | |
| KR20170126388A (en) | Method, device and system for executing business process | |
| CN105554845B (en) | An access method, router and terminal | |
| WO2014086222A1 (en) | Method and apparatus for setting video call parameters and sending capability parameters | |
| TW201717093A (en) | Method and device for accessing network | |
| TW201906484A (en) | Communication method and device | |
| CN107113281A (en) | Content shared method, terminal, server and system | |
| CN104536299A (en) | Household appliance starting method, device and system and central control equipment | |
| CN105634882B (en) | Method, apparatus and system for sharing network access equipment | |
| WO2018035678A1 (en) | Method and system for adding camera | |
| WO2018196503A1 (en) | Method for processing authentication information, terminal, and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16913702 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16913702 Country of ref document: EP Kind code of ref document: A1 |