CN111818253B - Method and device for operating camera, camera and storage medium - Google Patents
Method and device for operating camera, camera and storage medium Download PDFInfo
- Publication number
- CN111818253B CN111818253B CN201910288729.6A CN201910288729A CN111818253B CN 111818253 B CN111818253 B CN 111818253B CN 201910288729 A CN201910288729 A CN 201910288729A CN 111818253 B CN111818253 B CN 111818253B
- Authority
- CN
- China
- Prior art keywords
- camera
- audio
- information
- mobile terminal
- authentication information
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004891 communication Methods 0.000 claims description 36
- 238000004590 computer program Methods 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 9
- 238000012544 monitoring process Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000003068 static effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011017 operating method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/00127—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
- H04N1/00249—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a photographic apparatus, e.g. a photographic printer or a projector
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention relates to an operation method and device of a camera, the camera and a storage medium; receiving first authentication information sent by a mobile terminal through wireless connection between a camera and the mobile terminal, so that the camera is accessed to the Internet through the first authentication information; through the wireless connection, the camera sends second authentication information to the mobile terminal, so that the mobile terminal sends the second authentication information to the server when the audio and video information collected by the camera is requested to be checked; the second authentication information is used for establishing a network channel between the server and the camera; and the camera sends the acquired audio and video information to the server through the network channel so that the server sends the audio and video information to the mobile terminal. The safety of audio and video information transmission is improved, and the rapid transmission of the audio and video information is realized.
Description
Technical Field
The present invention relates to the field of monitoring technologies, and in particular, to a method and an apparatus for operating a camera, and a storage medium.
Background
With the development of science and technology, wireless network cameras appear on the market. The wireless network camera is a new generation camera generated by combining a traditional camera and a wireless network technology, is used as a derivative of a security monitoring network camera, and aims to solve the problems of difficult traditional monitoring wiring and equipment maintenance.
However, the technical problem of low safety exists in the transmission process of the audio and video information collected by the wireless network camera.
Disclosure of Invention
Based on this, it is necessary to provide an operation method and apparatus of a camera, and a storage medium for solving a technical problem that security is not high in a transmission process of audio/video information acquired by a wireless network camera.
A method of operating a camera, the method comprising:
establishing wireless connection between the camera and the mobile terminal;
receiving first authentication information sent by the mobile terminal through the wireless connection, wherein the first authentication information is used for indicating the camera to access the internet through the first authentication information;
sending second authentication information to the mobile terminal through the wireless connection, and sending the second authentication information to a server by the mobile terminal when the audio and video information collected by the camera is requested to be viewed; the second authentication information is further used for establishing a network channel between the server and the camera;
and audio and video information collected by the camera is sent to the server through the network channel, and the audio and video information is used for indicating the server to send the audio and video information to the mobile terminal.
In one embodiment, the first authentication information includes a service set identification SSID and a password of a wireless router connected to the camera.
In one embodiment, the first authentication information includes an encryption mode of the audio-video information; before the sending of the audio and video information collected by the camera to the server, the method further includes:
compiling the audio and video information collected by the camera according to the encryption mode and the second authentication information;
the sending of the audio and video information collected by the camera to the server includes:
and sending the compiled audio and video information to the server, wherein the compiled audio and video information is used for indicating the server to send the compiled audio and video data to the mobile terminal, and the compiled audio and video data is interpreted by the mobile terminal.
In one embodiment, the audio/video information includes a plurality of frames of video data and audio data, and the second authentication information includes an identification number segment of the camera; the compiling of the audio and video information collected by the camera according to the encryption mode and the second authentication information comprises the following steps:
generating an information code according to the identification number segment of the camera;
distributing the information code into the video data of each frame according to the encryption mode;
and distributing the information code into the information character corresponding to the audio data according to the encryption mode.
In one embodiment, the establishing a network channel between the server and the camera includes:
identifying the identification number segment through the server, and searching the camera according to the identification number segment;
and establishing a network channel between the found camera and the server.
In one embodiment, the second authentication information is information that is generated by the server before the camera leaves the factory and is burned into the camera.
In one embodiment, the establishing of the wireless connection between the camera and the mobile terminal includes:
and establishing Bluetooth communication connection between the camera and the mobile terminal through the Bluetooth communication module of the camera and the Bluetooth communication module of the mobile terminal.
An operating device for a camera, the device comprising:
the wireless connection module is used for establishing wireless connection between the camera and the mobile terminal;
the receiving module is used for receiving first authentication information sent by the mobile terminal through the wireless connection, and the first authentication information is used for indicating the camera to access the Internet through the authentication information;
the first sending module is used for sending second authentication information to the mobile terminal through the wireless connection, and the second authentication information is used for indicating the mobile terminal to send the second authentication information to a server when the audio and video information collected by the camera is requested to be viewed; the second authentication information is further used for establishing a network channel between the server and the camera;
and the second sending module is used for sending the audio and video information collected by the camera to the server through the network channel, and the audio and video information is used for indicating the server to send the audio and video data to the mobile terminal.
A camera comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any of the above embodiments when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above embodiments.
The operation method, the operation device, the camera and the storage medium of the camera enable the camera to access the internet through the first authentication information by establishing wireless connection between the camera and the mobile terminal and receiving the first authentication information sent by the mobile terminal through the wireless connection; sending second authentication information to the mobile terminal through the wireless connection camera, so that the mobile terminal sends the second authentication information to the server when the audio and video information collected by the camera is requested to be checked; the second authentication information is used for establishing a network channel between the server and the camera; and the camera sends the acquired audio and video information to the server through the network channel so that the server sends the audio and video information to the mobile terminal. A special network channel between the server and the camera is established according to the second authentication information, and the network channel is utilized to transmit the audio and video information, so that the safety of audio and video information transmission is improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for operating a camera according to an embodiment;
FIG. 2 is a schematic flow chart diagram of a method of operating a camera in one embodiment;
FIG. 3 is a schematic flow chart diagram of a method of operating a camera in one embodiment;
FIG. 4 is a schematic flow chart diagram illustrating a method of operating a camera in one embodiment;
FIG. 5 is a schematic flow chart diagram illustrating a method of operating a camera in one embodiment;
FIG. 6a is a timing diagram illustrating the method of operation of a camera in one embodiment;
fig. 6b is a schematic diagram of a Socket mechanism between the camera and the mobile terminal in one embodiment;
FIG. 7 is a block diagram showing an arrangement for operating a video camera according to an embodiment;
fig. 8 is a block diagram showing an operation device of the video camera in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The application provides an operation method of a camera, which can be applied to an application environment as shown in fig. 1. Wherein, after the camera 110 is powered on, the wireless connection between the camera 110 and the mobile terminal 120 is automatically established. The mobile terminal 120 has an SSID and a password of a wireless router connected to the camera 110 stored therein. Through the wireless connection between the camera 110 and the mobile terminal 120, the mobile terminal 120 sends the SSID and the password of the wireless router to the camera 110, thereby enabling the camera 110 to access the internet. The camera 110 is provided with an identification number segment. Through the wireless connection, the camera 110 transmits the identification number segment to the mobile terminal 120. When the mobile terminal 120 sends a viewing request of the audio/video information, the mobile terminal 120 sends the ID number segment to the server 130, and the server 130 is in network communication connection with the camera 110. The server 130 searches the corresponding camera 120 according to the received identification number segment, and establishes a network channel between the searched camera 120 and the server 130. Through the network channel, the camera 120 sends the audio and video information collected by the camera 120 to the server 130, so that the server 130 sends the audio and video information to the mobile terminal 120.
The mobile terminal 120 may be a smart phone, a tablet computer, an intelligent wearable device, etc. equipped with corresponding application programs. The server 120 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, there is provided a method for operating a camera, which is described by taking the camera in fig. 1 as an example, and includes the following steps:
and S210, establishing wireless connection between the camera and the mobile terminal.
The camera is installed in public places or private places to perform security monitoring, and can be used in public places such as hospitals and schools and can be used in private places such as families. And the camera is provided with a wireless communication module. Specifically, the mobile terminal is provided with a wireless communication module. A wireless connection between the camera and the mobile terminal may be established through the respective wireless communication modules.
S220, receiving the first authentication information sent by the mobile terminal through wireless connection.
The camera is connected with the wireless router, and the camera is accessed to the Internet through the wireless router. The first authentication information is used for indicating the camera to access the internet through the first authentication information, and the first authentication information is used for authenticating whether the camera can access the internet through the wireless router. Specifically, the mobile terminal is installed with an application program. Through the wireless connection between the camera and the mobile terminal, the application program installed on the mobile terminal sends the first authentication information to the camera, and the camera receives the first authentication information and accesses the camera to the internet through the first authentication information.
In one embodiment, the first authentication information includes a service set identification SSID and a password of a wireless router connected to the camera. The Service Set Identifier SSID is also called a wireless network name (SSID). The method comprises the steps that an SSID and a password of the wireless router are received through a display interface of an application program installed on the mobile terminal, the SSID and the password of the wireless router are sent to the camera through wireless connection between the camera and the mobile terminal through the application program installed on the mobile terminal, and the camera is accessed to the Internet according to the received SSID and password.
And S230, sending the second authentication information to the mobile terminal through wireless connection.
The second authentication information is used for indicating the mobile terminal to send the second authentication information to the server when the audio and video information collected by the camera is requested to be viewed, and the second authentication information is used for authenticating the camera bound with the mobile terminal. Specifically, a wireless communication connection is established between the mobile terminal and the camera, an application program installed on the mobile terminal sends the first authentication information to the camera, and the camera sends the second authentication information to the mobile terminal. When the mobile terminal accesses the camera, the mobile terminal sends the second authentication information to the server so as to search the camera bound with the mobile terminal through the second authentication information, the server searches the bound camera through the received second authentication information, and a network channel between the searched camera and the server is established. And transmitting the audio and video information acquired by the camera to the server through the network channel.
In one embodiment, the second authentication information is authentication information that is generated by a server before the camera leaves a factory and is burned into the camera. The second authentication information can uniquely identify the camera, and the server can search the corresponding camera through the second authentication information.
And S240, sending the audio and video information collected by the camera to a server through a network channel.
The camera collects audio and video information in a monitoring field, and the audio and video information is used for indicating the server to send the audio and video information to the mobile terminal. And when the mobile terminal accesses the camera, establishing a network channel between the camera and the server through the second authentication information. The collected audio and video information is sent to the server through the network channel camera, and then the server sends the received audio and video information to the mobile terminal, so that the audio and video information generated in a field monitored by the camera can be checked at the mobile terminal.
In the embodiment, the first authentication information sent by the mobile terminal is received through the wireless connection between the camera and the mobile terminal, so that the camera is accessed to the internet through the first authentication information; through the wireless connection, the camera sends second authentication information to the mobile terminal, so that the mobile terminal sends the second authentication information to the server when the audio and video information collected by the camera is requested to be checked; the second authentication information is used for establishing a network channel between the server and the camera; and the camera sends the acquired audio and video information to the server through the network channel so that the server sends the audio and video information to the mobile terminal. A special network channel between the server and the camera is established according to the second authentication information, and the network channel is utilized to transmit the audio and video information, so that the security of audio and video information transmission is improved, and the rapid transmission of the audio and video information is realized.
In one embodiment, the first authentication information includes an encryption mode of the audio-video information. As shown in fig. 3, before sending the audiovisual information collected by the camera to the server, the method further includes:
and S310, compiling the audio and video information collected by the camera according to the encryption mode and the second authentication information.
The method further comprises the following steps:
and S320, sending the compiled audio and video information to a server so that the server sends the compiled audio and video data to the mobile terminal, and the compiled audio and video data is interpreted by the mobile terminal.
The encryption mode refers to that original audio and video information is processed in a certain algorithm or mode, so that even if an unauthorized user obtains the encrypted audio and video information, the unauthorized user cannot view the audio and video information because the unauthorized user does not know a secret key, and the safety of the camera is improved. Before transmission, the camera compiles the audio and video information acquired by the camera. Compilation refers to the process of converting audiovisual information from one form or format to another, interpretation is the inverse of compilation, which includes encoding and encryption, and interpretation includes decoding and decryption. Specifically, an encryption mode of audio and video information can be preset through an application program installed on the mobile terminal, the encryption mode is sent to the camera, and the audio and video information acquired by the camera is processed through the encryption mode. And the camera encodes and encrypts the audio and video information acquired by the camera according to the received encryption mode and the second authentication message. When the mobile terminal needs to access the camera, a special network channel is established between the camera and the server, and the camera sends the compiled audio and video information to the server through the network channel, so that the server sends the compiled audio and video information to the mobile terminal. The mobile terminal decodes and decrypts the received audio and video information, so that the audio and video information collected by the camera can be checked at the mobile terminal.
In the embodiment, the collected audio and video information is compiled according to the encryption mode and the second authentication information, the compiled audio and video information is sent to the mobile terminal through the server, and the mobile terminal carries out the interpretation process, so that the efficiency of the compiling and interpretation process is improved. And the user can directly check the encrypted and coded audio/video file, and the usability of the information is improved on the premise of ensuring the confidentiality of the information.
In one embodiment, the audiovisual information comprises a plurality of frames of video data and audio data, and the second authentication information comprises an identification number segment of the camera. As shown in fig. 4, compiling the audio/video information collected by the camera according to the encryption mode and the second authentication information includes the following steps:
and S410, generating an information code according to the identification number segment of the camera.
And S420, distributing the information codes into the video data of each frame according to the encryption mode.
And S430, distributing the information code into the information character corresponding to the audio data according to the encryption mode.
The identification number segment may be a serial number, such as an ID number segment, set for the camera before the factory shipment. The ID number segment is produced by the server before shipment and assigned to a camera. The ID number segment is used to uniquely identify the camera, so that the server can find the corresponding camera through the ID number segment. The information code is secret information for encryption generated according to the identification number segment of the camera by using an obfuscation technology, and recognizable audio and video information is converted into unrecognizable audio and video information by generating the information code according to the identification number segment of the camera so as to prevent the audio and video information from being leaked. The collected video data and audio data are encoded and encrypted through the information code, so that the collected video data and audio data can be safely transmitted. Specifically, the generated information code is allocated to the video data of each frame and the information character corresponding to the audio data.
In this embodiment, the information code is generated according to the identification number segment of the camera, and the generated information code is allocated to the video data of each frame and the information character corresponding to the audio data, so that the security of information transmission is improved.
In one embodiment, establishing a network channel between a camera and a server includes: identifying the identification number segment through a server, and searching a camera according to the identification number segment; and establishing a network channel between the searched camera and the server.
Specifically, when the mobile terminal needs to access the camera, the mobile terminal sends the ID number segment of the camera to the server, and as the ID number segment is the unique identifier of the camera, the server identifies the ID number segment, searches the camera requested to be accessed by the mobile terminal according to the ID number segment, and establishes a network channel between the camera and the server after determining the camera requested to be accessed by the mobile terminal so as to transmit the audio and video information acquired by the camera to the server. In the embodiment, a special network channel between the camera and the server is established through the root ID number segment, so that the safety of audio and video information transmission is improved, and the rapid transmission of the audio and video information is realized.
In one embodiment, the camera and the mobile terminal are respectively provided with a Bluetooth communication module, and after the camera is powered on, the Bluetooth communication module of the camera is started. And establishing Bluetooth communication connection between the camera and the mobile terminal through the Bluetooth communication module of the camera and the Bluetooth communication module of the mobile terminal. It is understood that the wireless connection between the camera and the mobile terminal may also be established through any one of an AP Hotspot mode, a Smartlink fast connection mode (also referred to as Smartconfig mode), and a two-dimensional code mode. The communication between the mobile terminal and the camera is realized through wireless connection, and the user experience can be greatly improved.
In the AP Hotspot mode, the camera enters the AP Hotspot mode after being started to serve as an AP host to generate a Wi-Fi Hotspot signal, an application program installed on the mobile terminal searches for a default SSID of the camera and is connected to the camera through a default password, and therefore the mobile terminal and the camera establish reliable communication connection. After the connection is established, information such as SSID, password and encryption mode of a router which is required to be accessed to the Internet by the camera is sent to the camera through an application program, and therefore the camera is accessed to the Internet.
In the Smartlink fast connection mode, the camera enters a hybrid mode after being started, and a broadcast packet in a monitoring environment is scanned. The mobile terminal is connected to a wireless router needing to access the Internet, and sends UDP broadcast and information such as SSID, password, encryption mode and the like of the router through the router. And after receiving the information, the camera is switched to a static mode and is connected with the wireless router, so that the camera is accessed to the Internet.
In the two-dimensional code mode, the mobile terminal can scan the two-dimensional code corresponding to the camera, and the camera can also scan the two-dimensional code corresponding to the mobile terminal. The camera can be accessed to the Internet by comprehensively applying Smartlink technology and mainly generating a two-dimensional code image for the camera by the mobile terminal in combination with the image acquisition characteristic of the camera.
In one embodiment, which is described by taking a bluetooth wireless connection as an example, a method for operating a camera is provided as shown in fig. 5. The method comprises the following steps:
and S510, after the camera is powered on, establishing Bluetooth wireless connection between the camera and the mobile terminal.
S520, receiving first authentication information sent by the mobile terminal through Bluetooth wireless connection, so that the camera can access the Internet through the first authentication information.
And S530, sending second authentication information to the mobile terminal through Bluetooth wireless connection, so that the mobile terminal sends the second authentication information to the server when the audio and video information collected by the camera is requested to be checked. The audio and video information comprises a plurality of frames of video data and audio data, and the second authentication information comprises an ID number section of the camera.
And S540, generating an information code according to the ID number segment of the camera.
And S550, distributing the information code into the video data of each frame according to the encryption mode.
And S560, distributing the information code into the information character corresponding to the audio data according to the encryption mode.
And S570, sending the compiled audio and video information to a server through a network channel so that the server sends the compiled audio and video data to the mobile terminal, and the compiled audio and video data is interpreted by the mobile terminal.
In one embodiment, as shown in FIG. 6a, a method of operating a camera is provided. The wireless connection method of the present embodiment is specifically described by taking bluetooth as an example. The camera and the mobile terminal are both provided with a Bluetooth communication module. The method includes the following steps 601 to 616. The specific process is as follows:
and 601, generating an ID number segment of the camera by the server before delivery.
And step 602, burning the ID number segment of the camera into the camera.
And 603, after the camera is powered on, starting a Bluetooth communication module of the camera.
Specifically, a set of embedded system is installed in the camera, after the camera is powered on and started, the Bluetooth communication module of the camera is started, and at the moment, the Bluetooth communication module of the camera serves as the client Bluetooth equipment.
Step 604, starting the bluetooth communication module of the mobile terminal, and using the bluetooth communication module of the mobile terminal as a server side to search available bluetooth devices around.
Wherein, the mobile terminal starts the Bluetooth communication function. Referring to fig. 6b, the mobile terminal is used as a server-side bluetooth device to initiate a call, and the camera is used as a client-side bluetooth device. Specifically, the application installed on the mobile terminal triggers an instruction for searching for a camera through a display interface of the application, and starts to search for the surrounding bluetooth devices which can be searched, so that the camera which starts the bluetooth communication module can be found.
Step 605, after finding the camera, the mobile terminal pairs with the bluetooth communication module of the camera to establish bluetooth wireless connection between the camera and the mobile terminal.
Specifically, an application installed on the mobile terminal prestores a PIN code and an address of a Bluetooth communication module in the camera. When the camera is powered on, the mobile terminal and the camera can automatically build a link.
And step 606, through the Bluetooth wireless connection, the mobile terminal sends the SSID, the password and the encryption mode of the wireless router connected with the mobile terminal to the camera.
Specifically, the input SSID, password and encryption mode of the wireless router are received through a display interface of an application program installed on the mobile terminal, and information such as the SSID, the password and the encryption mode of the wireless router is sent to the camera through the application program. And step 607, the camera accesses the internet according to the SSID and the password of the wireless router.
And step 608, the camera sends the ID number segment of the camera to the mobile terminal through the Bluetooth wireless connection.
And 609, the camera collects the audio and video information and compiles the collected audio and video information according to the ID number segment and the encryption mode.
Step 610, the mobile terminal sends the ID number segment to the server.
Step 611, the server receives the ID number segment, identifies the ID number segment, and searches for a corresponding camera according to the ID number segment.
Step 612, establishing a network channel between the found camera and the server.
Step 613, the camera sends the compiled audio and video information to a server;
and step 614, the server receives the compiled audio and video information.
And step 615, sending the audio and video information to a corresponding mobile terminal.
And step 616, the mobile terminal receives the audio and video information and interprets the audio and video information.
In one embodiment, as shown in fig. 7, an operating device for a camera is provided. The operating device includes a wireless connection module 710, a receiving module 720, a first transmitting module 730, and a second transmitting module 740. Wherein:
and a wireless connection module 710 for establishing a wireless connection between the camera and the mobile terminal.
The receiving module 720 is configured to receive, through a wireless connection, first authentication information sent by the mobile terminal, where the first authentication information is used to instruct the camera to access the internet through the authentication information.
The first sending module 730 is configured to send second authentication information to the mobile terminal through wireless connection, where the second authentication information is used to instruct the mobile terminal to send the second authentication information to the server when the audio and video information acquired by the camera is requested to be viewed; the second authentication information is also used for establishing a network channel between the server and the camera.
The second sending module 740 is configured to send audio and video information collected by the camera to the server through the network channel, where the audio and video information is used to instruct the server to send audio and video data to the mobile terminal.
In one embodiment, the first authentication information includes an SSID and a password of a wireless router connected to the camera.
In one embodiment, the first authentication information includes an encryption mode of the audio-video information. As shown in fig. 8, the running device further includes a compiling module 810. Wherein:
and the compiling module 810 is configured to compile the audio and video information collected by the camera according to the encryption mode and the second authentication information.
The second sending module 740 is further configured to send the compiled audio/video information to the server, where the compiled audio/video information is used to instruct the server to send the compiled audio/video data to the mobile terminal, and the compiled audio/video data is interpreted by the mobile terminal.
In one embodiment, the audio-video information comprises a plurality of frames of video data and audio data, and the second authentication information comprises an identification number segment of the camera; the compiling module 810 is further configured to generate an information code according to the identification number segment of the camera; distributing the information code into the video data of each frame according to an encryption mode; and distributing the information code into the information character corresponding to the audio data according to the encryption mode.
In one embodiment, establishing a network channel between a camera and a server includes: identifying the identification number segment through a server, and searching a camera according to the identification number segment; and establishing a network channel between the searched camera and the server.
In one embodiment, the second authentication information is information generated by a server before the camera leaves the factory. The operating device further comprises a burning module which is used for burning the second authentication information into the camera.
In one embodiment, the wireless connection module 710 is a bluetooth communication module for establishing a bluetooth communication connection between the camera and the mobile terminal through the bluetooth communication module of the camera and the bluetooth communication module of the mobile terminal.
For specific limitations of the camera operating device, reference may be made to the above limitations of the camera operating method, which are not described herein again. The respective modules in the running device of the above-described video camera may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In an embodiment, a camera is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method steps of the above embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the method steps of the above-mentioned embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method of operating a camera, the method comprising:
establishing wireless connection between the camera and the mobile terminal;
receiving first authentication information sent by the mobile terminal through the wireless connection, wherein the first authentication information is used for indicating the camera to access the Internet through the first authentication information, and the first authentication information comprises a Service Set Identifier (SSID) and a password of a wireless router connected with the camera;
sending second authentication information to the mobile terminal through the wireless connection, wherein the second authentication information is used for indicating the mobile terminal to send the second authentication information to a server when the audio and video information collected by the camera is requested to be viewed; the second authentication information is also used for establishing a network channel between the server and the camera, the second authentication information is information which is generated by the server before the camera leaves a factory and is burnt into the camera, and the second authentication information comprises an identification number segment of the camera;
generating an information code according to the identification number segment, distributing the information code into the audio and video information according to the encryption mode of the audio and video information, and compiling to obtain compiled audio and video information, wherein the encryption mode of the audio and video information is obtained by receiving the first authentication information, and the first authentication information comprises the encryption mode of the audio and video information;
the compiled audio and video information is sent to the server through the network channel, the compiled audio and video information is used for indicating the server to send the compiled audio and video information to the mobile terminal, and the compiled audio and video data is interpreted by the mobile terminal;
wherein the establishing of the wireless connection between the camera and the mobile terminal comprises:
and establishing Bluetooth communication connection between the camera and the mobile terminal through the Bluetooth communication module of the camera and the Bluetooth communication module of the mobile terminal.
2. The method of claim 1, wherein the audiovisual information comprises frames of video data and audio data; generating an information code according to the identification number segment, distributing the information code to the audio and video information for compiling according to the encryption mode, and comprising the following steps:
distributing the information code into the video data of each frame according to the encryption mode;
and distributing the information code into the information character corresponding to the audio data according to the encryption mode.
3. The method of claim 1, wherein establishing the network channel between the server and the camera comprises:
identifying the identification number segment through the server, and searching the camera according to the identification number segment;
and establishing a network channel between the found camera and the server.
4. The method of claim 1, wherein the address of the bluetooth communication module of the camera is stored on the mobile terminal.
5. A method according to any one of claims 1 to 4, wherein said identification number segment is a serial number ID number segment of said camera.
6. An operating device for a camera, the device comprising:
the wireless connection module is used for establishing wireless connection between the camera and the mobile terminal;
a receiving module, configured to receive, through the wireless connection, first authentication information sent by the mobile terminal, where the first authentication information is used to instruct the camera to access the internet through the first authentication information, and the first authentication information includes a Service Set Identifier (SSID) and a password of a wireless router connected to the camera;
the first sending module is used for sending second authentication information to the mobile terminal through the wireless connection, and the second authentication information is used for indicating the mobile terminal to send the second authentication information to a server when the audio and video information collected by the camera is requested to be viewed; the second authentication information is also used for establishing a network channel between the server and the camera, the second authentication information is information which is generated by the server before the camera leaves a factory and is burnt into the camera, and the second authentication information comprises an identification number segment of the camera;
the compiling module is used for generating an information code according to the identification number segment, distributing the information code into the audio and video information according to the encryption mode of the audio and video information for compiling to obtain compiled audio and video information, wherein the encryption mode of the audio and video information is obtained by receiving the first authentication information, and the first authentication information comprises the encryption mode of the audio and video information;
the second sending module is used for sending the compiled audio and video information to the server through the network channel, the compiled audio and video information is used for indicating the server to send the compiled audio and video data to the mobile terminal, and the compiled audio and video information is interpreted by the mobile terminal;
the wireless connection module is further used for establishing Bluetooth communication connection between the camera and the mobile terminal through the Bluetooth communication module of the camera and the Bluetooth communication module of the mobile terminal.
7. The apparatus of claim 6, wherein the audiovisual information comprises frames of video data and audio data; the compiling module is further configured to:
distributing the information code into the video data of each frame according to the encryption mode;
and distributing the information code into the information character corresponding to the audio data according to the encryption mode.
8. The apparatus of claim 6, wherein the first sending module is further configured to:
identifying the identification number segment through the server, and searching the camera according to the identification number segment;
and establishing a network channel between the found camera and the server.
9. A camera comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910288729.6A CN111818253B (en) | 2019-04-11 | 2019-04-11 | Method and device for operating camera, camera and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910288729.6A CN111818253B (en) | 2019-04-11 | 2019-04-11 | Method and device for operating camera, camera and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111818253A CN111818253A (en) | 2020-10-23 |
| CN111818253B true CN111818253B (en) | 2022-01-04 |
Family
ID=72844301
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910288729.6A Active CN111818253B (en) | 2019-04-11 | 2019-04-11 | Method and device for operating camera, camera and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111818253B (en) |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101282450B (en) * | 2007-04-02 | 2011-09-28 | 厦门瑞科技术有限公司 | Method capable of immediate access and management of network camera |
| CN101552804A (en) * | 2008-12-22 | 2009-10-07 | 北京大学深圳研究生院 | Network video distribution system and network video access method thereof |
| US20140043493A1 (en) * | 2012-08-10 | 2014-02-13 | Logitech Europe S.A. | Video camera with live streaming capability |
| CN104093149B (en) * | 2014-07-14 | 2018-04-27 | 浙江宇视科技有限公司 | The radio switch-in method and device of a kind of monitoring device |
| CN107277456B (en) * | 2017-07-26 | 2020-04-17 | 北京计算机技术及应用研究所 | Safe video monitoring system based on Android equipment |
| CN107547560A (en) * | 2017-09-25 | 2018-01-05 | 深圳市斑点猫信息技术有限公司 | Video transmission method, apparatus and system |
| CN108449563B (en) * | 2018-02-01 | 2020-07-10 | 厦门星宸科技有限公司 | Method and system for encrypting and decrypting audio and video |
| CN109587823B (en) * | 2018-12-29 | 2021-10-12 | 深圳万拓科技创新有限公司 | Method for accessing WiFi camera to Internet by intelligent code scanning |
-
2019
- 2019-04-11 CN CN201910288729.6A patent/CN111818253B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN111818253A (en) | 2020-10-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111107073B (en) | Application automatic login method and device, computer equipment and storage medium | |
| CN107770182B (en) | Data storage method of home gateway and home gateway | |
| CN113055867A (en) | Method and device for auxiliary network distribution of terminal and electronic equipment | |
| CN111949953A (en) | Identity authentication method, system and device based on block chain and computer equipment | |
| US20140032756A1 (en) | Device communication | |
| CN105119939A (en) | Access method and device, providing method, device and system of wireless network | |
| KR20160123069A (en) | Unification Authentication Control Method for Terminal and Apparatus thereof | |
| CN111083697B (en) | Access method, terminal, micro base station and access system | |
| CN106330442A (en) | Identity authentication method, device and system | |
| CN111212426B (en) | Terminal access method, terminal, micro base station and access system | |
| CN114218598B (en) | Service processing method, device, equipment and storage medium | |
| CN106060128B (en) | Method and device for browser accessing smart key device | |
| CN108092958B (en) | Information authentication method and device, computer equipment and storage medium | |
| CN111918289B (en) | Terminal access method, device and server | |
| WO2023141876A1 (en) | Data transmission method, apparatus and system, electronic device, and readable medium | |
| CN104038931B (en) | Adapted electrical communication system and its communication means based on LTE network | |
| CN113132982B (en) | Data forwarding method and device, computer equipment and storage medium | |
| CN115396247B (en) | Distribution network method, device and system of Matter equipment | |
| CN106339623B (en) | Login method and device | |
| CN111818253B (en) | Method and device for operating camera, camera and storage medium | |
| CN117459931B (en) | A data encryption method, system and storage medium | |
| KR101745482B1 (en) | Communication method and apparatus in smart-home system | |
| CN116032548B (en) | Access authentication method and device of Internet of things, terminal equipment and gateway equipment | |
| CN117880805A (en) | Network distribution method and device of intelligent equipment and electronic equipment | |
| CN110913351A (en) | Multicast control method, device, network device and storage medium |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |