Summary of the invention
In order to solve to cannot achieve the automatic pre-authentication of equipment, the still cumbersome problem of pre-authentication process, sheet in the related technology
Inventive embodiments provide a kind of equipment cut-in method, apparatus and system.The technical solution is as follows:
According to a first aspect of the embodiments of the present invention, a kind of equipment cut-in method is provided, network hard disk video recorder is used for
NVR, the NVR are provided with wireless WIFI access point AP, which comprises
Periodic broadcast notification message;
The access request message of web camera IPC broadcast is obtained, the access request message includes the mark of the IPC
Know, the access request message is the IPC raw when determining that the notification message includes the mark of the preset WIFI AP
At;
Detect the mark in default identification sets with the presence or absence of the IPC in the access request message, the default identification sets
Mark including the NVR IPC managed;
When there are when the mark of the IPC, allow to carry out access authentication operation to the IPC in the default identification sets.
Optionally, the notification message includes the first access key, and the first access key is the NVR to preset
What the original access key of WIFI network obtained after being encrypted,
It is described allow to the IPC carry out access authentication operation after, the method also includes:
IPC indicated by mark to the IPC sends access response message;
Access authentication operation is carried out based on IPC described in the first access key pair.
Optionally, the method also includes:
When determining that the first IPC breaks down, the mark of the first IPC is deleted from the default identification sets, and
The mark of the backup IPC of first IPC is added in the default identification sets, the first IPC is managed by the NVR
Any IPC.
Optionally, the periodic broadcast notification message, comprising:
Periodic broadcast beacon frame, the beacon frame are used to indicate the notification message.
It is optionally, described that access authentication operation is carried out based on IPC described in the first access key pair, comprising:
Receive the association messages that the IPC is sent, the association messages include the IPC to the in the notification message
The second access key that one access key obtains after being decrypted;
Whether the second access key detected in the association messages is identical as the original access key;
When the second access key is identical as the original access key, IPC indicated by the mark to the IPC
The first associate response message is sent, first associate response message is used to indicate the IPC and NVR and is successfully associated;
When the second access key and the not identical original access key, indicated by the mark to the IPC
IPC sends the second associate response message, and second associate response message is used to indicate the IPC and is associated with failure with the NVR.
Optionally, before the periodic broadcast notification message, the method also includes:
Establish the default identification sets.
Optionally, the product ID for being identified as the IPC of the IPC.
Optionally, before the association messages for receiving the IPC transmission, the method also includes:
The certification message that the IPC is sent is received, the certification message includes the encryption information of image data to be transmitted;
IPC indicated by mark to the IPC sends authentication response message.
According to a second aspect of the embodiments of the present invention, a kind of equipment cut-in method is provided, web camera IPC, institute are used for
The method of stating includes:
The notification message of network hard disk video recorder NVR broadcast is obtained, the NVR is provided with WIFI AP;
When the notification message includes the mark of the preset WIFI AP, periodic broadcast access request message, institute
State the mark that access request message includes the IPC.
Optionally, the notification message includes the first access key, and the first access key is the NVR to preset
What the original access key of WIFI network obtained after being encrypted,
The method also includes:
When the notification message includes the mark of the WIFI AP, to the first access key in the notification message
It is decrypted, obtains the second access key.
Optionally, the periodic broadcast access request message, comprising:
Periodic broadcast probe request, the probe request are used to indicate the access request message.
Optionally, after the periodic broadcast access request message, the method also includes:
The access response message that the NVR is sent is received, the access response message, which is used to indicate the NVR, to be allowed to institute
It states IPC and carries out access authentication operation;
Access authentication operation is carried out based on the second access key.
It is optionally, described that access authentication operation is carried out based on the second access key, comprising:
Association messages are sent to the NVR, the association messages include the second access key;
The first associate response message that the NVR is sent is received, first associate response message is used to indicate the IPC
It is successfully associated with the NVR, first associate response message is that the NVR is determining the second access in the association messages
Key generates when identical as the original access key,
Alternatively, receiving the second associate response message that the NVR is sent, second associate response message is used to indicate institute
It states IPC and is associated with failure with the NVR, second associate response message is that the NVR is determining in the association messages
It is generated when two access keys and the not identical original access key.
Optionally, before the transmission association messages to the NVR, the method also includes:
Certification message is sent to the NVR, the certification message includes the encryption information of image data to be transmitted;
Receive the authentication response message that the NVR is sent.
According to a third aspect of the embodiments of the present invention, a kind of equipment access device is provided, network hard disk video recorder is used for
NVR, the NVR are provided with wireless WIFI access point AP, and described device includes:
Broadcast module is used for periodic broadcast notification message;
Module is obtained, for obtaining the access request message of web camera IPC broadcast, the access request message includes
The mark of the IPC, the access request message are that the IPC is determining that the notification message includes the preset WIFI
It is generated when the mark of AP;
Detection module, for detecting in default identification sets with the presence or absence of the mark of the IPC in the access request message, institute
State the mark that default identification sets include the IPC that the NVR is managed;
First processing module, for, there are when the mark of the IPC, allowing to the IPC in the default identification sets
Carry out access authentication operation.
Optionally, the notification message includes the first access key, and the first access key is the NVR to preset
What the original access key of WIFI network obtained after being encrypted,
Described device further include:
Sending module sends access response message for IPC indicated by the mark to the IPC;
Authentication module, for carrying out access authentication operation based on IPC described in the first access key pair.
Optionally, described device further include:
Second processing module, for when determining that the first IPC breaks down, by the mark of the first IPC from described pre-
Bidding, which is known to concentrate, to be deleted, and the mark of the backup IPC of the first IPC is added in the default identification sets, described first
Any IPC that IPC is managed by the NVR.
Optionally, the broadcast module, is used for:
Periodic broadcast beacon frame, the beacon frame are used to indicate the notification message.
Optionally, the authentication module, is used for:
Receive the association messages that the IPC is sent, the association messages include the IPC to the in the notification message
The second access key that one access key obtains after being decrypted;
Whether the second access key detected in the association messages is identical as the original access key;
When the second access key is identical as the original access key, IPC indicated by the mark to the IPC
The first associate response message is sent, first associate response message is used to indicate the IPC and NVR and is successfully associated;
When the second access key and the not identical original access key, indicated by the mark to the IPC
IPC sends the second associate response message, and second associate response message is used to indicate the IPC and is associated with failure with the NVR.
Optionally, described device further include:
Module is established, for establishing the default identification sets.
Optionally, the product ID for being identified as the IPC of the IPC.
Optionally, the authentication module, is also used to:
The certification message that the IPC is sent is received, the certification message includes the encryption information of image data to be transmitted;
IPC indicated by mark to the IPC sends authentication response message.
According to a fourth aspect of the embodiments of the present invention, a kind of equipment access device is provided, web camera IPC, institute are used for
Stating device includes:
Module is obtained, for obtaining the notification message of network hard disk video recorder NVR broadcast, the NVR is provided with WIFI
AP;
Broadcast module, for when the notification message includes the mark of the preset WIFI AP, periodic broadcast to be connect
Enter request message, the access request message includes the mark of the IPC.
Optionally, the notification message includes the first access key, and the first access key is the NVR to preset
What the original access key of WIFI network obtained after being encrypted,
Described device further include:
Deciphering module, for when the notification message includes the mark of the WIFI AP, in the notification message
First access key is decrypted, and obtains the second access key.
Optionally, the broadcast module, is used for:
Periodic broadcast probe request, the probe request are used to indicate the access request message.
Optionally, described device further include:
Receiving module, the access response message sent for receiving the NVR, the access response message are used to indicate institute
Stating NVR allows to carry out access authentication operation to the IPC;
Authentication module, for carrying out access authentication operation based on the second access key.
Optionally, the authentication module, is used for:
Association messages are sent to the NVR, the association messages include the second access key;
The first associate response message that the NVR is sent is received, first associate response message is used to indicate the IPC
It is successfully associated with the NVR, first associate response message is that the NVR is determining the second access in the association messages
Key generates when identical as the original access key,
Alternatively, receiving the second associate response message that the NVR is sent, second associate response message is used to indicate institute
It states IPC and is associated with failure with the NVR, second associate response message is that the NVR is determining in the association messages
It is generated when two access keys and the not identical original access key.
Optionally, the authentication module, is also used to:
Certification message is sent to the NVR, the certification message includes the encryption information of image data to be transmitted;
Receive the authentication response message that the NVR is sent.
According to a fifth aspect of the embodiments of the present invention, a kind of equipment access system, including NVR and IPC are provided,
The NVR includes any equipment access device of the third aspect;
The IPC includes any equipment access device of fourth aspect.
According to a sixth aspect of the embodiments of the present invention, a kind of equipment access device is provided, NVR is used for, described device includes:
Processor, memory, network interface and bus;
The bus is for connecting the processor, the memory and the network interface, and the processor is for holding
The program stored in the row memory, described program includes equipment cut-in method described in first aspect.
According to a seventh aspect of the embodiments of the present invention, a kind of equipment access device is provided, IPC is used for, described device includes:
Processor and memory, for the processor for executing the program stored in the memory, described program includes second aspect
The equipment cut-in method.
According to a eighth aspect of the embodiments of the present invention, a kind of equipment access system, including NVR and IPC are provided,
The NVR includes equipment access device described in the 6th aspect;
The IPC includes equipment access device described in the 7th aspect.
According to a ninth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, this is computer-readable to deposit
Instruction is stored in storage media, when the computer readable storage medium is run on computers, so that computer execution is above-mentioned
Equipment cut-in method provided by first aspect.
According to a tenth aspect of the embodiments of the present invention, a kind of computer program product comprising instruction is provided, when the calculating
When machine program product is run on computers, so that computer executes equipment cut-in method provided by above-mentioned first aspect.
According to a tenth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, this is computer-readable
Instruction is stored in storage medium, when the computer readable storage medium is run on computers, so that computer executes
State equipment cut-in method provided by second aspect.
According to a tenth aspect of the embodiments of the present invention, a kind of computer program product comprising instruction is provided, when the meter
When calculation machine program product is run on computers, so that computer executes equipment cut-in method provided by above-mentioned second aspect.
The technical solution that the embodiment of the present invention provides can include the following benefits:
Equipment cut-in method provided in an embodiment of the present invention, apparatus and system, NVR being capable of periodic broadcast notification message.
When notification message includes the mark of preset WIFI AP, IPC periodic broadcast access request message, the access request message
Mark including IPC.NVR detects the mark in default identification sets with the presence or absence of the IPC in access request message, and ought be marked in advance
Knowing concentration, there are when the mark of IPC, allow to carry out access authentication operation to IPC.Whole process receives user's triggering without mobile phone
Operational order, realize the automatic pre-authentication of equipment, simplify pre-authentication process.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
Invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
Referring to Figure 1, it illustrates implement ring involved in the equipment cut-in method provided in section Example of the present invention
Border schematic diagram.The implementation environment may include at least one monitoring system, and each monitoring system includes NVR01 and at least one
IPC02.WIFI AP is arranged in NVR01, and IPC02 has WIFI linkage function.In each monitoring system, IPC02 can pass through WIFI
AP is associated with NVR01.The monitoring image is transmitted to NVR01 for obtaining monitoring image by IPC02.NVR01 is for showing this
Monitoring image.
The embodiment of the present invention to the quantity of monitoring system with no restrictions.
Fig. 2 is a kind of method flow diagram of equipment cut-in method shown according to an exemplary embodiment, equipment access
Method the NVR01 in implementation environment can execute as shown in Figure 1.Referring to fig. 2, this method process may include following several steps
It is rapid:
Step 201, periodic broadcast notification message.
Step 202, the access request message for obtaining IPC broadcast, which includes the mark of IPC, the access
Request message is that IPC is generated when determining that notification message includes the mark of preset WIFI AP.
Step 203 detects the mark that whether there is the IPC in access request message in default identification sets, the default mark
Collection includes the mark for the IPC that NVR is managed.
Step 204, when presetting in identification sets, there are when the mark of IPC, allow to carry out access authentication operation to IPC.
In conclusion equipment cut-in method provided in an embodiment of the present invention, NVR can periodic broadcast notification message, obtain
The access request message for taking IPC to broadcast, the access request message include the mark of IPC, and NVR detects whether deposit in default identification sets
The mark of IPC in access request message, and allow to access IPC there are when the mark of IPC in default identification sets
Authentication operation.Wherein, access request message is that IPC is generated when determining that notification message includes the mark of preset WIFI AP,
Whole process receives the operational order of user's triggering without mobile phone, realizes the automatic pre-authentication of equipment, simplifies pre-authentication process.
Fig. 3 is a kind of method flow diagram of equipment cut-in method shown according to an exemplary embodiment, equipment access
Method the IPC02 in implementation environment can execute as shown in Figure 1.Referring to Fig. 3, this method process may include following several steps
It is rapid:
Step 301, the notification message for obtaining NVR broadcast, the NVR are provided with WIFI AP.
Step 302, when notification message includes the mark of preset WIFI AP, periodic broadcast access request message, should
Access request message includes the mark of IPC.
In conclusion equipment cut-in method provided in an embodiment of the present invention, IPC can obtain the notification message of NVR broadcast,
And when notification message includes the mark of preset WIFI AP, periodic broadcast access request message, the access request message package
The mark of IPC is included, in order to which NVR detects the mark in default identification sets with the presence or absence of the IPC in access request message.When default
There are when the mark of IPC in identification sets, NVR allows to carry out IPC access authentication operation, and whole process receives user without mobile phone
The operational order of triggering realizes the automatic pre-authentication of equipment, simplifies pre-authentication process.
Fig. 4-1 is a kind of method flow diagram of equipment cut-in method shown according to an exemplary embodiment, which connects
Entering method can be used for implementation environment shown in FIG. 1.Referring to fig. 4-1, this method process may include the following steps:
Step 401, NVR establish default identification sets.
The default identification sets include the mark for the IPC that NVR is managed.It is exemplary, the NVR manage 5 IPC, this 5
IPC is the first IPC, the 2nd IPC, the 3rd IPC, the 4th IPC and the 5th IPC respectively, wherein the first IPC's is identified as a1, and second
IPC's is identified as a2, and the 3rd IPC's is identified as a3, and the 4th IPC's is identified as a4, and the 5th IPC's is identified as a5.So NVR
The default identification sets established can be as shown in table 1.
Table 1
It is exemplary, the product ID for being identified as IPC of IPC.
Step 402, NVR periodic broadcast notification message.
Specifically, NVR can be used to indicate notification message with periodic broadcast beacon (beacon) frame, the beacon frame.
As a WLAN standard, there are three types of types for 802.11 frame: data frame, control frame and management frame.Its
In, management frame plays supervisory role, for being added or exiting associated transfer thing between wireless network, and processing WIFI AP
Preferably.Management frame mainly include beacon frame, probe requests thereby (probe request) frame, probe response (probe response) frame,
Certification request (authentication request) frame, authentication response (authentication response) frame, association are asked
Ask (association request) frame and associated response (association response) frame.
Wherein, beacon frame is used to state the presence of WIFI network, and work station (station) can be made by periodically transmitting beacon frame
The presence of WIFI network is learnt, to make work station adjustment that parameter necessary to WIFI network be added.In embodiments of the present invention,
IPC is provided with work station, and IPC is communicated by the work station with the WIFI AP of NVR.
Work station scans the WIFI network in target area using probe request.When the net that probe request is detected
Network is mutually compatible with work station, and WIFI AP then can send probing response frame to the work station.
When work station receives the probing response frame of WIFI AP transmission, then authentication request frames are sent to WIFI AP.
WIFI AP sends authentication response message to the work station.Later, which sends association request frame, WIFI to WIFI AP
AP sends association response frame to the work station again.About authentication request frames, authentication response frames, association request frame and association response frame
Effect can refer to the relevant technologies.
It should be noted that beacon frame and probe request include multiple elements (element), the structure of each element
As shown in table 2, each element includes component identifier, load contents length and load contents.Wherein, component identifier one is shared
255, for example the value range of component identifier is 1~255, in general, there is part that can be defined use in 1~255.In this hair
In bright embodiment, in order to realize the automatic pre-authentication of equipment, equipment auto-associating is realized, it can be by the mark of preset WIFI AP
It is added in beacon frame, the mark of IPC is added in probe request.When addition, beacon frame and probe requests thereby are needed to refer to
The frame structure of frame.Specifically, can be with element structure shown in reference table 2.Mark of the embodiment of the present invention to preset WIFI AP
Position within a beacon frame without limitation, without limitation to the position of the mark of IPC in probe request.
Exemplary, the length of the mark of preset WIFI AP is 1, and content is that (data started with 0x is 16 systems to 0x63
Data), and 7~15 in the component identifier 1~255 of beacon frame are not defined use, then the mark of WIFI AP to be added
The component identifier for knowing corresponding element can be 8, and load contents length is 1, load contents 0x63.
Table 2
| Component identifier |
Load contents length |
Load contents |
Step 403, IPC detection NVR broadcast notification message whether include preset WIFI AP mark.
IPC obtains the notification message of NVR broadcast, and whether the notification message of detection NVR broadcast includes preset WIFI AP
Mark.Specifically, IPC can obtain notification message from the beacon frame of NVR periodic broadcast.
Step 404, when notification message includes the mark of preset WIFI AP, IPC periodic broadcast access request disappears
Breath, which includes the mark of IPC.
When the notification message of NVR broadcast includes the mark of preset WIFI AP, IPC periodic broadcast access request disappears
Breath.Specifically, IPC can be used to indicate access request message with periodic broadcast probe request, the probe request.
In embodiments of the present invention, when IPC detects that the notification message of acquisition includes the mark of preset WIFI AP,
At this point, periodic broadcast access request message, the access request message include the mark of IPC to IPC again.When IPC detects acquisition
Notification message when not including the mark of preset WIFI AP, IPC does not broadcast access request message then, and IPC refusal and broadcast are logical
Know the equipment association of message, equipment association process terminates.So, so that the work station of the IPC only WIFI with preset NVR
AP establishes connection, and the WIFI AP with other NVR or non-NVR equipment does not establish connection.
Wherein, there are many representations of the mark of WIFI AP, the embodiment of the present invention does not limit the mark of WIFI AP
It is fixed.
Step 405, when notification message includes the mark of WIFI AP, IPC in notification message first access key into
Row decryption, obtains the second access key.
The notification message includes the first access key.The first access key is NVR to the original of preset WIFI network
What access key obtained after being encrypted.
When IPC detects that the notification message of acquisition includes the mark of preset WIFI AP, the access of IPC periodic broadcast
Request message.Further, IPC is decrypted the first access key in the notification message using preset decryption rule,
Obtain the second access key.
Step 406, NVR detect the mark in default identification sets with the presence or absence of the IPC in access request message.
NVR obtains the access request message of IPC broadcast.Specifically, IPC can be from the probe requests thereby of NVR periodic broadcast
Access request message is obtained in frame.The access request message of IPC broadcast includes the mark of IPC, is established in NVR detecting step 401
Default identification sets in the presence or absence of the IPC in access request message mark.When there are the marks of IPC in default identification sets
When, NVR just allows to carry out access authentication operation to IPC.Exemplary, IPC's in access request message is identified as a3, NVR inspection
Presetting shown in survey table 1 then allows to carry out access authentication operation to IPC there are a3, NVR in identification sets.In access request message
IPC's is identified as b1, and NVR, which detects to preset shown in table 1, is not present b1 in identification sets, NVR then forbids carrying out access authentication to IPC
Operation.So, so that NVR only allow the IPC that it is managed carry out access authentication operation, avoid NVR to remaining IPC into
The operation of row access authentication, the wireless signal that can be avoided different monitoring system generate disorderly string phenomenon.
In addition, NVR may obtain the access request message of other mobile devices broadcast, at this point, the access request message
It does not include the mark of IPC.When NVR gets the access request message, determine that the access request message does not include the mark of IPC
Know, then NVR forbids carrying out access authentication operation to the equipment, equipment identifying procedure terminates.
Step 407, when, there are when the mark of IPC, NVR allows to carry out access authentication operation to IPC in default identification sets.
When, there are when the mark of IPC, NVR can then determine that the IPC of broadcast access request message is this in default identification sets
The IPC that NVR is managed, NVR then allow to carry out access authentication operation to IPC, so far, complete pre-authentication process.
IPC indicated by the mark of step 408, NVR to IPC sends access response message.
Access response message, which is used to indicate NVR, to allow to carry out access authentication operation to IPC.
Specifically, NVR can IPC indicated by the mark to IPC send probing response frame, the probing response frame is for referring to
Show access response message.It can be specifically illustrated with reference to the relevant technologies.
Step 409, NVR are based on the first access key pair IPC and carry out access authentication operation.
The notification message that NVR is broadcasted in step 402 includes the first access key.
In embodiments of the present invention, after IPC receives the access response message of NVR transmission, IPC is obtained based on step 405
The the second access key arrived carries out access authentication operation.
Specifically, as shown in the Fig. 4-2, step 409 may include:
Step 4091, IPC send certification message to NVR.
Certification message includes the encryption information of image data to be transmitted.
Specifically, IPC can send authentication request frames to NVR, which is used to indicate certification message.Specifically may be used
To be illustrated with reference to the relevant technologies.
IPC indicated by the mark of step 4092, NVR to IPC sends authentication response message.
Specifically, NVR can IPC indicated by the mark to IPC send authentication response frames, the authentication response frames are for referring to
Show authentication response message.It can be specifically illustrated with reference to the relevant technologies.
Step 4093, IPC send association messages to NVR.
Association messages include the second access key obtained in step 405.
Specifically, IPC can send association request frame to NVR, which is used to indicate association messages.Specifically may be used
To be illustrated with reference to the relevant technologies.
Whether the second access key in step 4094, NVR detection association messages is identical as original access key.When second
When access key is identical as original access key, step 4095 is executed;When the second access key and original access key be not identical
When, execute step 4096.
In step 405, IPC is decrypted the first access key using preset decryption rule, and second obtained connects
It is identical as original access key possibility to enter key, it is also possible to not identical.When the second access key is identical as original access key,
IPC indicated by mark of the NVR to IPC sends the first associate response message;When second access key and original access key not
When identical, IPC indicated by mark of the NVR to IPC sends the second associate response message.Exemplary, original access key is F1,
The first access key that NVR is obtained after encrypting to original access key F1 is F0, and IPC is using preset decryption rule to F0
It is decrypted, obtains F2, F2 is not identical as F1, then equipment association failure.
Step 4095, when the second access key is identical as original access key, IPC indicated by mark of the NVR to IPC
The first associate response message is sent, which is used to indicate IPC and NVR and is successfully associated.
Specifically, NVR can IPC indicated by the mark to IPC send association response frame, the association response frame is for referring to
Show the first associate response message, can be specifically illustrated with reference to the relevant technologies.
Step 4096, when the second access key and not identical original access key, indicated by mark of the NVR to IPC
IPC sends the second associate response message, which is used to indicate IPC and is associated with failure with NVR.
Specifically, NVR can IPC indicated by the mark to IPC send association response frame, the association response frame is for referring to
Show the second associate response message, can be specifically illustrated with reference to the relevant technologies.
Step 410, when determine the first IPC break down when, NVR deletes the mark of the first IPC from default identification sets,
And the mark of the backup IPC of the first IPC is added in default identification sets, any IPC that the first IPC is managed by NVR.
In embodiments of the present invention, when a certain IPC that NVR is managed breaks down, NVR can be to failure
IPC is replaced.
Optionally, when the first IPC breaks down, the first IPC actively can send failure indication information to NVR, and NVR connects
After receiving the failure indication information, determine that the first IPC breaks down.In addition, NVR periodically can also send shape to the first IPC
State detects message, and the first IPC sends status response message to NVR, which is used to indicate the equipment shape of the first IPC
State.
Exemplary, NVR manages 5 IPC, this 5 IPC are the first IPC, the 2nd IPC, the 3rd IPC, the 4th IPC respectively
With the 5th IPC.Wherein, the first IPC is identified as a1, and the 2nd IPC's is identified as a2, the 3rd IPC's is identified as a3, the 4th IPC
Be identified as a4, the 5th IPC's is identified as a5.Assuming that the first IPC breaks down, then a1 is marked with shown in the table 1 by NVR in advance
Know to concentrate and delete, and the mark a6 of the backup IPC of the first IPC is added in table 1, obtains that the results are shown in Table 3.
Table 3
It should be noted that the sequencing of equipment cut-in method step provided in an embodiment of the present invention can carry out suitably
Adjustment, step according to circumstances can also accordingly be increased and decreased, anyone skilled in the art the invention discloses
Technical scope in, the method that can readily occur in variation should be covered by the protection scope of the present invention, therefore no longer superfluous
It states.
In conclusion equipment cut-in method provided in an embodiment of the present invention, NVR being capable of periodic broadcast notification message.When
When notification message includes the mark of preset WIFI AP, IPC periodic broadcast access request message, the access request message package
Include the mark of IPC.NVR detects the mark in default identification sets with the presence or absence of the IPC in access request message, and when default mark
There are when the mark of IPC, allow to carry out access authentication operation to IPC for concentration.Whole process receives user's triggering without mobile phone
Operational order realizes the automatic pre-authentication of equipment, simplifies pre-authentication process.
Fig. 5-1 is a kind of block diagram of equipment access device 500 shown according to an exemplary embodiment, equipment access dress
It sets for NVR, referring to Fig. 5-1, which includes:
Broadcast module 510 is used for periodic broadcast notification message.
Module 520 is obtained, for obtaining the access request message of IPC broadcast, which includes the mark of IPC
Know, which is that IPC is generated when determining that notification message includes the mark of preset WIFI AP.
Detection module 530, for detecting in default identification sets with the presence or absence of the mark of the IPC in access request message.It should
Default identification sets include the mark for the IPC that NVR is managed.
First processing module 540, for there are when the mark of IPC, allow to carry out IPC access to recognize in default identification sets
Card operation.
In conclusion equipment access device provided in an embodiment of the present invention, NVR can periodic broadcast notification message, obtain
The access request message for taking IPC to broadcast, which includes the mark of IPC.NVR detects whether deposit in default identification sets
The mark of IPC in access request message, and when presetting in identification sets there are when the mark of IPC, allow to access IPC
Authentication operation.Wherein, access request message is that IPC is generated when determining that notification message includes the mark of preset WIFI AP,
The operational order that user's triggering is received without mobile phone, realizes the automatic pre-authentication of equipment, simplifies pre-authentication process.
Wherein, notification message includes the first access key, which is original of the NVR to preset WIFI network
What beginning access key obtained after being encrypted.Further, as shown in Fig. 5-2, the equipment access device 500 further include:
Sending module 550 sends access response message for IPC indicated by the mark to IPC.
Authentication module 560, for carrying out access authentication operation based on the first access key pair IPC.
Further, as shown in Fig. 5-2, the equipment access device 500 further include:
Second processing module 570, for when determining that the first IPC breaks down, by the mark of the first IPC from default mark
It concentrates and deletes, and the mark of the backup IPC of the first IPC is added in default identification sets, the first IPC is appointed by what NVR was managed
One IPC.
Wherein, broadcast module 510 are used for:
Periodic broadcast beacon frame, beacon frame are used to indicate notification message.
Optionally, authentication module 560 are used for:
The association messages that IPC is sent are received, which includes that IPC carries out the first access key in notification message
The the second access key obtained after decryption;
Whether the second access key detected in association messages is identical as original access key;
When the second access key is identical as original access key, IPC indicated by the mark to IPC sends the first association
Response message, the first associate response message are used to indicate IPC and NVR and are successfully associated;
When the second access key and not identical original access key, IPC indicated by the mark to IPC sends second and closes
Join response message, the second associate response message is used to indicate IPC and is associated with failure with NVR.
Further, as shown in Fig. 5-2, the equipment access device 500 further include:
Module 580 is established, for establishing default identification sets.
Optionally, the product ID for being identified as IPC of IPC.
Further, authentication module 560 are also used to:
The certification message that IPC is sent is received, which includes the encryption information of image data to be transmitted;
IPC indicated by mark to IPC sends authentication response message.
Other mark meanings can refer to Fig. 5-1 in Fig. 5-2.
In conclusion equipment access device provided in an embodiment of the present invention, NVR can periodic broadcast notification message, obtain
The access request message for taking IPC to broadcast, which includes the mark of IPC.NVR detects whether deposit in default identification sets
The mark of IPC in access request message, and when presetting in identification sets there are when the mark of IPC, allow to access IPC
Authentication operation.Wherein, access request message is that IPC is generated when determining that notification message includes the mark of preset WIFI AP,
The operational order that user's triggering is received without mobile phone, realizes the automatic pre-authentication of equipment, simplifies pre-authentication process.
Fig. 6-1 is a kind of block diagram of equipment access device 600 shown according to an exemplary embodiment, equipment access dress
It sets for IPC, referring to Fig. 6-1, which includes:
Module 610 is obtained, for obtaining the notification message of NVR broadcast, which is provided with WIFI AP.
Broadcast module 620, for when notification message includes the mark of preset WIFI AP, periodic broadcast access to be asked
Message is sought, which includes the mark of IPC.
In conclusion equipment access device provided in an embodiment of the present invention, IPC can obtain the notification message of NVR broadcast,
And when notification message includes the mark of preset WIFI AP, periodic broadcast access request message, the access request message package
The mark of IPC is included, in order to which NVR detects the mark in default identification sets with the presence or absence of the IPC in access request message, when default
There are when the mark of IPC in identification sets, NVR allows to carry out access authentication operation to IPC, and the behaviour of user's triggering is received without mobile phone
It instructs, realizes the automatic pre-authentication of equipment, simplify pre-authentication process.
Notification message includes the first access key, which is that NVR connects the original of preset WIFI network
Enter and is obtained after key is encrypted, further, as in fig. 6-2, the equipment access device 600 further include:
Deciphering module 630, for being accessed to first in notification message when notification message includes the mark of WIFI AP
Key is decrypted, and obtains the second access key.
Wherein, broadcast module 620 are used for:
Periodic broadcast probe request, probe request are used to indicate access request message.
Further, as in fig. 6-2, the equipment access device 600 further include:
Receiving module 640, for receiving the access response message of NVR transmission, which, which is used to indicate NVR, permits
Perhaps access authentication operation is carried out to IPC.
Authentication module 650, for carrying out access authentication operation based on the second access key.
Optionally, authentication module 650 are used for:
Association messages are sent to NVR, association messages include the second access key;
The first associate response message that NVR is sent is received, the first associate response message is used to indicate IPC and NVR and is associated to
Function, the first associate response message are NVR raw when determining that the second access key in association messages is identical as original access key
At,
Alternatively, receiving the second associate response message that NVR is sent, the second associate response message is used to indicate IPC and NVR and closes
Connection failure, the second associate response message, which is NVR, is determining the second access key in association messages and original access key not phase
It generates simultaneously.
Further, authentication module 650 are also used to:
Certification message is sent to NVR, certification message includes the encryption information of image data to be transmitted;
Receive the authentication response message that NVR is sent.
In conclusion equipment access device provided in an embodiment of the present invention, IPC can obtain the notification message of NVR broadcast,
And when notification message includes the mark of preset WIFI AP, periodic broadcast access request message, the access request message package
The mark of IPC is included, in order to which NVR detects the mark in default identification sets with the presence or absence of the IPC in access request message, when default
There are when the mark of IPC in identification sets, NVR allows to carry out access authentication operation to IPC, and the behaviour of user's triggering is received without mobile phone
It instructs, realizes the automatic pre-authentication of equipment, simplify pre-authentication process.
The embodiment of the invention provides a kind of equipment access system, which includes NVR and IPC.
Wherein, NVR includes equipment access device shown in Fig. 5-1 or Fig. 5-2;
IPC includes equipment access device shown in Fig. 6-1 or Fig. 6-2.
Fig. 7 is the structural schematic diagram of another equipment access device 700 shown according to an exemplary embodiment, is used for
NVR, the equipment access device 700 include:
Processor 701, memory 702, network interface 703 and bus 704.Bus 704 is for connecting processor 701, depositing
Reservoir 702 and network interface 703, processor 701 is for executing the program 7021 stored in memory 702.
Memory 702 may include high-speed random access memory, it is also possible to include non-labile memory, such as extremely
A few magnetic disk storage.The communication link of the equipment access device and IPC is realized by network interface 703 (can be wireless)
It connects.Processor 701 can execute the program 7021 that stores in memory 702 to realize NVR, and NVR is made to execute following equipment
Cut-in method:
Periodic broadcast notification message;
The access request message of web camera IPC broadcast is obtained, access request message includes the mark of IPC, and access is asked
Seeking message is that IPC is generated when determining that notification message includes the mark of preset WIFI AP;
The mark in default identification sets with the presence or absence of the IPC in access request message is detected, default identification sets include NVR institute
The mark of the IPC of management;
When there are when the mark of IPC, allow to carry out access authentication operation to IPC in default identification sets.
Optionally, notification message includes the first access key, which is NVR to preset WIFI network
What original access key obtained after being encrypted.
After allowing to carry out access authentication operation to IPC, this method further include:
IPC indicated by mark to IPC sends access response message;
Access authentication operation is carried out based on the first access key pair IPC.
Optionally, this method further include:
When determining that the first IPC breaks down, the mark of the first IPC is deleted from default identification sets, and by the first IPC
The mark of backup IPC be added in default identification sets, any IPC that the first IPC is managed by NVR.
Optionally, periodic broadcast notification message, comprising:
Periodic broadcast beacon frame, beacon frame are used to indicate notification message.
Optionally, access authentication operation is carried out based on the first access key pair IPC, comprising:
The association messages that IPC is sent are received, association messages include that IPC solves the first access key in notification message
The the second access key obtained after close;
Whether the second access key detected in association messages is identical as original access key;
When the second access key is identical as original access key, IPC indicated by the mark to IPC sends the first association
Response message, the first associate response message are used to indicate IPC and NVR and are successfully associated;
When the second access key and not identical original access key, IPC indicated by the mark to IPC sends second and closes
Join response message, the second associate response message is used to indicate IPC and is associated with failure with NVR.
Optionally, before periodic broadcast notification message, this method further include:
Establish default identification sets.
Optionally, the product ID for being identified as IPC of IPC.
Optionally, before receiving the association messages that IPC is sent, this method further include:
The certification message that IPC is sent is received, certification message includes the encryption information of image data to be transmitted;
IPC indicated by mark to IPC sends authentication response message.
In conclusion equipment access device provided in an embodiment of the present invention, NVR can periodic broadcast notification message, obtain
The access request message for taking IPC to broadcast, which includes the mark of IPC.NVR detects whether deposit in default identification sets
The mark of IPC in access request message, and when presetting in identification sets there are when the mark of IPC, allow to access IPC
Authentication operation.Wherein, access request message is that IPC is generated when determining that notification message includes the mark of preset WIFI AP,
The operational order that user's triggering is received without mobile phone, realizes the automatic pre-authentication of equipment, simplifies pre-authentication process.
Fig. 8 is the structural schematic diagram of another equipment access device 800 shown according to an exemplary embodiment, is used for
IPC.Referring to Fig. 8, which may include following one or more components: processing component 801, memory
802, power supply module 803, multimedia component 804, audio component 805, input/output (I/O) interface 806, sensor module
807 and communication component 808.
The integrated operation of the usual control device 800 of processing component 801, such as with display, data communication, camera operation and note
Record operates associated operation.Processing component 801 may include one or more processors 810 to execute instruction, on completing
The all or part of the steps for the method stated.In addition, processing component 801 may include one or more modules, it is convenient for processing component
Interaction between 801 and other assemblies.For example, processing component 801 may include multi-media module, to facilitate multimedia component
Interaction between 804 and processing component 801.
Memory 802 is configured as storing various types of data to support the operation in device 800.These data are shown
Example includes the instruction of any application or method for operating on device 800, picture, video etc..Memory 802 can be with
It is realized by any kind of volatibility or non-volatile memory device or their combination, such as static random access memory
(SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM) may be programmed
Read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 803 provides electric power for the various assemblies of device 800.Power supply module 803 may include power management system
System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 804 includes the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 804 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 805 is configured as output and/or input audio signal.For example, audio component 805 includes a Mike
Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 802 or via communication set
Part 808 is sent.In some embodiments, audio component 805 further includes a loudspeaker, is used for output audio signal.
I/O interface 806 provides interface between processing component 801 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 807 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor module 807 can detecte the state that opens/closes of device 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor module 807 can be with detection device 800 or a group of device 800
The position change of part, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800
Temperature change.Sensor module 807 may include proximity sensor, be configured to examine without any physical contact
Survey presence of nearby objects.Sensor module 807 can also include that optical sensor is used for such as CMOS or ccd image sensor
It is used in imaging applications.In some embodiments, which can also include acceleration transducer, and gyroscope passes
Sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 808 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WIFI, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 808 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 808 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 802 of instruction, above-metioned instruction can be executed by the processor 810 of device 800 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), read-only memory (CD-
ROM), tape, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 800
When device executes, so that device 800 is able to carry out equipment cut-in method shown in Fig. 3, or execute in Fig. 4-1 illustrated embodiment
Correlation step.
In conclusion equipment access device provided in an embodiment of the present invention, IPC can obtain the notification message of NVR broadcast,
And when notification message includes the mark of preset WIFI AP, periodic broadcast access request message, the access request message package
The mark of IPC is included, in order to which NVR detects the mark in default identification sets with the presence or absence of the IPC in access request message, when default
There are when the mark of IPC in identification sets, NVR allows to carry out IPC access authentication operation, and whole process receives user without mobile phone
The operational order of triggering realizes the automatic pre-authentication of equipment, simplifies pre-authentication process.
The embodiment of the invention also provides a kind of equipment access system, which includes NVR and IPC.
Wherein, NVR includes equipment access device shown in Fig. 7;
IPC includes equipment access device shown in Fig. 8.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product, the computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, computer
Network or other programmable devices.The computer instruction can store in the readable storage medium storing program for executing of computer, Huo Zhecong
One computer readable storage medium is transmitted to another computer readable storage medium, for example, the computer instruction can be with
Pass through wired (such as coaxial cable, optical fiber, Digital Subscriber Line) from a web-site, computer, server or data center
Or wireless (such as infrared, wireless, microwave etc.) mode is transmitted to another web-site, computer, server or data center.
The computer readable storage medium can be any usable medium that computer can access or can comprising one or more
The data storage devices such as server, the data center integrated with medium.The usable medium can be magnetic medium (for example, soft
Disk, hard disk, tape), optical medium or semiconductor medium (such as solid state hard disk) etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Those skilled in the art will readily occur to of the invention its after considering specification and the invention invented here of practice
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are wanted by right
It asks and points out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.