Wired NVR and IPC suit binding code matching method

By generating a globally unique set of flags for NVR and IPC devices, and presetting the UID and default IP addresses of the IPC devices in the NVR device, the fast and accurate binding of NVR and IPC in the wired network environment is achieved, solving the problems of cumbersome and inefficient binding operations in the existing technology, and improving network efficiency and stability.

CN119629213AActive Publication Date: 2025-03-14ZHUHAI GOTECH INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202411674272.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-03-14
Estimated Expiration
2044-11-21

AI Technical Summary

Technical Problem

The prior art has cumbersome binding operations between NVR and IPC in wired network environments, low efficiency, and cannot accurately specify the correspondence relationship, especially in multiple NVR scenarios where IPCs are added by multiple NVRs.

Method used

Automatic search and binding are achieved by generating a globally unique set flag TID for each pair of NVR and IPC devices, and presetting the unique identifier UID and default IP address of the IPC device in the NVR device. When the NVR device connects to the IPC, if the connection fails, it searches the corresponding IPC device in the LAN through the TID/UID combination, updates the IP address and tries again until the connection is successful.

Benefits of technology

It realizes fast and accurate binding between NVR and IPC, simplifies networking operations, improves efficiency, and can use devices stably and reliably in any scenario, and dynamically adapt to changes in the network environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629213A_ABST
    Figure CN119629213A_ABST
Patent Text Reader

Abstract

The invention provides a wired NVR (Network Video Recorder) and IPC (Internet Protocol Code) suit binding and code matching method, which comprises the following steps: when NVR and IPC equipment leave a factory for production, generating a globally unique suit mark TID for each pair of equipment; presetting a unique identifier UID of each IPC device and a default IP address in each channel of the NVR device; when the NVR and the IPC equipment are started and accessed to a network, the NVR equipment tries to be connected with the IPC equipment in the configured channel; until all the channels are successfully connected to the corresponding IPC equipment; in the code matching process, the NVR device broadcasts a code matching message in a wired local area network, the code matching message takes a TID as a key field, the IPC device receiving the code matching message stores TID information and returns TID / UID and other IP network information of the IPC device in response to the message, and therefore pairing and binding of the devices are completed through matching of the TID / UID. The invention aims to solve the problems that the binding operation of the NVR and the IPC is tedious, the efficiency is low and the corresponding relation cannot be accurately specified in a traditional wired network networking mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of security monitoring, and in particular to a method for binding and pairing wired NVR and IPC sets. Background Art

[0002] Network video recorders (NVRs) and network cameras (IPCs) are two core networking products commonly used for security monitoring. IPCs are mainly used to convert real-time optical sound information into audio and video data, and transmit them to the back-end recorders for video storage, so as to facilitate real-time viewing and subsequent playback of videos to investigate past events. Generally, there are multiple IPCs connected to one or more NVRs. The networking is relatively complex and requires more professional knowledge. At present, the usual practice in the case of wired network networking is to connect the physical network of the device, and then use a computer or NVR to assign and modify IP addresses to each device, and then search the network information of the IPC in the NVR to gradually add it to the NVR. The above operation is relatively cumbersome, requiring a computer or NVR display to operate, and requires familiarity with the product, which is time-consuming and laborious. At present, in the industry, there are similar solutions in the case of wireless networks. The wireless package uses the hotspot of the wireless NVR as an anchor point. When the wireless NVR and wireless IPC are powered on, the wireless IPC directly connects to the hotspot of the wireless NVR, thereby automatically building a complete set of NVR / IPC systems in the wireless LAN. Under wired network conditions, there is still a solution in which NVR automatically searches for IPC and automatically adds it. However, in the case of multiple NVRs, there is a situation where IPC is added by multiple NVRs, and the corresponding relationship cannot be accurately specified.

[0003] It can be seen that the prior art has the following disadvantages:

[0004] (1) Manual operation of networking can be done accurately, but it requires users to be familiar with the business and has low efficiency. In some scenarios, it cannot even be completed (when there is no NVR screen or computer).

[0005] (2) Automatic adding technology is mainly used in simple scene environments, with a single NVR and all IPCs added to the NVR. Since it is a wired LAN, when there are a large number of devices (including NVRs and IPCs) in the LAN, it is impossible to accurately handle the networking.

[0006] Therefore, there is an urgent need for a simpler, more efficient and accurate method for binding and pairing NVR and IPC packages. Summary of the invention

[0007] In order to solve the deficiencies in the prior art, the purpose of the present invention is to provide a wired NVR and IPC set binding and pairing method, which aims to solve the problems of cumbersome and inefficient NVR and IPC binding operations and inability to accurately specify the corresponding relationship under the traditional wired network networking mode.

[0008] The present invention achieves the above-mentioned purpose through the following technical solutions:

[0009] A method for binding and pairing a wired NVR and an IPC set includes the following steps:

[0010] When NVR and IPC devices are manufactured, a globally unique set identifier TID is generated for each pair of devices;

[0011] Pre-set the unique identifier UID and default IP address of each IPC device to each channel of the NVR device;

[0012] When both the NVR and IPC devices are powered on and connected to the network, the NVR device attempts to connect to the IPC device in the configured channel. If the connection is successful, it indicates that the IP address of the IPC device is consistent with that configured in the NVR device, and the binding is completed. If the NVR device cannot connect to the IPC device of a certain channel, the NVR device searches for the corresponding IPC device in the LAN based on the TID / UID combination, and updates the IP address of the IPC device in the channel to the actual IP address searched, and then tries to connect again until all channels are successfully connected to the corresponding IPC devices.

[0013] Among them, during the pairing process, the NVR device broadcasts a pairing message in the wired LAN. The pairing message uses TID as the key field. The IPC device that receives the pairing message saves the TID information and responds to the message to return its own TID / UID and other IP network information, thereby completing the pairing and binding of the devices through TID / UID matching.

[0014] According to a wired NVR and IPC package binding and pairing method provided by the present invention, when configuring a globally unique package identifier TID, the method includes:

[0015] While generating the UID of each IPC / NVR device, a globally unique set identifier TID is generated for the IPC and NVR devices that constitute the set;

[0016] When setting the UID to the IPC / NVR device through the network protocol, add the set identifier field TID in the communication message, and send the TID and the UID field together to the corresponding IPC / NVR device;

[0017] After receiving the message containing UID and TID, the IPC / NVR device parses and saves these fields for use in the subsequent networking, binding or pairing process.

[0018] According to a wired NVR and IPC set binding and pairing method provided by the present invention, for each IPC device in the set, its globally unique set mark TID, unique identifier UID and default IP address are used, and TID is used as a keyword to save the TID, UID and IP address information of each IPC device in the PC software. The saving mechanism allows the software to store and manage the information of multiple IPCs, and the information of each IPC device is distinguished and associated with other IPC devices in the set through its unique TID.

[0019] According to a wired NVR and IPC set binding and pairing method provided by the present invention, the unique identifier UID and the default IP address of each IPC device are pre-set to each channel of the NVR device, including:

[0020] After completing the configuration of the NVR device, use the saved TID information to query and retrieve the main information of all IPC devices that are compatible with the specific configured NVR;

[0021] According to the pre-designed communication protocol, the information of these IPC devices is sent to the corresponding NVR devices;

[0022] After receiving the information of the IPC device, the NVR device stores it and, based on the received IPC information, allocates these IPCs to each channel information inside it one by one, thereby realizing the pre-setting of the IPC device information to the NVR channel.

[0023] According to a wired NVR and IPC set binding and pairing method provided by the present invention, when the NVR device attempts to connect and access the IPC devices in each configured channel, the following steps are performed:

[0024] The NVR device initiates a TCP connection attempt with the IP address of the currently configured channel IPC. If the TCP connection is successful, it continues to perform the subsequent authentication process, which uses a private protocol and carries information such as the user name, password, and TID to ensure that the IPC will not be pulled by an NVR with a different TID;

[0025] After successful authentication, the NVR device obtains the configuration information of the IPC device through a private protocol, and then initiates the real-time streaming protocol streaming process;

[0026] If the RTSP stream pulling is successful, it is considered that the channel IPC connection and access are successful; if any step in the TCP connection, authentication, configuration acquisition or stream pulling process is unsuccessful, it is judged that the connection access has failed.

[0027] According to a wired NVR and IPC set binding and pairing method provided by the present invention, in the case of connection access failure, the NVR device searches for the connected LAN and broadcasts a private message through UDP to find the IPC related information of the corresponding TID / UID group;

[0028] If the IPC related information of the corresponding TID / UID group is searched in the LAN, the NVR device will modify the IP address of the corresponding channel connection to the IP address of the searched IPC device. This modification is based on the comparison of the TID / UID that has been configured for the channel.

[0029] If it is found that the NVR device and the IPC device are in different network segments, the NVR device is also used to automatically modify the IP address of the IPC device to ensure that the IPC device and the NVR device are in the same network segment, thereby facilitating communication and drawing;

[0030] After the IP address is modified, the NVR device continues to try to connect until it successfully connects to the channel IPC.

[0031] According to a wired NVR and IPC set binding pairing method provided by the present invention, before pairing, the device to be paired and the pairing software device are simultaneously powered on and connected to the same local area network, and ensure that other devices that do not need pairing have been removed from the local area network to avoid the occurrence of mismatching;

[0032] When pairing, the pairing software device initiates a pairing request in the local area network to identify and connect the device that needs to be paired; if there is a device that needs to be replaced in the bound channel on the NVR device, the binding data of the corresponding channel will be automatically deleted by the NVR device before the pairing process starts or as part of the pairing process to make room for the new device or replace it.

[0033] According to a wired NVR and IPC set binding and pairing method provided by the present invention, after the pairing is completed, the pairing software device sends the necessary information of the new device to the NVR device, and the NVR device updates its channel binding data based on this information and attempts to establish a communication connection with the new device; if the communication connection is successful, the NVR device completes the configuration and access of the new device, so that it can work normally in the corresponding channel.

[0034] According to a wired NVR and IPC set binding and pairing method provided by the present invention, the following steps are also performed:

[0035] Before NVR and IPC devices leave the factory, the generated TID / UID is verified to ensure that the TID / UID of each device is unique globally to avoid duplication and conflict;

[0036] Establish a TID / UID reuse and recycling mechanism. When a device is retired or scrapped, its TID / UID can be recycled and reallocated to a new device to improve resource utilization and reduce management costs.

[0037] According to a wired NVR and IPC set binding and pairing method provided by the present invention, the following steps are also performed:

[0038] Add firmware version check and compatibility check functions during the coding process to ensure that the firmware versions of NVR and IPC devices are compatible and the latest version, avoiding problems caused by incompatible firmware or outdated versions.

[0039] It can be seen that compared with the prior art, the method provided by the present invention has the following beneficial effects:

[0040] 1. The present invention groups the packaged devices and synchronizes the respective information to each device through private protocol messages, thereby quickly and effectively networking, reducing manual operations and improving efficiency.

[0041] 2. The present invention generates a globally unique set identifier (TID) for the NVR and IPC set and configures relevant information during production, thereby realizing fast and accurate binding of the NVR and IPC in a wired network environment. At the same time, through the code matching method, the devices in the set can be easily replaced. The present invention simplifies the networking operation, improves efficiency, and can stably and reliably perform matching use between devices in any scenario.

[0042] 3. The present invention does not rely on fixed IP address configuration, but can dynamically adapt to changes in the network environment. Even if the IP address of the IPC device changes, the NVR can re-establish the connection through the search and update mechanism, ensuring the stability and reliability of the system.

[0043] 4. The unique identifier UID and default IP address of the IPC device of the present invention are pre-set in the NVR device, which greatly simplifies the user's configuration work. The user does not need to manually enter the IP address of each IPC, reducing configuration errors and cumbersome operation steps.

[0044] 5. The present invention achieves fast and accurate device pairing and binding by broadcasting pairing messages in the local area network and matching with TID as the key field, reducing the need for manual pairing and improving the efficiency of installation and deployment.

[0045] 6. Since the device pairing and binding process is highly automated and the configuration information is pre-set, the difficulty of system management and maintenance is reduced. Users can more easily monitor and manage the device status in the system and promptly discover and resolve potential problems.

[0046] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 The present invention is a flowchart of an embodiment of a wired NVR and IPC set binding and pairing method.

[0048] Figure 2 It is a principle diagram of system networking in an embodiment of a wired NVR and IPC set binding and pairing method of the present invention.

[0049] Figure 3 It is a schematic diagram of the principle of an embodiment of a wired NVR and IPC set binding and pairing method of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0052] See also Figures 1 to 3 The present invention provides a wired NVR and IPC set binding code pairing method, the method comprising the following steps:

[0053] Step S1: When the NVR and IPC devices are manufactured, a globally unique set identifier TID is generated for each pair of devices.

[0054] Step S2, pre-setting the unique identifier UID and the default IP address of each IPC device into each channel of the NVR device.

[0055] Step S3, when both the NVR and IPC devices are turned on and connected to the network, the NVR device attempts to connect to the IPC device in the configured channel. If the connection is successful, it indicates that the IP address of the IPC device is consistent with the one configured in the NVR device, and the binding is completed; if the NVR device cannot connect to the IPC device of a certain channel, the NVR device searches for the corresponding IPC device in the LAN according to the TID / UID combination, and updates the IP address of the IPC device in the channel to the actual IP address searched, and then tries to connect again until all channels are successfully connected to the corresponding IPC devices.

[0056] Among them, during the pairing process, step S4 is executed, the NVR device broadcasts a pairing message in the wired LAN, the pairing message uses TID as the key field, and the IPC device that receives the pairing message saves the TID information and responds to the message to return its own TID / UID and other IP network information, thereby completing the pairing and binding of the devices through TID / UID matching.

[0057] In the above step S1, when configuring the globally unique set identifier TID, it includes:

[0058] While generating the UID of each IPC / NVR device, a globally unique set identifier TID is generated for the IPC and NVR devices that constitute the set;

[0059] When setting the UID to the IPC / NVR device through the network protocol, add the set identifier field TID in the communication message, and send the TID and the UID field together to the corresponding IPC / NVR device;

[0060] After receiving the message containing UID and TID, the IPC / NVR device parses and saves these fields for use in the subsequent networking, binding or pairing process.

[0061] In this embodiment, for each IPC device in the package, its globally unique package mark TID, unique identifier UID and default IP address are used, and TID is used as a keyword to save the TID, UID and IP address information of each IPC device in the PC software. This saving mechanism allows the software to store and manage information of multiple IPCs, and the information of each IPC device is distinguished and associated with other IPC devices in the package through its unique TID.

[0062] In the above step S2, the unique identifier UID and the default IP address of each IPC device are pre-set to each channel of the NVR device, including:

[0063] After completing the configuration of the NVR device, use the saved TID information to query and retrieve the main information of all IPC devices that are compatible with the specific configured NVR;

[0064] According to the pre-designed communication protocol, the information of these IPC devices is sent to the corresponding NVR devices;

[0065] After receiving the information of the IPC device, the NVR device stores it and, based on the received IPC information, allocates these IPCs to each channel information inside it one by one, thereby realizing the pre-setting of the IPC device information to the NVR channel.

[0066] In the above step S3, when the NVR device attempts to connect and access the IPC devices in each configured channel, the following steps are performed:

[0067] The NVR device initiates a TCP connection attempt with the IP address of the currently configured channel IPC. If the TCP connection is successful, it continues to perform the subsequent authentication process, which uses a private protocol and carries information such as the user name, password, and TID to ensure that the IPC will not be pulled by an NVR with a different TID;

[0068] After successful authentication, the NVR device obtains the configuration information of the IPC device through a private protocol, and then initiates the real-time streaming protocol streaming process;

[0069] If the RTSP stream pulling is successful, it is considered that the channel IPC connection and access are successful; if any step in the TCP connection, authentication, configuration acquisition or stream pulling process is unsuccessful, it is judged that the connection access has failed.

[0070] In the case of a connection failure, the NVR device searches the connected LAN and broadcasts private messages via UDP to find the IPC related information of the corresponding TID / UID group;

[0071] If the IPC related information of the corresponding TID / UID group is searched in the LAN, the NVR device will modify the IP address of the corresponding channel connection to the IP address of the searched IPC device. This modification is based on the comparison of the TID / UID that has been configured for the channel.

[0072] If it is found that the NVR device and the IPC device are in different network segments, the NVR device is also used to automatically modify the IP address of the IPC device to ensure that the IPC device and the NVR device are in the same network segment, thereby facilitating communication and drawing;

[0073] After the IP address is modified, the NVR device continues to try to connect until it successfully connects to the channel IPC.

[0074] In the above step S4, before pairing, the device to be paired and the pairing software device are turned on and connected to the same local area network at the same time, and ensure that other devices that do not need to be paired are removed from the local area network to avoid the occurrence of mismatching;

[0075] When pairing, the pairing software device initiates a pairing request in the local area network to identify and connect the device that needs to be paired; if there is a device that needs to be replaced in the bound channel on the NVR device, the binding data of the corresponding channel will be automatically deleted by the NVR device before the pairing process starts or as part of the pairing process to make room for the new device or replace it.

[0076] After completing the pairing, the pairing software device sends the necessary information of the new device to the NVR device. The NVR device updates its channel binding data based on this information and attempts to establish a communication connection with the new device. If the communication connection is successful, the NVR device completes the configuration and access of the new device, allowing it to work normally in the corresponding channel.

[0077] In this embodiment, the following is also performed:

[0078] Before NVR and IPC devices leave the factory, the generated TID / UID is verified to ensure that the TID / UID of each device is unique globally to avoid duplication and conflict;

[0079] Establish a TID / UID reuse and recycling mechanism. When a device is retired or scrapped, its TID / UID can be recycled and reallocated to a new device to improve resource utilization and reduce management costs.

[0080] In this embodiment, the following is also performed:

[0081] Add firmware version check and compatibility check functions during the coding process to ensure that the firmware versions of NVR and IPC devices are compatible and the latest version, avoiding problems caused by incompatible firmware or outdated versions.

[0082] In actual applications, NVR and IPC are marked as a set of equipment when they are manufactured, including:

[0083] a. It can be set during the process of configuring the device by the production software: When the production software performs product testing and configuration on the IPC / NVR, when the UID (globally unique ID, similar in function to the serial number, visible to the user) needs to be configured, the tool software generates the package flag (special, globally unique ID, can be called TID, invisible to the user, not generated by non-package devices, that is, empty) at the same time when generating the UID, and when setting the UID to the device through the network protocol, the package flag field TID is added and sent to the device together with the UID field. After the device receives it, it is saved for backup. The device networking situation during the production test process can be referred to ( Figure 1 System networking diagram), where IPC and NVR devices can exist independently.

[0084] b. The set mark is a special, unique ID (can be called TID) to facilitate accurate matching. When the factory is produced, the UID (unique ID, similar to the serial number) and default IP address (IP address can be the same for production convenience) of each IPC are set to each channel of the NVR, including:

[0085] a. During the above process, the production software saves the main information of the IPC in the package (TID / UID / IP address) in the PC software (multiple IPCs) using TID as the keyword.

[0086] b. After configuring NVR in 3.1a above, query the above saved information with TID and send it to NVR according to the designed protocol. After receiving the information, NVR assigns the above IPCs to its own channel information one by one to facilitate subsequent quick connection and output.

[0087] Power on the NVR / IPC, connect them to the network, and obtain their respective IP addresses, including:

[0088] a.Depending on the configuration, the new IP address may or may not be the factory-set IP. If it is the factory-set IP, it will speed up networking and output images on the NVR.

[0089] b. NVR attempts to connect to each added channel IPC. If it can connect successfully and output the image, it is completed. The attempt process is as follows: NVR initiates a TCP connection with the currently configured channel IPC IP address. If the connection is successful, it will continue with the subsequent authentication process (private protocol, which can carry information such as username, password and TID, so that the IPC will not be pulled by a non-identical TID NVR), IPC configuration acquisition process (private protocol), and streaming process (Real Time Streaming Protocol (RTSP)). If the streaming is finally successful, it is considered successful. Otherwise, as long as one of the above steps is unsuccessful, it is considered unsuccessful and step c is executed.

[0090] c. If the above process b cannot be successful, the NVR searches for the connected LAN (UDP broadcasts private messages). If the IPC related information of the corresponding TID / UID group is found, the IP address of the corresponding channel connection is modified to the IP address of the searched IPC (compared with the TID / UID that has been configured for the channel). If it is found that the NVR and IPC are in different network segments, the IP address of the IPC may be automatically modified to keep it in the same network segment as the NVR for communication and output. After the modification is completed, continue to try b.

[0091] d. Repeat bc until all channels succeed.

[0092] e. The interactive information of search and connection needs to consider security, such as message encryption, decryption, user authentication, etc.

[0093] In this embodiment, the purpose of pairing is to solve the problem of the equipment in the package after leaving the factory, so as to replace a certain equipment in the package, that is, to add the equipment that was not originally in the package to the package to replace the original equipment. The pairing generally adopts broadcast messages, so it is generally required that the equipment that does not need pairing does not appear in the local area to avoid mismatching. The pairing software is generally PC software, and it can also be NVR software. The pairing process specifically includes the following steps:

[0094] a. Turn on the device to be paired (device without TID, which can be multiple IPCs and 1 NVR) and the pairing software device (PC software or NVR software) and connect them to the same LAN. Remove the device that does not need to be paired from the LAN to avoid mismatching. If there is a device to be replaced (faulty device) in the bound channel on the NVR, delete the corresponding channel binding data on the NVR to prepare for the following step d.

[0095] b. The pairing software broadcasts the pairing message in the wired LAN (UDP broadcast message), where the message uses TID (if you don't know this information, you can search other devices in the same set to obtain it) as the key field, and the pairing message can be encrypted.

[0096] c. When the IPC / NVR receives the above code broadcast message, it saves the TID information and responds to the message to return its own TID / UID and other IP network information. If the NVR receives the message sent by itself, it does not need to respond.

[0097] In this embodiment, after receiving the IPC response, the NVR sets the relevant information to its own channel configuration (optionally any unbound channel, which can be adjusted by the user), and performs steps b and c above. If the PC software actively performs the code pairing, this step is not necessary, and the same steps b and c above are performed to complete the matching work.

[0098] In summary, the present invention groups the set devices and synchronizes the respective information to each device through private protocol messages, so as to quickly and effectively perform networking, reduce manual operations, and improve efficiency. The present invention generates a globally unique set identifier (TID) for the NVR and IPC set, and configures relevant information during production, thereby achieving fast and accurate binding of the NVR and IPC in a wired network environment. At the same time, through the code matching method, the devices in the set can be easily replaced. The present invention simplifies the networking operation, improves efficiency, and can stably and reliably perform matching use between devices in any scenario.

[0099] Furthermore, the present invention does not rely on fixed IP address configuration, but can dynamically adapt to changes in the network environment. Even if the IP address of the IPC device changes, the NVR can re-establish the connection through the search and update mechanism, ensuring the stability and reliability of the system.

[0100] Furthermore, the unique identifier UID and the default IP address of the IPC device of the present invention are pre-set in the NVR device, which greatly simplifies the user's configuration work. The user does not need to manually input the IP address of each IPC, thus reducing configuration errors and cumbersome operation steps.

[0101] Furthermore, the present invention achieves fast and accurate device pairing and binding by broadcasting pairing messages in a local area network and matching using TID as a key field, thereby reducing the need for manual pairing and improving the efficiency of installation and deployment.

[0102] Furthermore, since the device pairing and binding process is highly automated and the configuration information is pre-set, the difficulty of system management and maintenance is reduced, and users can more easily monitor and manage the device status in the system and promptly discover and resolve potential problems.

[0103] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0104] The above-mentioned embodiments are only preferred embodiments of the present invention and cannot be used to limit the scope of protection of the present invention. Any non-substantial changes and substitutions made by technicians in this field on the basis of the present invention shall fall within the scope of protection required by the present invention.

Claims

1. A method for binding and pairing wired NVR and IPC sets, characterized in that: The following steps are involved: When NVR and IPC devices are manufactured, a globally unique set identifier TID is generated for each pair of devices; Pre-set the unique identifier UID and default IP address of each IPC device to each channel of the NVR device; When both the NVR and IPC devices are powered on and connected to the network, the NVR device attempts to connect to the IPC device in the configured channel. If the connection is successful, it indicates that the IP address of the IPC device is consistent with that configured in the NVR device, and the binding is completed; If the NVR device cannot connect to the IPC device of a certain channel, the NVR device searches for the corresponding IPC device in the LAN based on the TID / UID combination, updates the IP address of the IPC device in the channel to the actual IP address searched, and then tries to connect again until all channels are successfully connected to the corresponding IPC devices; Among them, during the pairing process, the NVR device broadcasts a pairing message in the wired LAN. The pairing message uses TID as the key field. The IPC device that receives the pairing message saves the TID information and responds to the message to return its own TID / UID and other IP network information, thereby completing the pairing and binding of the devices through TID / UID matching.

2. The method according to claim 1, characterized in that When configuring the globally unique set identifier TID, include: While generating the UID of each IPC / NVR device, a globally unique set identifier TID is generated for the IPC and NVR devices that constitute the set; When setting the UID to the IPC / NVR device through the network protocol, add the set identifier field TID in the communication message, and send the TID and the UID field together to the corresponding IPC / NVR device; After receiving the message containing UID and TID, the IPC / NVR device parses and saves these fields for use in the subsequent networking, binding or pairing process.

3. The method according to claim 2, characterized in that: For each IPC device in the package, its globally unique package mark TID, unique identifier UID and default IP address are used. With TID as the keyword, the TID, UID and IP address information of each IPC device are saved in the PC software. This saving mechanism allows the software to store and manage the information of multiple IPCs, and the information of each IPC device is distinguished and associated with other IPC devices in the package through its unique TID.

4. The method according to claim 1, characterized in that: The method of presetting the unique identifier UID and the default IP address of each IPC device to each channel of the NVR device includes: After completing the configuration of the NVR device, use the saved TID information to query and retrieve the main information of all IPC devices that are compatible with the specific configured NVR; According to the pre-designed communication protocol, the information of these IPC devices is sent to the corresponding NVR devices; After receiving the information of the IPC device, the NVR device stores it and, based on the received IPC information, allocates these IPCs to each channel information inside it one by one, thereby realizing the pre-setting of the IPC device information to the NVR channel.

5. The method according to claim 1, characterized in that When the NVR device attempts to connect and access the IPC device in each configured channel, it performs the following steps: The NVR device initiates a TCP connection attempt with the IP address of the currently configured channel IPC. If the TCP connection is successful, it continues to perform the subsequent authentication process, which uses a private protocol and carries information such as the user name, password, and TID to ensure that the IPC will not be pulled by an NVR with a different TID; After successful authentication, the NVR device obtains the configuration information of the IPC device through a private protocol, and then initiates the real-time streaming protocol streaming process; If the RTSP stream pulling is successful, it is considered that the channel IPC connection and access are successful; if any step in the TCP connection, authentication, configuration acquisition or stream pulling process is unsuccessful, it is judged that the connection access has failed.

6. The method according to claim 5, characterized in that: In the case of a connection failure, the NVR device searches the connected LAN and broadcasts private messages via UDP to find the IPC related information of the corresponding TID / UID group; If the IPC related information of the corresponding TID / UID group is searched in the LAN, the NVR device will modify the IP address of the corresponding channel connection to the IP address of the searched IPC device. This modification is based on the comparison of the TID / UID that has been configured for the channel. If it is found that the NVR device and the IPC device are in different network segments, the NVR device is also used to automatically modify the IP address of the IPC device to ensure that the IPC device and the NVR device are in the same network segment, thereby facilitating communication and drawing; After the IP address is modified, the NVR device continues to try to connect until it successfully connects to the channel IPC.

7. The method according to claim 1, characterized in that: Before pairing, turn on the device to be paired and the pairing software device at the same time and connect them to the same LAN, and make sure other devices that do not need to be paired have been removed from the LAN to avoid mis-pairing. When pairing, the pairing software device initiates a pairing request in the local area network to identify and connect the device that needs to be paired; if there is a device that needs to be replaced in the bound channel on the NVR device, the binding data of the corresponding channel will be automatically deleted by the NVR device before the pairing process starts or as part of the pairing process to make room for the new device or replace it.

8. The method according to claim 7, characterized in that: After completing the pairing, the pairing software device sends the necessary information of the new device to the NVR device. The NVR device updates its channel binding data based on this information and attempts to establish a communication connection with the new device. If the communication connection is successful, the NVR device completes the configuration and access of the new device, allowing it to work normally in the corresponding channel.

9. The method according to any one of claims 1 to 8, characterized in that: Also execute: Before NVR and IPC devices leave the factory, the generated TID / UID is verified to ensure that the TID / UID of each device is unique globally to avoid duplication and conflict; Establish a TID / UID reuse and recycling mechanism. When a device is retired or scrapped, its TID / UID can be recycled and reallocated to a new device to improve resource utilization and reduce management costs.

10. The method according to any one of claims 1 to 8, characterized in that: Also execute: Add firmware version check and compatibility check functions during the coding process to ensure that the firmware versions of NVR and IPC devices are compatible and the latest version, avoiding problems caused by incompatible firmware or outdated versions.

Citation Information

Patent Citations

  • Access control method in video monitoring system and device thereof

    CN109286600A

  • Automatic wireless code matching connection method for NVR and IPC

    CN113068158A

  • NVR and IPC wireless ad hoc network method

    CN113596808A

  • System for utilizing identity based on pairing of wireless devices

    US20090325491A1

  • Multi-device pairing and provisioning

    US20150282216A1

Cited By

  • POE set implementation method based on NVR and IPC

    CN121547351A

  • POE suit implementation method based on NVR and IPC

    CN121547351B