CN115242857A - Network camera access method, network video recorder, electronic equipment and storage medium - Google Patents

Network camera access method, network video recorder, electronic equipment and storage medium Download PDF

Info

Publication number
CN115242857A
CN115242857A CN202210834003.XA CN202210834003A CN115242857A CN 115242857 A CN115242857 A CN 115242857A CN 202210834003 A CN202210834003 A CN 202210834003A CN 115242857 A CN115242857 A CN 115242857A
Authority
CN
China
Prior art keywords
network camera
login password
target
network
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210834003.XA
Other languages
Chinese (zh)
Inventor
李寅兵
崔雪强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Ezviz Software Co Ltd
Original Assignee
Hangzhou Ezviz Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Ezviz Software Co Ltd filed Critical Hangzhou Ezviz Software Co Ltd
Priority to CN202210834003.XA priority Critical patent/CN115242857A/en
Publication of CN115242857A publication Critical patent/CN115242857A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Abstract

The application provides a network camera access method, a network video recorder, an electronic device and a storage medium, wherein the method comprises the following steps: sending a network camera searching multicast message in a designated domain; receiving a response message returned by the network camera; sending a login password setting instruction to a target network camera in the network cameras so that the target network camera sets the login password as a target login password; and accessing a specified network camera in the target network camera according to the login password of the target network camera, the address information of the network camera and an access protocol supported by the network camera. The method can simplify the operation of accessing the network camera and improve the efficiency of accessing the network camera by the network video recorder.

Description

Network camera access method, network video recorder, electronic equipment and storage medium
Technical Field
The present application relates to the field of video monitoring technologies, and in particular, to a network camera access method, a network video recorder, an electronic device, and a storage medium.
Background
The network video recorder refers to a network video storage device, and supports access management to an IPC (IP Camera), storage of IPC video data, and the like.
At present, when a network video recorder needs to be associated with and accessed to an IPC, a user is usually required to manually select an access protocol supported by the IPC at a management node of the network video recorder, and manually set/input a login password of the IPC, so that the operation is complex. Particularly, when a plurality of IPCs are connected, a large amount of manual operation is required, which has a large limitation.
Disclosure of Invention
In view of this, the present application provides a network camera access method, a network video recorder, an electronic device, and a storage medium.
According to a first aspect of an embodiment of the present application, there is provided a network camera access method applied to a network video recorder, the method including:
sending a network camera search multicast message in a designated domain, so that a network camera added in the designated domain returns a response message when receiving the network camera search multicast message;
receiving a response message returned by the network camera, wherein the response message carries address information of the network camera and an access protocol supported by the network camera;
sending a login password setting instruction to a target network camera in the network cameras so that the target network camera sets the login password as a target login password; the target login password is carried in the login password setting instruction;
and accessing a specified network camera in the target network cameras according to the login password of the target network camera, the address information of the network camera and an access protocol supported by the network camera.
According to a first aspect of embodiments of the present application, there is provided a network video recorder including: a communication module and a processor; wherein:
the communication module is used for communicating with the network camera in a wired communication mode or a wireless communication mode;
the processor is used for sending a network camera search multicast message in a designated domain through the communication module so that a network camera added into the designated domain returns a response message when receiving the network camera search multicast message; receiving a response message returned by the network camera, wherein the response message carries address information of the network camera and an access protocol supported by the network camera;
the processor is further configured to send a login password setting instruction to a target network camera in the network cameras through the communication module, so that the target network camera sets a login password as a target login password; the target login password is carried in the login password setting instruction;
the processor is further configured to access a designated network camera in the target network camera according to the login password of the target network camera, the address information of the network camera, and an access protocol supported by the network camera.
According to a third aspect of embodiments herein, there is provided an electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being configured to execute the machine-executable instructions to implement the method provided by the first aspect.
According to a fourth aspect of embodiments herein, there is provided a storage medium having stored therein machine-executable instructions that, when executed by a processor, implement the method provided by the first aspect.
According to the network camera access method, the network camera searches for the multicast message by sending the network camera, the address information of the network camera and the access protocol supported by the network camera are automatically obtained, the login password setting instruction can be sent to the target network camera, and the network camera can access the specified network camera in the target network camera according to the login password of the target network camera, the address information of the network camera and the access protocol supported by the network camera, so that the network video recorder is automatically accessed into the network camera, the network camera access operation is simplified, and the network video recorder access efficiency is improved.
Drawings
Fig. 1 is a schematic flowchart of a network camera access method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an implementation flow of automatic NVR access to IPC according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a network video recorder provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In order to make the technical solutions provided in the embodiments of the present application better understood and make the above objects, features, and advantages of the embodiments of the present application more obvious and understandable by those skilled in the art, the technical solutions in the embodiments of the present application are further described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a Network camera access method provided in an embodiment of the present application is shown, where the Network camera access method may be applied to a Network Video Recorder, such as an NVR (Network Video Recorder ), and as shown in fig. 1, the Network camera access method may include the following steps:
for convenience of description, the network video recorder is hereinafter described as NVR as an example.
However, it should be noted that the network video recorder is not limited to NVR, and may also include new product forms supporting network storage, such as a smart screen generally applicable to the smart home field.
In addition, the sequence numbers of the steps in the embodiment of the present application do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
And S100, sending a network camera searching multicast message in the specified domain, so that the network camera added in the specified domain returns a response message when receiving the network camera searching multicast message.
Step S110, receiving a response packet returned by the network camera, where the response packet carries identification information of the network camera and an access protocol supported by the network camera.
In this embodiment, the NVR may search for IPC devices joining a specified domain by sending a multicast message (referred to herein as an IPC search multicast message) in the specified domain.
When the IPC equipment joining the designated domain receives the IPC search multicast message, response messages can be returned.
For example, for a local area network where NVR is located, IPC of the local area network may join a specified multicast domain, and the NVR may search for IPC in the local area network by issuing a multicast message (which may be referred to as an IPC search multicast message, that is, the IPC search multicast message) to the specified multicast domain. When the IPC receives the IPC search multicast message, a response message can be returned.
Alternatively, the NVR may search for IPC in the local area network in a manner of sending a broadcast message (which may be referred to as an IPC search broadcast message, i.e., the IPC search multicast message described above) in the local area network (i.e., taking the local area network as a broadcast domain, i.e., the designated domain described above). When the IPC receives the IPC search broadcast message, a response message may be returned.
For example, the NVR may send an IPC search multicast message when receiving the IPC access instruction, or the NVR may send the IPC multicast search message at regular time.
Illustratively, the response message may include, but is not limited to, address information of the IPC (e.g., a Media Access Control (MAC) address, an IP address, etc.) and Access protocols supported by the IPC.
Illustratively, the access protocols supported by the IPC may include, but are not limited to, ONVIF (Open Network Video Interface Forum) protocol, vendor proprietary access protocol, and the like.
Step S120, a login password setting instruction is sent to a target network camera in the network cameras, so that the target network camera sets the login password as a target login password; wherein, the login password setting instruction carries a target login password.
In the embodiment of the application, when the NVR acquires the IPC information in the manner described in steps S100 to S110, the login password setting may be performed on the target IPC.
In one example, the target IPC may include by default all IPCs that returned the response message.
In another example, the target IPC may be determined from the received selection instruction, which may include some or all of the IPC that returned the response message.
In this embodiment of the application, the NVR may send a login password setting instruction to the target IPC, where the login password setting instruction may include a login password (referred to as a target login password herein) set for the target IPC. When the target IPC receives the login password setting instruction sent by the NVR, the target IPC can acquire the target login password carried in the login password setting instruction and set the login password as the target login password.
Exemplarily, in order to improve the security of the login password setting, the target login password carried in the login password setting instruction may be encrypted by using an agreed encryption method and then transmitted; correspondingly, when the target IPC receives the login password setting instruction, the target IPC can decrypt the login password by adopting an agreed decryption mode to obtain the target login password.
For example, in a case that the target IPC includes multiple IPCs, the login passwords of different IPCs (i.e., the target login passwords) may be the same or different.
For example, the target login password may be configured in the NVR in advance by a user, or the target login password may be automatically generated by the NVR according to a preset policy.
For example, for any target IPC, the NVR may generate a target login password of the target IPC (i.e., different login passwords of different target IPCs) according to the identification information of the target IPC.
Alternatively, the NVR may generate a target login password common to all target IPCs according to the common password generation parameter (i.e., the login passwords of different target IPCs are the same).
And S130, accessing a specified network camera in the target network camera according to the login password of the target network camera, the address information of the network camera and the access protocol supported by the network camera.
In the embodiment of the application, when the NVR sets the login password of the target IPC in the manner described above, the NVR can access the designated IPC in the target IPC according to the login password of the target IPC, the address information of the IPC, and the access protocol supported by each IPC.
For example, the specified IPC may default to all target IPCs; alternatively, the specified IPC may be part or all of the target IPC determined according to the selection instruction.
For example, in the case that the NVR successfully accesses the designated IPC, the NVR may perform operations such as fetching and storing IPC code stream data, and managing the IPC.
It can be seen that, in the method flow shown in fig. 1, the network camera searches for a multicast packet by sending the network camera, automatically obtains address information of the network camera and an access protocol supported by the network camera, and can set a login password for the target network camera by sending a login password setting instruction, so that the network camera can access a specified network camera in the target network camera according to the login password of the target network camera, the address information of the network camera, and the access protocol supported by the network camera, thereby implementing automatic access of the network video recorder to the network camera, simplifying an operation of accessing the network camera, and improving efficiency of accessing the network video recorder to the network camera.
In some embodiments, the response message may further include identification information of the network camera;
after receiving the response message returned by the network camera, the method may further include:
displaying a list of network cameras to be accessed; the network camera list to be accessed comprises identification information of the network cameras included in the response message;
the sending a login password setting instruction to a target network camera in the network cameras according to the obtained identification information of the network cameras may include:
and sending a login password setting instruction to a target network camera in the network cameras according to the detected selection instruction aiming at the target network camera in the network camera list.
For example, the response message returned by the IPC may further include identification information of the IPC, where the identification information may include, but is not limited to, a serial number, a name, or a MAC address, which identifies the IPC in the local area network.
The NVR may maintain an IPC list according to the received response message, where the IPC list may include identification information of IPCs carried in the response message received by the NVR.
The NVR may present the IPC list, so that the relevant person may visually determine the IPCs in the current local area network, and select the IPCs that need to be set by the login password (i.e., the target IPCs) according to the requirement.
For example, the NVR may determine the target IPC according to the detected selection instruction for the target IPC in the IPC list, and send a login password setting instruction to the target IPC.
It should be noted that, in the embodiment of the present application, the identification information of the IPC may also be address information of the IPC, that is, the address information of the IPC may be used as the identification information of the IPC. When the IPC returns the response message, the IPC may not need to carry extra identification information in the response message, but use the address information as the identification information.
In some embodiments, the sending a login password setting instruction to a target network camera in the network cameras to cause the target network camera to set the login password as the target login password may include:
and sending a login password setting multicast message carrying the identification information of the target network camera so that the network camera receiving the login password setting multicast message sets the login password as the target login password under the condition that the login password setting multicast message is determined to carry the identification information of the network camera.
For example, in order to improve the efficiency of setting the login password, the NVR may set the login password of the target IPC by sending a multicast message (a multicast message or a broadcast message).
For example, in the case that the response message includes identification information of the IPC, the NVR may carry the identification information of the target IPC in a login password setting instruction (may be referred to as a login password setting multicast message).
Receiving an IPC with a login password setting multicast message, inquiring the identification information of the IPC carried in the login password setting multicast message according to the identification information of the IPC, determining whether the login password setting multicast message carries the identification information of the IPC, if so, determining that the IPC needs to carry out login password setting, and further acquiring a target login password carried in the login password setting multicast message and setting the login password as the target login password; otherwise, it may be determined that the IPC does not need to perform login password setting, and further, may not respond to the login password setting multicast packet, for example, may discard the login password setting multicast packet.
For example, under the condition that the target login passwords of all the target IPCs are the same, the login password sets the multicast message only by respectively carrying the identification information of the target IPCs and the target login passwords; under the condition that the target login passwords of all the target IPCs are not identical, the login password setting multicast message can carry the corresponding relation between the identification information of the target IPCs and the target login passwords.
In some embodiments, the response packet may also carry a status of the network camera; the state of the network camera comprises an initialization state or a non-initialization state;
the sending a login password setting instruction to a target network camera in the network cameras according to the obtained identification information of the network cameras may include:
for any target network camera, if the state of the target network camera is an initialization state, sending a login password setting instruction carrying the target login password to the target network camera;
if the state of the target network camera is in a non-initialized state, a login password setting instruction carrying an active login password and a target login password of the target network camera is sent to the target network camera, so that the target network camera modifies the active login password into the target login password according to the active login password and the target login password.
For example, it is considered that the IPC information acquired in the above manner may include an IPC with a login password, for example, the IPC with the login password manually set by a relevant person, or in the last access process, the IPC with the login password set by the NVR according to the technical solution provided in the embodiment of the present application, and the IPC with the login password set and the IPC without the login password set have a difference in the setting process of the login password, so the NVR needs to be able to distinguish the IPC with the login password set and the IPC without the login password set.
Correspondingly, when receiving the IPC multicast search message, the IPC may carry the status information of the IPC in addition to the identification information of the IPC and the supported access protocol in the response message when returning the response message.
Illustratively, the state of the IPC may include an initialized state or a non-initialized state.
Illustratively, the state of the IPC is an initialization state indicating that the IPC has no login password set, e.g., the IPC is in a factory mode or is restored to the factory mode by resetting.
The state of the IPC is a non-initialization state, which indicates that the IPC has set the login password.
For example, for any target IPC, the NVR may determine the status of the target IPC.
If the state of the target IPC is the initialization state, the NVR can send a login password setting instruction carrying the target login password of the target IPC to the target IPC, and the target IPC can set the login password as the target login password when receiving the login password setting instruction.
If the state of the target IPC is in a non-initialized state, the NVR can acquire an active login password of the target IPC and sends a login password setting instruction carrying the active login password and the target login password to the target IPC, when the target IPC receives the login password setting instruction, the active login password in the login password setting instruction can be verified, namely whether the active login password in the login password setting instruction is consistent with the login password currently used by the target IPC or not is determined, and if so, the active login password is modified into the target login password.
It should be noted that, if the target IPC determines that the current login password in the received login password setting instruction is not consistent with the current login password used by the target IPC, the target IPC may refuse to modify the login password. In this case, the target IPC may also return a login password setup failure response message to the NVR.
In addition, when the login password is set through the multicast message, for the target IPC in a non-initialized state, the login password can set the corresponding relation between the identification information of the target IPC and the current login password in the multicast message.
In some embodiments, the accessing a specific network camera in the target network camera according to the login password of the target network camera, the address information of the network camera, and the access protocol supported by the network camera may include:
for any appointed network camera, according to the login password of the appointed network camera, the address information of the appointed network camera and the access protocol supported by the appointed network camera, sending a login request carrying the login password to the appointed network camera, so that the appointed network camera allows the network video recorder to log in after the login password is verified to be passed.
For example, when the NVR acquires the access protocol and address information supported by the IPC and sets the login password of the target IPC in the manner described above, for any specified IPC, the NVR may send a login request carrying the login password of the specified IPC to the specified IPC according to the login password of the specified IPC, the address information (e.g., IP address) of the specified IPC, and the access protocol supported by the specified IPC.
When the designated IPC receives the login request, the login password carried in the login request can be verified, namely, whether the login password carried in the login request is consistent with the latest login password stored locally is determined, if so, the designated IPC determines that the login request passes the verification, and if not, the designated IPC determines that the login request does not pass the verification.
And the designated IPC can allow the NVR to log in under the condition that the login password carried in the login request is verified, namely the NVR can successfully log in the designated IPC to complete the access of the designated IPC.
In an example, for any given IPC, where the access protocols supported by the given IPC include a private protocol and a public protocol, the NVR may preferentially choose to use the private protocol to access the given IPC.
In order to enable those skilled in the art to better understand the technical solutions provided in the embodiments of the present application, the technical solutions provided in the embodiments of the present application are described below with reference to specific examples.
In this embodiment, a network video recorder is taken as NVR as an example.
As shown in fig. 2, in this embodiment, the implementation flow of NVR automatically accessing IPC may include three phases:
stage one, NVR multicast identifies an access protocol supported by IPC;
stage two, setting/modifying the login password of IPC by NVR;
and stage three, NVR automatically accesses IPC.
The implementation of each stage is described below.
Access protocol supported by IPC (IP communication protocol) for stage one and NVR (network video recorder) multicast identification
1.1, searching IPC under the same local area network by NVR through a mode of issuing a multicast message by manual triggering or background polling of a user;
1.2, the IPC equipment automatically joins in the multicast domain after starting, and returns a response message containing the IPC information when receiving the multicast search message of the NVR. The response message may include, but is not limited to, identification information of the IPC, address information, supported access protocols (such as ONVIF protocol, vendor private access protocol, etc.), a state of the IPC, and the like;
1.3, when the NVR receives the response message of the IPC, the information of the IPC under the same local area network is obtained.
Illustratively, the information of the IPC may include, but is not limited to, identification information, address information, supported access information, and status of the IPC.
Stage two, NVR sets up/revises login password of IPC
2.1, the NVR displays the searched IPC list, determines a target IPC (IPC needing login password setting or IPC needing to be accessed by the NVR) according to the detected selection instruction, and sends a login password setting multicast message to the target IPC.
For example, in order to improve the security of the login password, the login password carried in the multicast message set by the login password may be encrypted by using an agreed encryption method.
For example, in order to implement automatic setting of the login password, a login password setting protocol used may be negotiated between the NVR and the IPC.
2.2, when the IPC receives the login password to set the multicast message, the source legality of the multicast message is checked according to the appointed protocol, and the login password of the IPC is set after the password field is decrypted according to the appointed decryption mode.
2.2.1, if the IPC is in an initialized state, namely the IPC is in a factory mode or is restored to the factory mode through resetting, the IPC login password needs to be set for use, and under the condition, the NVR can configure the IPC login password according to an agreed protocol and a password encryption and decryption mode;
2.2.2, if the IPC is in a non-initialized state, namely the login password is set, the NVR can modify the login password of the IPC by multicast message carrying the current password (namely the original password) of the IPC according to an agreed protocol.
Stage three, NVR automatic access IPC
Through the two phase descriptions, the NVR can acquire information such as an IPC list, an access protocol supported by the IPC, a login password of the IPC and the like in the same local area network, and can access one or more IPCs needing to be accessed.
3.1, NVR automatically selects an access protocol supported by IPC, carries an IPC login password, and initiates a login request to the IPC (namely the designated IPC);
for example, for any given IPC, where the given IPC supports both private and public access protocols, the private access protocol may be preferentially selected for access.
3.2, the IPC receives the login request of the MVR and verifies the login password. After the verification is passed, allowing the NVR to log in and access;
3.3, after the NVR logs in the IPC successfully, the process of associating and accessing the IPC is completed, namely, the operation of automatically associating and accessing the IPC is realized. The subsequent operations of fetching and storing IPC code stream data, managing IPC equipment and the like can be carried out.
The methods provided herein are described above. The following describes the apparatus provided in the present application:
referring to fig. 3, a schematic structural diagram of a network video recorder provided in an embodiment of the present application is shown in fig. 3, where the network video recorder may include: a communication module 310 and a processor 320; wherein:
the communication module 310 is configured to communicate with a network camera in a wired communication manner or a wireless communication manner;
the processor 320 is configured to send a network camera search multicast message in a designated domain through the communication module 310, so that a network camera joining the designated domain returns a response message when receiving the network camera search multicast message; receiving a response message returned by the network camera, wherein the response message carries address information of the network camera and an access protocol supported by the network camera;
the processor 320 is further configured to send a login password setting instruction to a target network camera in the network cameras through the communication module 310, so that the target network camera sets a login password as a target login password; the target login password is carried in the login password setting instruction;
the processor 320 is further configured to access a designated network camera in the target network camera according to the login password of the target network camera, the address information of the network camera, and an access protocol supported by the network camera.
In some embodiments, the response message further includes identification information of the network camera, and after the processor 320 receives the response message returned by the network camera through the communication module 310, the method further includes:
displaying a list of network cameras to be accessed; the network camera list to be accessed comprises identification information of the network cameras included in the response message;
the processor 320 sends a login password setting instruction to a target network camera among the network cameras through the communication module 310, including:
and sending a login password setting instruction to a target network camera in the network cameras through the communication module according to the detected selection instruction aiming at the target network camera in the network camera list.
In some embodiments, the response message further includes identification information of the network camera;
the processor 320 sends a login password setting instruction to a target network camera in the network cameras through the communication module 310, so that the target network camera sets a login password as a target login password, including:
and sending a login password setting multicast message carrying the identification information of the target network camera so as to enable the network camera receiving the login password setting multicast message to set the login password as the target login password under the condition that the login password setting multicast message is determined to carry the identification information of the network camera.
In some embodiments, the response packet further carries a status of the network camera; the state of the network camera comprises an initialization state or a non-initialization state;
the processor 320 sends a login password setting instruction to a target network camera in the network cameras through the communication module 310 according to the obtained identification information of the network cameras, including:
for any target network camera, if the state of the target network camera is an initialization state, a login password setting instruction carrying the target login password is sent to the target network camera through the communication module;
if the state of the target network camera is in a non-initialized state, sending a login password setting instruction carrying an active login password of the target network camera and the target login password to the target network camera through the communication module, so that the target network camera modifies the active login password into the target login password according to the active login password and the target login password.
In some embodiments, the processor 320 accesses a specific network camera in the target network cameras according to the login password of the target network camera, the address information of the network camera, and the access protocol supported by the network camera, including:
for any specified network camera, according to the login password of the specified network camera, the address information of the specified network camera, and the access protocol supported by the specified network camera, a login request carrying the login password is sent to the specified network camera through the communication module 310, so that the specified network camera allows the network video recorder to log in after the login password is verified.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure. The electronic device may include a processor 401, a memory 402 having stored thereon machine executable instructions. The processor 401 and memory 402 may communicate via a system bus 403. Also, the processor 401 may perform the webcam access method described above by reading and executing machine-executable instructions in the memory 402 corresponding to the webcam access control logic.
The memory 402 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
In some embodiments, there is also provided a storage medium, such as the memory 402 in fig. 4, having stored therein machine-executable instructions that when executed by a processor implement the network camera access method described above. For example, the machine-readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and so forth.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A network camera access method is applied to a network video recorder and is characterized by comprising the following steps:
sending a network camera search multicast message in a designated domain, so that a network camera added in the designated domain returns a response message when receiving the network camera search multicast message;
receiving a response message returned by the network camera, wherein the response message carries address information of the network camera and an access protocol supported by the network camera;
sending a login password setting instruction to a target network camera in the network cameras so that the target network camera sets the login password as a target login password; the login password setting instruction carries the target login password;
and accessing a specified network camera in the target network camera according to the login password of the target network camera, the address information of the network camera and an access protocol supported by the network camera.
2. The method according to claim 1, wherein the response message further includes identification information of the network camera, and after receiving the response message returned by the network camera, the method further includes:
displaying a list of network cameras to be accessed; the list of the network cameras to be accessed comprises identification information of the network cameras included in the response message;
the sending of the login password setting instruction to the target network camera in the network cameras includes:
and sending a login password setting instruction to a target network camera in the network cameras according to the detected selection instruction aiming at the target network camera in the network camera list.
3. The method according to claim 1, wherein the response message further includes identification information of a network camera;
the sending a login password setting instruction to a target network camera in the network cameras to enable the target network camera to set the login password as a target login password comprises:
and sending a login password setting multicast message carrying the identification information of the target network camera so as to enable the network camera receiving the login password setting multicast message to set the login password as the target login password under the condition that the login password setting multicast message is determined to carry the identification information of the network camera.
4. The method according to claim 1, wherein the response message further carries a status of a network camera; the state of the network camera comprises an initialization state or a non-initialization state;
the sending a login password setting instruction to a target network camera in the network cameras according to the obtained identification information of the network cameras comprises the following steps:
for any target network camera, if the state of the target network camera is an initialization state, sending a login password setting instruction carrying the target login password to the target network camera;
if the state of the target network camera is a non-initialized state, sending a login password setting instruction carrying an active login password of the target network camera and the target login password to the target network camera, so that the target network camera modifies the active login password into the target login password according to the active login password and the target login password.
5. The method according to claim 1, wherein the accessing a designated network camera of the target network cameras according to the login password of the target network camera, the address information of the network camera, and the access protocol supported by the network camera comprises:
and for any appointed network camera, according to the login password of the appointed network camera, the address information of the appointed network camera and an access protocol supported by the appointed network camera, sending a login request carrying the login password to the appointed network camera, so that the appointed network camera allows the network video recorder to log in after the login password is verified.
6. A network video recorder, comprising: a communication module and a processor; wherein:
the communication module is used for communicating with the network camera in a wired communication mode or a wireless communication mode;
the processor is used for sending a network camera searching multicast message in a specified domain through the communication module so that a network camera added into the specified domain returns a response message when receiving the network camera searching multicast message; receiving a response message returned by the network camera, wherein the response message carries address information of the network camera and an access protocol supported by the network camera;
the processor is further configured to send a login password setting instruction to a target network camera in the network cameras through the communication module, so that the target network camera sets a login password as a target login password; the target login password is carried in the login password setting instruction;
the processor is further configured to access a designated network camera in the target network camera according to the login password of the target network camera, the address information of the network camera, and an access protocol supported by the network camera.
7. The network video recorder of claim 6, wherein the response message further includes identification information of the network camera, and after the processor receives the response message returned by the network camera through the communication module, the processor further includes:
displaying a list of network cameras to be accessed; the network camera list to be accessed comprises identification information of the network cameras included in the response message;
the processor sends a login password setting instruction to a target network camera in the network cameras through the communication module, and the login password setting instruction comprises the following steps:
and sending a login password setting instruction to a target network camera in the network cameras through the communication module according to the detected selection instruction aiming at the target network camera in the network camera list.
8. The network video recorder of claim 6, wherein the response message further includes identification information of the network video recorder;
the processor sends a login password setting instruction to a target network camera in the network cameras through the communication module, so that the target network camera sets a login password as a target login password, and the method comprises the following steps:
and sending a login password setting multicast message carrying the identification information of the target network camera so that the network camera receiving the login password setting multicast message sets the login password as the target login password under the condition that the login password setting multicast message is determined to carry the identification information of the network camera.
9. The network video recorder of claim 6, wherein the response message further carries a status of the network video camera; the state of the network camera comprises an initialization state or a non-initialization state;
the processor sends a login password setting instruction to a target network camera in the network cameras through the communication module according to the obtained identification information of the network cameras, and the login password setting instruction comprises the following steps:
for any target network camera, if the state of the target network camera is an initialization state, a login password setting instruction carrying the target login password is sent to the target network camera through the communication module;
if the state of the target network camera is a non-initialized state, sending a login password setting instruction carrying an active login password of the target network camera and the target login password to the target network camera through the communication module, so that the target network camera modifies the active login password into the target login password according to the active login password and the target login password.
10. The network video recorder of claim 6, wherein the processor accesses a specific network camera of the target network cameras according to the login password of the target network camera, the address information of the network camera, and an access protocol supported by the network camera, and comprises:
and for any specified network camera, according to the login password of the specified network camera, the address information of the specified network camera and an access protocol supported by the specified network camera, sending a login request carrying the login password to the specified network camera through the communication module, so that the specified network camera allows the network video recorder to log in after the login password is verified.
11. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor being configured to execute the machine executable instructions to implement the method of any one of claims 1 to 5.
12. A storage medium having stored therein machine-executable instructions which, when executed by a processor, implement the method of any one of claims 1-5.
CN202210834003.XA 2022-07-14 2022-07-14 Network camera access method, network video recorder, electronic equipment and storage medium Pending CN115242857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210834003.XA CN115242857A (en) 2022-07-14 2022-07-14 Network camera access method, network video recorder, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210834003.XA CN115242857A (en) 2022-07-14 2022-07-14 Network camera access method, network video recorder, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115242857A true CN115242857A (en) 2022-10-25

Family

ID=83674228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210834003.XA Pending CN115242857A (en) 2022-07-14 2022-07-14 Network camera access method, network video recorder, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115242857A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004040272A (en) * 2002-07-01 2004-02-05 Cosmo:Kk Network camera, remote monitor / control system, and control method employing the same
KR20130119248A (en) * 2012-04-23 2013-10-31 주식회사 아이디스 System for setting auto connection of ip cameras on a nvr
CN103905787A (en) * 2012-12-27 2014-07-02 广州市九安光电技术股份有限公司 Straight connection type plug-and-play network video recorder system and realization method
CN104348787A (en) * 2013-07-29 2015-02-11 杭州海康威视数字技术股份有限公司 Method for performing network video recorder channel connection and network video recorder
US20150358575A1 (en) * 2014-06-09 2015-12-10 Itx Security Co., Ltd. Wireless camera, wireless network video recorder (nvr), and method for registering wireless camera with wireless nvr
CN105391744A (en) * 2015-12-30 2016-03-09 浙江宇视科技有限公司 Method and system for managing monitoring equipment
CN105515846A (en) * 2015-12-01 2016-04-20 浙江宇视科技有限公司 NVR configuration method and system based on client
WO2020186457A1 (en) * 2019-03-19 2020-09-24 华为技术有限公司 Authentication method and apparatus for ip camera

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004040272A (en) * 2002-07-01 2004-02-05 Cosmo:Kk Network camera, remote monitor / control system, and control method employing the same
KR20130119248A (en) * 2012-04-23 2013-10-31 주식회사 아이디스 System for setting auto connection of ip cameras on a nvr
CN103905787A (en) * 2012-12-27 2014-07-02 广州市九安光电技术股份有限公司 Straight connection type plug-and-play network video recorder system and realization method
CN104348787A (en) * 2013-07-29 2015-02-11 杭州海康威视数字技术股份有限公司 Method for performing network video recorder channel connection and network video recorder
US20150358575A1 (en) * 2014-06-09 2015-12-10 Itx Security Co., Ltd. Wireless camera, wireless network video recorder (nvr), and method for registering wireless camera with wireless nvr
CN105515846A (en) * 2015-12-01 2016-04-20 浙江宇视科技有限公司 NVR configuration method and system based on client
CN105391744A (en) * 2015-12-30 2016-03-09 浙江宇视科技有限公司 Method and system for managing monitoring equipment
WO2020186457A1 (en) * 2019-03-19 2020-09-24 华为技术有限公司 Authentication method and apparatus for ip camera

Similar Documents

Publication Publication Date Title
JP5037525B2 (en) Method for connecting a monitoring system and a monitoring device to a service server
US7778193B2 (en) Residential network setting method, home gateway apparatus, home gateway program, and recording medium
EP1738562B1 (en) Server apparatus, client apparatus and network system
US11317340B2 (en) Method and device for enabling access of an unconfigured device to a network hotspot device
WO2017148308A1 (en) Method, apparatus and system for accessing network by internet-of-things device
CN107682202B (en) Network equipment management method and device
CN101288063B (en) Wireless device discovery and configuration
JP2022518435A (en) Improved handling of station unique identifiers
WO2004023727A1 (en) Apparatus authentication device, apparatus authentication method, information processing device, information processing method, and computer program
JP2007528179A (en) Security device and method for portable device
US20090260071A1 (en) Smart module provisioning of local network devices
JP2009112005A (en) Method for setting wireless network
CN113490207B (en) Internet of things equipment binding method and device, computer equipment and storage medium
WO2010115337A1 (en) Method, control point, apparatus and communication system for configuring access right
CN113630727A (en) Intelligent household network distribution method, device, system, electronic equipment and storage medium
WO2018076675A1 (en) Network access method, routing device and terminal, and computer storage medium
JP4929294B2 (en) Method and device for handling access privileges
JP2007065715A (en) Method for setting network connection, electronic equipment, setting information generating device, setting system and program
JP2003242054A (en) Server device, communication apparatus, communication apparatus setting information control method, program and recording medium
KR20190003256A (en) Method and apparatus for vpn manegenment for ip camera
JP3779971B2 (en) Server for routing connections to client devices
CN115242857A (en) Network camera access method, network video recorder, electronic equipment and storage medium
JP2009245075A (en) Data-providing system and communication device
US9100284B2 (en) System and method for installation of network interface modules
JP5765451B2 (en) Device management apparatus, device management system, program, and device management method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination