Image acquisition equipment compatible with USB transmission mode and WiFi transmission mode
By designing a USB and WiFi-compatible image acquisition device in a home gimbal camera, using processing chips and WiFi modules to achieve dual transmission of wired and wireless signals, the problem of poor wireless transmission reliability is solved and stable and beautiful image acquisition solutions are provided plan.
Patent Information
- Application Number
- CN202411318225.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-12-31
AI Technical Summary
The wireless transmission method of existing home gimbal cameras is susceptible to co-frequency interference and noise interference, resulting in a degradation of communication reliability and performance, and only supports wireless transmission, which has packet loss and delay problems.
Design an image acquisition device that is compatible with two transmission methods of USB and WiFi. Use the processing chip to convert the image signal into UVC data packets to output it to the display device through the USB interface, and transmit it with wireless signals through the WiFi module to ensure the reliability of wired transmission. and flexibility of wireless transmission.
Without the need for an additional network cable, the video streaming signal is highly reliable and transmitted through the USB connection cable, which solves the problems of poor communication performance and poor reliability of home pan-table cameras, and provides a stable and beautiful image acquisition solution.
Smart Images

Figure CN119232884A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an image acquisition device compatible with both USB and WiFi transmission modes. Background Art
[0002] At present, the image acquisition equipment in the industry, especially the home PTZ cameras, usually transmit data through WiFi. Most of them are connected to the wireless network router through wireless transmission, without the need for cables to achieve data transmission. Although this transmission method is more convenient, the wireless transmission used by most wireless monitoring equipment currently adopts microwave communication, including WiFi and Bluetooth.
[0003] In today's complex electromagnetic environment, many different radio devices receive and transmit wireless signals at the same time for different reasons, causing the radio devices to be interfered with intentionally or unintentionally. The phenomenon that different signals are transmitted on the same frequency and interfere with each other is called co-channel interference. Noise spikes in space or continuous interference from nearby radios can cause the sensitivity of wireless transmission to decrease, the bit error rate to increase, and the device to experience packet loss and performance degradation, thus affecting the performance and reliability of communications. Summary of the invention
[0004] In view of this, an embodiment of the present application provides an image acquisition device that is compatible with both USB and Wifi transmission modes, so as to improve the communication reliability of existing image acquisition devices based on wireless transmission, especially home pan-tilt cameras.
[0005] The embodiment of the present application provides an image acquisition device compatible with both USB and WiFi transmission modes, wherein the image acquisition device comprises: a USB interface, a WiFi module and a processing chip, wherein the USB interface is connected to a preset USB signal output pin of the processing chip, and the WiFi module is connected to a preset WiFi signal output pin of the processing chip, wherein:
[0006] The USB interface is used to access an external display device via a USB connection cable, obtain a power supply enable signal provided by the external display device with the help of the USB connection cable, and output the video stream signal transmitted from the preset USB signal output pin to the external display device via the USB connection cable;
[0007] The WiFi module is used to convert the video stream signal transmitted from the preset WiFi signal output pin into a wireless signal and send it out.
[0008] In some embodiments, the USB interface obtains the power supply enable signal provided by the external display device and outputs a video stream signal to the external display device based on the UVC protocol by means of the USB connection line.
[0009] In some embodiments, the USB interface is connected to an OTG signal input port of an OTG cable, and the OTG cable further includes: a first USB data access port and a second USB data access port, wherein the first USB data access port is connected to the peripheral display device through the USB cable, and the second USB data access port is connected to an input interface of a preset peripheral memory, wherein:
[0010] The first USB data access port is used to obtain a power supply enable signal provided by the external display device by means of the USB connection line, and output the video stream signal transmitted from the OTG signal input port to the external display device through the USB connection line;
[0011] The second USB data access port is used to output the video stream signal transmitted from the OTG signal input port to the preset peripheral memory.
[0012] In some embodiments, the image acquisition device includes: a first USB interface and a second USB interface, the first USB interface is connected to a first preset USB signal output pin of the processing chip, the second USB interface is connected to a second preset USB signal output pin of the processing chip, the first USB interface is connected to the peripheral display device through a USB cable, and the second USB interface is connected to an input interface of a preset peripheral memory, wherein:
[0013] The first USB interface is used to obtain a power supply enable signal provided by the external display device by means of the USB connection line, and output the video stream signal transmitted from the first preset USB signal output pin to the external display device through the USB connection line;
[0014] The second USB interface is used to output the video stream signal transmitted from the second preset USB signal output pin to the preset peripheral memory.
[0015] In some embodiments, the processing chip is used to convert the signal collected by the image acquisition module into a WiFi data packet, and output the WiFi data packet through the preset WiFi signal output pin. The processing chip is used to convert the signal collected by the image acquisition module into a UVC data packet, and output the UVC data packet through the preset USB signal output pin.
[0016] In some embodiments, the processing chip is used to convert the signal collected by the image acquisition module into a UVC data packet, and output the UVC data packet through the first preset USB signal output pin.
[0017] In some embodiments, the processing chip further includes: a control instruction receiving pin, the control instruction receiving pin being used to receive a control instruction input by an external device;
[0018] The processing chip is further used to determine whether to connect to the preset external memory according to the control instruction and in combination with the level state of the second preset USB signal output pin;
[0019] The processing chip is specifically configured to output the UVC data packet through the first preset USB signal output pin and the second preset USB signal output pin if the preset peripheral memory is connected.
[0020] In some embodiments, the control instruction input by the external device includes:
[0021] The first control instruction input by the peripheral display device through the USB connection line, or the second control instruction input by the external mobile terminal display device through the WiFi module.
[0022] In some embodiments, the image acquisition device is a home pan-tilt camera.
[0023] In some embodiments, the image acquisition device further includes: a power protection circuit, and the power protection circuit includes: a surge protection circuit, an electrostatic protection circuit, and a short circuit, overvoltage and overtemperature protection circuit.
[0024] Beneficial effects of this application:
[0025] The present application provides an image acquisition device compatible with both USB and WiFi transmission modes, wherein the image acquisition device comprises: a USB interface, a WiFi module and a processing chip, wherein the USB interface is connected to a preset USB signal output pin of the processing chip, and the WiFi module is connected to a preset WiFi signal output pin of the processing chip, wherein the USB interface is used to access an external display device via a USB cable, and while obtaining a power supply enable signal provided by the external display device with the help of the USB cable, the video stream signal output by the processing chip is output to the external display device via a wired manner such as a USB cable. At the same time, the video stream signal can also be transmitted to a mobile display device in the form of a wireless signal through a built-in WiFi module.
[0026] By selecting the embodiments of the present application, especially applying the image acquisition device provided by the embodiments of the present application to the field of home cameras, the video stream signal can be transmitted to the peripheral display device with high reliability by means of wired communication such as the image acquisition device's own power supply USB connection cable without the need for an additional network cable, thereby compensating for the defects of poor communication performance and poor reliability of existing image acquisition devices that only support wireless transmission, especially home pan-tilt cameras. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Further details, features and advantages of the present application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0028] Figure 1 An internal connection diagram of an image acquisition device provided in an embodiment of the present application is shown;
[0029] Figure 2 A processing logic schematic diagram of a processing chip provided by an embodiment of the present application is shown;
[0030] Figure 3 Another processing logic schematic diagram of the processing chip provided in an embodiment of the present application is shown;
[0031] Figure 4 Another internal connection diagram of the image acquisition device provided by an embodiment of the present application is shown;
[0032] Figure 5 Another internal connection diagram of the image acquisition device provided by an embodiment of the present application is shown;
[0033] Figure 6 Another internal connection diagram of the image acquisition device provided by an embodiment of the present application is shown;
[0034] Figure 7 Another internal connection diagram of the image acquisition device provided by an embodiment of the present application is shown;
[0035] Figure 8 A schematic diagram of a processing flow of determining the USB interface status of an image acquisition device provided by an embodiment of the present application is shown;
[0036] Fig. 9 A logical schematic diagram of USB interface access of an image acquisition device provided in an embodiment of the present application is shown;
[0037] Fig.10 A circuit connection diagram of a second USB interface of the image acquisition device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0038] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.
[0039] In addition to the problems described in the background technology, the wireless data transmission method adopted by existing home image acquisition devices, especially home PTZ cameras, is prone to high packet loss rate and poor performance. The home PTZ cameras only support wireless data transmission, and there are also the following problems:
[0040] Strong attenuation, the picture is prone to delay. Since obstacles such as walls absorb and scatter wireless signals, the wireless signals will be attenuated after passing through the wall. Even though most wireless routers now increase the antenna transmission power to improve the wireless transmission coverage, the actual effect is limited. The higher the frequency band of concrete, the stronger the attenuation effect. It is easy to cause monitoring screen delay and picture quality degradation.
[0041] In some application scenarios, in order to overcome the problems existing in wireless data transmission, the relevant technology realizes wired network communication by adding an RJ45 (Registered Jack 45) network port to the home image acquisition device through a network cable connection. This solution of adding RJ45 requires operating the control panel and the network center on the computer to configure the network, and configuring the IP of the computer and the home image acquisition device in the same network segment. This operation is relatively complicated, and the home network cable usually does not support POE (Power Over Ethernet) power supply. This solution based on adding RJ45 to realize wired transmission of video signals of home image acquisition devices still requires an additional power adapter. A network port transformer and an RJ45 connector need to be added to the network port circuit, and even an Ethernet conversion chip PHY needs to be added. While increasing the components of the image acquisition device, it is inevitable that the volume of the PCB (Printed Circuit Board) board of the home image acquisition device will be increased, and the volume of the home image acquisition device will be increased, and there are too many connecting wires, which affects the appearance and is inconvenient to store.
[0042] In view of this, the present application provides an image acquisition device and a pan-tilt camera that are compatible with both USB and WiFi transmission modes. In the first aspect, the present application provides an image acquisition device that is compatible with both USB and WiFi transmission modes.
[0043] In some embodiments, Figure 1As shown, the image acquisition device 10 includes at least the following three parts:
[0044] Processing chip 11, USB interface 12 and WiFi module 13. Figure 1 As shown:
[0045] The USB interface 12 is connected to a preset USB signal output pin of the processing chip 11, and the WiFi module 13 is connected to a preset WiFi signal output pin of the processing chip 11, wherein:
[0046] The USB interface 12 is used to access an external display device via a USB cable, obtain a power supply enable signal provided by the external display device with the help of the USB cable, and output the video stream signal transmitted from the preset USB signal output pin to the external display device via the USB cable;
[0047] The WiFi module 13 is used to convert the video stream signal transmitted from the preset WiFi signal output pin into a wireless signal and send it out.
[0048] By using the embodiment of the present application, the video stream signal can be transmitted to the peripheral display device in a wired manner with high reliability by using the image acquisition device's own power supply USB connection line without the need for an additional network cable, thereby making up for the defects of poor communication performance and poor reliability of existing image acquisition devices that only support wireless transmission, especially home PTZ cameras. The image acquisition device or home PTZ camera provided by the embodiment of the present application can be powered and transmitted using the same USB data cable as an ordinary mobile phone, without the need for an additional network cable, without affecting the appearance, and is very convenient to store and helps save costs.
[0049] The following is a detailed description of the image acquisition device compatible with both USB and WiFi transmission modes provided by the first aspect of the present application:
[0050] In the embodiments of the present application, the image acquisition device can be any device with image acquisition function, such as an ordinary household PTZ camera, or a gun camera with a fixed shooting angle. The type, model, size and application scenario of the specific image acquisition device are not strictly limited in this application. In addition to the processing chip, USB interface and WiFi module described in this application, the image acquisition device also includes various functional modules that traditional image acquisition devices should have for image acquisition, such as an image acquisition module (including a lens, an image sensor sensor), a recording module, etc. In some embodiments, the image acquisition device 10 is a household PTZ camera, so that the household PTZ camera can output the video stream collected by the PTZ camera to a household display device in a wired manner without a network cable.
[0051] In the embodiment of the present application, the processing chip 11 is the core component responsible for signal processing inside the image acquisition device, and is specifically used to perform signal processing on the audio and video signals acquired by the image acquisition module and the recording module, such as format conversion, signal stream encoding, generating control instructions, or receiving control instructions and making response actions, etc.
[0052] In some embodiments, the processing chip 11 is used to convert the signal collected by the image acquisition module into a WiFi data packet, and output the WiFi data packet through the preset WiFi signal output pin, and the processing chip is used to convert the signal collected by the image acquisition module into a UVC data packet, and output the UVC data packet through the preset USB signal output pin.
[0053] As an implementation method, Figure 2 As shown, the processing chip 11 can be an intelligent video processing main control chip, and the image signal collected by the image acquisition module and the audio signal collected by the microphone can be processed by the intelligent video processing main control chip and converted into a WiFi data packet or a UVC data packet. Among them, the WiFi data packet is sent to the wireless router and the mobile terminal through the WiFi module 13, and the UVC data packet is output to the external display device through the USB interface 12.
[0054] In addition, the image acquisition device 10 may also include a speaker, an LED, and a pan / tilt motor. The processing chip may control the power amplifier according to the received audio signal so as to play the audio through the speaker, which facilitates the online voice communication of the image acquisition device. The processing chip may also send an LED light drive signal to drive the LED on the image acquisition device to turn on or off to remind the user of the working status of the image acquisition device. In addition, the processing chip may also send a motor drive signal, and then drive the pan / tilt motor to rotate according to the motor drive signal to realize multi-angle image acquisition of the image acquisition device.
[0055] As an implementation method, the peripheral display device can be a smart terminal on the market equipped with smart operating systems such as Android, Linux, MacOS, Windows, Harmony, etc. For example, laptops, cloud computers, smart phones, tablets, smart set-top boxes, etc. all support OTG (On-The-Go, a data exchange technology for electronic devices) function.
[0056] Among them, the smart terminal receives the UVC protocol video data stream sent by the image acquisition device provided in this application through a USB connection cable, and then decodes it through the CPU inside the smart terminal to convert the UVC protocol audio and video stream into the original audio and video data stream, such as m3u8, mp3 and other formats. In this way, there is no need to install a driver or specific playback software, and you can directly use the system's built-in player to play it.
[0057] In some implementations, the UVC protocol also has good compatibility. It can be compatible with various types of USB video devices. In addition to the PTZ camera, it can also be connected to scanners, digital cameras, etc. It can be compatible with different video formats and different resolutions to meet different application scenarios.
[0058] In some embodiments, the USB interface obtains the power supply enable signal provided by the peripheral display device, and outputs a video stream signal to the peripheral display device based on the UVC protocol with the help of the USB cable. Among them, the UVC protocol is a standardized USB video device communication protocol, which defines the data transmission specifications between the camera and the connected device, and can ensure that the transmission of video data and control information can interact efficiently and compatibly between the connected devices. Among them, the UVC protocol includes a video control interface (Video Control Interface) and a video streaming interface (Video Streaming Interface). The video control interface is responsible for adjusting various parameters and functions of the camera, including the brightness and clarity of the video, and the video streaming interface is used to transmit the video data of the camera, that is, the UVC protocol makes video transmission and control faster and more stable.
[0059] That is to say, in the embodiment of the present application, the image acquisition device 10 can be powered on and work after obtaining the power enable signal through the USB cable connected to the USB interface. The power enable signal is the work enable signal of the internal circuit of the entire image acquisition device 10. When the power enable signal is connected, the internal circuits of the entire image acquisition device 10 can work normally. Then, the UVC data packet is transmitted to the peripheral display device through the USB interface, so that the power supply can be realized with only one USB cable, and the video stream can be transmitted by wire, which effectively reduces the problem of low data transmission quality existing in the existing image acquisition device that only supports wireless communication transmission.
[0060] In the embodiment of the present application, the USB interface 12 is a data transmission interface for connecting a display device or a memory outside the image acquisition device, and its type can be any type of USB interface such as USB2.0 or USB3.0. The specific type can be flexibly selected according to the actual application cost, and this application does not make a strict limitation. As an implementation method, it can be as follows Figure 2As shown, the USB interface 12 is a data transmission interface that supports the OTG function. In the embodiment of the present application, the WiFi module 13 may be a WiFi6 module, which specifically uses the 802.11ax communication protocol to generate WiFi data packets, so that a single-stream bandwidth of up to 1201Mbps can be achieved, and the 5G frequency band is supported, with stronger anti-interference ability, clearer images, and more stable video calls.
[0061] As an implementation method, the peripheral display device can be an intelligent terminal on the market equipped with an intelligent operating system such as Android, Linux, MacOS, Windows, Harmony, etc. For example, laptops, cloud computers, smart phones, tablet computers, smart set-top boxes, etc. all support the OTG function. In the embodiment of the present application, the intelligent terminal is usually the main device, which automatically identifies the image acquisition device provided by the present application as a slave device, so that the user does not need to install the driver by himself. In addition, through the OTG power supply adapter, it is possible to switch between the OTG state and the power supply state, and to store videos and pictures on mobile storage devices such as USB flash drives and mobile hard drives, with more complete functions.
[0062] Among them, the smart terminal receives the UVC protocol video data stream sent by the image acquisition device provided in this application through a USB connection cable, and then decodes it through the CPU inside the smart terminal to convert the UVC protocol audio and video stream into the original audio and video data stream, such as m3u8, mp3 and other formats. In this way, there is no need to install a driver or specific playback software, and you can directly use the system's built-in player to play it.
[0063] In some implementations, the UVC protocol also has good compatibility. It can be compatible with various types of USB video devices. In addition to the PTZ camera, it can also be connected to scanners, digital cameras, etc. It can be compatible with different video formats and different resolutions to meet different application scenarios.
[0064] As an implementation method, Figure 3 As shown, the processing chip 11 may be an audio and video processing SOC (System on a Chip) chip. Taking the USB interface as USB2.0 as an example, the internal processing flow of the audio and video processing SOC chip may be specifically as follows:
[0065] Audio data and video data are collected through microphones and CMOS image sensors respectively. The CPU module inside the audio and video processing SOC encodes the audio data and video data respectively, and converts the format of the encoded files to obtain audio and video data streams that comply with the UVC protocol. XHCI (Extensible Host Controller Interface) can receive these audio and video data streams and DDR (Double Data Rate) cached data, and can also receive videos or saved pictures stored in SRAM (Random Access Memory). Through XHCI, these audio and video data streams are transmitted to the USB 2.0mac media access controller, and then the parallel signals are converted into D+ / D- differential signals on the USB data line through the UTMI transmission protocol. The differential signals are connected to smart peripherals such as cloud computers and set-top boxes that also support the UVC protocol.
[0066] Specifically, Figure 4 In the connection mode shown, the USB interface 12 is connected to the OTG signal input port of the OTG connection line, and the OTG connection line also includes: a first USB data access port and a second USB data access port, the first USB data access port is connected to the peripheral display device through the USB connection line, and the second USB data access port is connected to the input interface of the preset peripheral memory, wherein:
[0067] The first USB data access port is used to obtain a power supply enable signal provided by the external display device by means of the USB connection line, and output the video stream signal transmitted from the OTG signal input port to the external display device through the USB connection line;
[0068] The second USB data access port is used to output the video stream signal transmitted from the OTG signal input port to the preset peripheral memory.
[0069] In an embodiment of the present application, the OTG line can be a one-to-two OTG transmission line, where one refers to an OTG signal input port for obtaining an input signal, and the second refers to a first USB data access port and a second USB data access port. The two USB data access ports are used to output the signal input by the OTG signal input port to different devices respectively.
[0070] In the embodiment of the present application, the first USB data access port is a micro USB interface, and the peripheral display device can be a cloud computer, a set-top box, a smart TV, etc., which has a built-in operating system and supports the OTG function. That is, the cloud computer, set-top box, smart TV, etc. can be connected to the peripheral display device through the first USB data access port of the OTG to realize the wired output and display of the video stream collected by the image acquisition device.
[0071] In the embodiment of the present application, the second USB data access port is a Type-A interface, and the preset peripheral storage device can be a common mobile hard disk, a U disk, a NAS (Network Attached Storage), etc., which is independent of the image acquisition device. That is, the external storage device such as a U disk, a mobile hard disk, a NAS, etc. can be connected through the second USB data access port of the OTG to realize the persistent storage of the video stream collected by the image acquisition device.
[0072] When the embodiment of the present application is selected, the intelligent terminal is usually the master device, and automatically identifies the image acquisition device provided by the present application as the slave device, so that the user does not need to install the driver by himself. In addition, through the OTG power supply adapter, it can switch between the OTG state and the power supply state, and can store videos and pictures in mobile storage devices such as USB flash drives and mobile hard disks, with more complete functions.
[0073] In some embodiments, the image acquisition device provided by the present application that is compatible with both USB and WiFi transmission modes can also be compatible with the functions corresponding to the above OTG connection line without an OTG connection line. Specifically, as an implementation method, the image acquisition device provided by the present application can also be as follows Figure 5 As shown, the image acquisition device includes:
[0074] The first USB interface 121 and the second USB interface 122 are connected to the processing chip 11 as follows:
[0075] The first USB interface is connected to a first preset USB signal output pin of the processing chip;
[0076] The second USB interface is connected to a second preset USB signal output pin of the processing chip;
[0077] The first USB interface is connected to the peripheral display device via a USB connection line, and the second USB interface is connected to an input interface of a preset peripheral memory.
[0078] The functions of each USB interface are:
[0079] The first USB interface is used to obtain a power supply enable signal provided by the external display device by means of the USB connection line, and output the video stream signal transmitted from the first preset USB signal output pin to the external display device through the USB connection line;
[0080] The second USB interface is used to output the video stream signal transmitted from the second preset USB signal output pin to the preset peripheral memory.
[0081] In the embodiment of the present application, by integrating a USB interface that implements the OTG function into the image acquisition device 10 provided in the embodiment of the present application, it is possible to support the wired output of the video stream signal to the external display device via the USB connection cable without an OTG connection cable, support the preset external memory to perform persistent storage of the video stream, and support the mobile terminal to wirelessly obtain the video stream signal.
[0082] As described above, the processing chip 11 is used to convert the video stream signal that needs to be transmitted by wire into a UVC data packet based on the UVC protocol, and to convert the video stream signal that needs to be transmitted wirelessly into a WiFi data packet. Figure 6 As shown, if the first USB interface 121 and the second USB interface 122 are both connected to an external display device or memory, the converted UVC data packet can be output to the corresponding connected display device or memory via two USB interfaces. The converted WiFi data packet is sent out in the form of a wireless signal through the WiFi module 13 so that the mobile terminal can receive it.
[0083] When both the first USB interface 121 and the second USB interface 122 are connected to an external display device or memory, the first USB interface 121 is usually a Mircro USB interface for accessing an external display device, and the second USB interface 122 is a Type-A interface for connecting to a preset external memory through the input interface of the preset external memory.
[0084] As another implementation, regardless of whether the second USB interface 122 is connected to a preset peripheral memory, the processing chip is used to convert the signal collected by the image acquisition module into a UVC data packet, and output the UVC data packet through the first preset USB signal output pin. In this way, it is possible to obtain a power supply enable signal through the first USB interface 121 while outputting a real-time video stream signal to an external display through the first preset USB signal output pin.
[0085] Since the second USB interface 122 is connected to a preset external storage device, there is a need to store the video stream signal collected by the image acquisition device 10 in real time, or it may be that the video signal collected by the image acquisition device 10 is stored only when the user issues a data storage control instruction from the external display device or the mobile terminal. Based on this, in some embodiments, it can be as follows Figure 7 As shown, the processing chip 11 further includes: a control instruction receiving pin, wherein the control instruction receiving pin is used to receive a control instruction input by an external device;
[0086] The processing chip is further used to determine whether to connect to the preset external memory according to the control instruction and in combination with the level state of the second preset USB signal output pin;
[0087] The processing chip is specifically configured to output the UVC data packet through the first preset USB signal output pin and the second preset USB signal output pin if the preset peripheral memory is connected.
[0088] In some embodiments, the control instruction input by the external device includes:
[0089] The first control instruction input by the peripheral display device through the USB connection line, or the second control instruction input by the external mobile terminal display device through the WiFi module.
[0090] Different from the LED light control instruction and the pan / tilt motor control instruction, in the embodiment of the present application, whether the first control instruction or the second control instruction specifically refers to whether the processing chip outputs the video stream signal through the second preset USB output pin. If the level state of the second preset USB signal output pin is high, it indicates that the preset peripheral memory has been connected, and if the level state of the second preset USB signal output pin is low, it indicates that the preset peripheral memory has not been connected.
[0091] As an implementation method, whether the image acquisition device (especially the PTZ camera) is the main device can be determined according to the level state of the pin. Figure 8 As shown, if the first preset USB signal output pin USB_ID (corresponding to the connection with the first USB interface, that is, connected to the Micro USB interface) is at a high level, the PTZ device acts as a slave device and the peripheral display device acts as a master device. At this time, the master device will supply power to the slave device through USB, and the slave device will respond to the operation instruction of the master device to perform the corresponding operation. Similarly, if the second preset USB signal output pin DM (corresponding to the connection with the second USB interface, that is, connected to the Type-A interface) is at a high level, the PTZ device acts as a master device and can write data to the preset peripheral memory through a data write instruction to achieve persistent storage of data.
[0092] As an implementation method, the processing chip 11 may be an audio and video SOC chip, such as Fig. 9 , Fig.10 As shown, whether the first USB interface is connected can be determined through the USB1-DM pin, and similarly, whether the second USB interface has a preset peripheral memory connected can be determined through the USB2-DM pin.
[0093] Among them, the specific principle for determining whether the preset peripheral memory is connected to the second USB interface is as follows: USB2_DP of the second USB interface corresponding to the preset peripheral memory usually needs to be grounded, and data is transmitted via the signal line USB2_DM. For the second USB interface USB2, by default, USB2 is grounded through a pull-down resistor and connected to the power supply through a pull-up resistor. When the preset peripheral memory is inserted, the image acquisition device 10 supplies power to the preset peripheral memory, and the data line USB2_DM is divided by the pull-up resistor and the pull-down resistor, and the voltage is pulled up. At this time, it can be determined that the preset peripheral memory is connected.
[0094] For ease of understanding, the specific working state of a PTZ camera compatible with two USB interfaces and a WiFi module is described in combination with the application scenario of the image acquisition device being a home PTZ camera. The inventors have concluded from actual engineering applications that there are five applicable working scenarios for the first USB interface 121, the second USB interface 122, and the WiFi module 13, as shown in Table 1 below (in the table, Micro USB corresponds to the first USB interface 121, Type-A corresponds to the second USB interface 122, and WiFi corresponds to the WiFi module 13):
[0095] Table 1. Schematic diagram of various working scenarios of image acquisition equipment
[0096]
[0097]
[0098] In some embodiments, Fig. 9 As shown, the image acquisition device also includes: a power protection circuit (i.e. Fig. 9 The power protection circuit IC includes: a surge protection circuit, an electrostatic protection circuit, and a short circuit, overvoltage, and overtemperature protection circuit. By adding a surge protection circuit, an electrostatic protection circuit, an electrostatic protection circuit, and a short circuit, overvoltage, and overtemperature protection circuit to the USB interface, the image acquisition device can be prevented from working abnormally or even damaged due to surge spikes, static electricity, and other impacts while ensuring the video transmission performance.
[0099] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0100] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
Claims
1. An image acquisition device compatible with both USB and WiFi transmission modes, characterized in that: The image acquisition device comprises: a USB interface, a WiFi module and a processing chip, wherein the USB interface is connected to a preset USB signal output pin of the processing chip, and the WiFi module is connected to a preset WiFi signal output pin of the processing chip, wherein: The USB interface is used to access an external display device via a USB connection cable, obtain a power supply enable signal provided by the external display device with the help of the USB connection cable, and output the video stream signal transmitted from the preset USB signal output pin to the external display device via the USB connection cable; The WiFi module is used to convert the video stream signal transmitted from the preset WiFi signal output pin into a wireless signal and send it out; The USB interface obtains the power supply enable signal provided by the external display device and outputs the video stream signal to the external display device based on the UVC protocol by means of the USB connection line.
2. The image acquisition device according to claim 1, characterized in that: The USB interface is connected to the OTG signal input port of the OTG connection line, and the OTG connection line further includes: a first USB data access port and a second USB data access port, the first USB data access port is connected to the peripheral display device through the USB connection line, and the second USB data access port is connected to the input interface of the preset peripheral memory, wherein: The first USB data access port is used to obtain a power supply enable signal provided by the external display device by means of the USB connection line, and output the video stream signal transmitted from the OTG signal input port to the external display device through the USB connection line; The second USB data access port is used to output the video stream signal transmitted from the OTG signal input port to the preset peripheral memory.
3. The image acquisition device according to claim 1, characterized in that: The image acquisition device comprises: a first USB interface and a second USB interface, wherein the first USB interface is connected to a first preset USB signal output pin of the processing chip, and the second USB interface is connected to a second preset USB signal output pin of the processing chip, the first USB interface is connected to the peripheral display device via a USB connection line, and the second USB interface is connected to an input interface of a preset peripheral memory, wherein: The first USB interface is used to obtain a power supply enable signal provided by the external display device by means of the USB connection line, and output the video stream signal transmitted from the first preset USB signal output pin to the external display device through the USB connection line; The second USB interface is used to output the video stream signal transmitted from the second preset USB signal output pin to the preset peripheral memory.
4. The image acquisition device according to claim 1, characterized in that: The processing chip is used to convert the signal collected by the image acquisition module into a WiFi data packet, and output the WiFi data packet through the preset WiFi signal output pin. The processing chip is also used to convert the signal collected by the image acquisition module into a UVC data packet, and output the UVC data packet through the preset USB signal output pin.
5. The image acquisition device according to claim 3, characterized in that: The processing chip is used to convert the signal collected by the image acquisition module into a UVC data packet, and output the UVC data packet through the first preset USB signal output pin.
6. The image acquisition device according to claim 5, characterized in that: The processing chip further includes: a control instruction receiving pin, wherein the control instruction receiving pin is used to receive a control instruction input by an external device; The processing chip is further used to determine whether to connect to the preset external memory according to the control instruction and in combination with the level state of the second preset USB signal output pin; The processing chip is specifically configured to output the UVC data packet through the first preset USB signal output pin and the second preset USB signal output pin if the preset peripheral memory is connected.
7. The image acquisition device according to claim 6, characterized in that: The control instructions input by the external device include: The first control instruction input by the peripheral display device through the USB connection line, or the second control instruction input by the external mobile terminal display device through the WiFi module.
8. The image acquisition device according to claim 1, characterized in that: The image acquisition device is a home PTZ camera.
9. The image acquisition device according to claim 1, characterized in that: The image acquisition device also includes: a power protection circuit, which includes: a surge protection circuit, an electrostatic protection circuit, and a short circuit, overvoltage and overtemperature protection circuit.