Image pickup apparatus, control method thereof, and computer apparatus

By integrating the serial port selection circuit in the camera device and controlling the target serial port opening with the main control chip, the problem of excessive interfaces in the existing camera device is solved, and convenient user operation and product size reduction is achieved.

CN119996820APending Publication Date: 2025-05-13YANTAI RAYTRON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510146020.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

There are too many interfaces for existing camera equipment, resulting in too many peripherals and cables, which brings inconvenience to users.

Method used

By integrating multiple serial ports into the serial port selection circuit, the main control chip controls the target serial port corresponding to the current required functional mode in the serial port selection circuit, so that the transmission channel between the first USB interface and the target serial port is turned on, and data interaction is realized.

Benefits of technology

It reduces the number of peripheral interfaces of the camera device, improves user operation convenience, and reduces product size.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996820A_ABST
    Figure CN119996820A_ABST
Patent Text Reader

Abstract

The invention provides camera equipment, a control method thereof and computer equipment, and the camera equipment integrates a plurality of serial ports into a serial port selection circuit, and a main control chip of the camera equipment controls a target serial port corresponding to a currently required target function mode in the serial port selection circuit to be opened. A transmission channel between the first USB interface and the target serial port is conducted, so that data interaction between the control equipment and the camera equipment in the target function mode is achieved. According to the method, the plurality of serial ports of the camera equipment can be directly or indirectly connected with the peripheral control equipment through the first USB interface, so that the number of peripheral interfaces of the camera equipment can be reduced, and the convenience of user operation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of camera technology, and in particular to a camera device and a control method thereof, and a computer device. Background Art

[0002] Camera equipment usually has various types of interfaces and / or serial ports to connect to control devices (such as PCs) to implement functions such as USB flash drives, image display, product program burning and parameter setting, and product adjustment.

[0003] like Figure 1 As shown, the camera device is provided with a TYPE C connector, which is connected to the TYPE C USB interface of the PC to realize the USB U disk function. The camera device is also provided with a video encoder interface for connecting to the PC to realize the image display function. The camera device is also provided with a serial port RS232 for connecting to the PC to realize the host computer control function. The camera device is also provided with a Debug interface, which is connected to the PC through a serial port to USB communication cable to realize the Debug function.

[0004] according to Figure 1 As shown, the camera device is provided with various types of interfaces and / or serial ports, so that the existing camera device has too many interfaces, which in turn requires too many peripherals and cables, causing inconvenience to the user. Summary of the invention

[0005] In order to solve the existing technical problems, the present application provides a camera device capable of reducing the number of peripheral interfaces, as well as a control method and computer device for the camera device.

[0006] In a first aspect, a camera device is provided, comprising a first USB interface, a serial port selection circuit, a main control chip and a camera chip; the serial port selection circuit comprises a plurality of serial ports, the serial ports are connected to the main control chip and / or the camera chip of the camera device, and different serial ports are respectively used to conduct transmission channels of signals in different functional modes; the camera chip is connected to the main control chip; one end of the first USB interface is connected to each serial port in the serial port selection circuit, and the other end is used to directly or indirectly connect to a control device;

[0007] The main control chip is used to control the opening of the target serial port corresponding to the currently required target function mode in the serial port selection circuit, so that the transmission channel between the first USB interface and the target serial port is turned on, so as to realize data interaction between the control device and the main control chip and / or camera chip of the camera device under the target function mode.

[0008] In a second aspect, a control method of a camera device is provided, for controlling the camera device described in the above embodiment, the method comprising:

[0009] Determine the target functional mode currently required for the control device;

[0010] Determine a corresponding target serial port according to the target functional mode;

[0011] The corresponding target serial port in the control serial port selection circuit is turned on, so that the transmission channel between the first USB interface and the target serial port is turned on, so as to realize the data interaction between the control device and the camera device in the target function mode.

[0012] According to a third aspect, a computer device is provided, comprising a processor and a memory connected to the processor, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the steps of the control method of the camera device described in the above embodiment are implemented.

[0013] The camera device provided in the above embodiment integrates multiple serial ports into the serial port selection circuit, and the main control chip of the camera device controls the serial port selection circuit to open the target serial port of the currently required target function mode, so that the transmission channel between the first USB interface and the target serial port is connected, so as to realize the data interaction between the control device and the camera device in the target function mode. This method can realize that the multiple serial ports of the camera device are directly or indirectly connected to the control device of the peripheral device through the first USB interface, thereby reducing the number of peripheral interfaces of the camera device and improving the convenience of user operation.

[0014] The camera device and computer device provided in the above embodiments belong to the same concept as the corresponding camera device embodiments, and thus have the same technical effects as the corresponding camera device embodiments, which will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 The figure is a schematic diagram of the connection between an existing control device and a camera device in an embodiment.

[0016] Figure 2 Schematic diagram of the connection between a control device and a camera device in an embodiment.

[0017] Figure 3 Schematic diagram of the connection between a control device and a camera device in an embodiment.

[0018] Figure 4 Flow chart of a method for controlling an imaging device in one embodiment.

[0019] Figure 5 FIG. 4 is a schematic diagram of a display window in an embodiment.

[0020] Figure 6 Schematic diagram of a menu interface in one embodiment.

[0021] Figure 7 Schematic diagram of the connection between a control device and a camera device in an embodiment. DETAILED DESCRIPTION

[0022] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0023] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0024] In the following description, the expression "some embodiments" is involved, which describes a subset of all possible embodiments. It should be noted that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.

[0025] In the following description, the terms "first, second, third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first, second, third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0026] like Figure 2 , a camera device 20 and a schematic diagram of the connection between the camera device 20 and the control device 10 are shown. The camera device 20 includes a first USB interface 21, a serial port selection circuit 22, a main control chip 23, a camera chip 24 and a wireless connection module 25.

[0027] The first USB interface 21 is used to directly or indirectly connect to the control device 10. For example, the first USB interface 21 can be directly used as a peripheral interface for directly connecting to the control device 10. The first USB interface 21 can also be used as an extended USB interface of a USB interface directly connected to the control device 10, and indirectly connected to the control device 10. For example, the camera device includes a second USB interface, and the second USB interface can be directly used as a peripheral interface for directly connecting to the control device 10. The first USB interface 21 is an extended USB interface on a hub connected to the second USB interface. At this time, the first USB interface 21 is indirectly connected to the control device 10. In this example, through the second USB interface and the hub, it is possible to connect more interfaces, serial ports or modules in the camera device through the second USB interface of a peripheral.

[0028] The wireless connection module 25 may be a WIFI module or a Bluetooth module, and the control device 10 and the camera device 20 may also be wirelessly connected via the wireless connection module 25 .

[0029] like Figure 2 As shown, the first USB interface 21 is connected to the serial port selection circuit 22, and the serial port selection circuit 22 is also connected to the main control chip 23 and the camera chip 24. The serial port selection circuit 22 may include multiple serial ports, each of which is connected to the main control chip 23 and / or the camera chip 24, and different serial ports are used to conduct the transmission channel of signals in different functional modes. One end of the first USB interface 21 is connected to each serial port in the serial port selection circuit 22, and the other end is used to directly or indirectly connect to the control device 10. The serial port selection circuit 22 selectively realizes the conduction of the transmission channel between the first USB interface 21 and one of the serial ports.

[0030] Among them, when the control device 10 is connected to the main control chip 23 of the camera device, the control device 10 determines the corresponding target serial port according to the currently required target function mode, and sends the information of the target serial port to the main control chip 23. The main control chip 23 is used to control the corresponding target serial port in the serial port selection circuit 22 to be turned on, so that the transmission channel between the first USB interface 21 and the target serial port is turned on, so as to realize data interaction between the control device 10 and the main control chip 23 and / or the camera chip 24 of the camera device 20 under the target function mode.

[0031] The above-mentioned camera device integrates multiple serial ports into the serial port selection circuit 22, and on this basis, the control device 10 can determine the currently required target function mode, and determine the corresponding target serial port according to the target function mode. The main control chip 23 of the camera device 20 controls the target serial port in the serial port selection circuit 22 to open, so that the transmission channel between the first USB interface 21 and the target serial port is connected, so as to realize the data interaction between the control device and the camera device in the target function mode. This method can realize that the multiple serial ports of the camera device 20 are directly or indirectly connected to the peripheral control device 10 through the first USB21 interface, thereby reducing the number of peripheral interfaces of the camera device 20 and improving the convenience of user operation.

[0032] like Figure 3 As shown, in a specific embodiment, the serial port selection circuit 22 may include a first serial port 253, a second serial port 254 and a third serial port 255. The first serial port 253 and the second serial port 254 are both connected to the main control chip 231, and the third serial port 255 is connected to the camera chip 24.

[0033] In one embodiment, the target function mode includes at least one of a debug mode, a main control chip host mode, and a camera chip host mode. Figure 3As shown, the serial port selection circuit includes at least one of a first serial port 253 , a second serial port 254 and a third serial port 255 .

[0034] The target serial port corresponding to the debug mode is the first serial port 253 , and the first serial port 253 is connected to the main control chip 23 of the camera device.

[0035] The target serial port corresponding to the host computer mode of the main control chip is the second serial port 254 , and the second serial port 254 is connected to the main control chip 23 of the camera device.

[0036] The target serial port corresponding to the camera chip host computer mode is the third serial port 255 , and the third serial port 255 is connected to the camera chip 24 of the camera device.

[0037] Among them, the main control chip 23 is the core processor of the camera device 20, responsible for managing and controlling the operation of the entire camera system. Its main functions include image signal processing, system control, data transmission and power manager. The camera chip 24, that is, the image sensor, is the key component in the camera device 20 responsible for capturing light signals and converting them into electrical signals. Its main functions include light signal capture, analog signal processing, analog-to-digital conversion and pixel array, etc.

[0038] The main control chip 23 and the camera chip 24 work closely together in the camera device 20 to achieve high-quality image capture and processing. The camera chip 24 is responsible for capturing light signals and converting them into electrical signals, while the main control chip 23 is responsible for further processing and optimizing these signals to ensure the quality of the final output image. At the same time, the main control chip 23 is also responsible for controlling various functions of the camera device 20 to ensure that the device can work normally in various environments.

[0039] Among them, the Debug mode is a program debugging mode, and the processing object of the Debug mode is the main control chip 23. In the Debug mode, the control device 10 can debug the control program of the main control chip 23 of the camera device 20. Specifically, the Debug mode is a program debugging mode. In the Debug mode, the control device 10 can debug the program of the main control chip 23 to help developers find and modify errors in the program.

[0040] Specifically, when the control device 10 is connected to the camera device 20, if the target function mode selected through the menu interface is the debug mode, the control device 10 sends a serial port switching instruction for instructing the first serial port 253 to be turned on to the camera device 20. In this way, the transmission channel between the first USB interface 21 and the first serial port 253 is used to realize data interaction between the control device 10 and the main control chip 23 in the debug mode.

[0041] In one embodiment, in the master chip host mode, the control device 10 acts as a host computer, and the master chip 23 acts as a slave computer, receiving instructions and data from the host computer, and performing corresponding control tasks according to these instructions and data. The control device 10, as a host computer, sends instructions and data to the master chip 23 to achieve remote control and monitoring of the device.

[0042] Specifically, the host computer mode of the main control chip can realize the functions of burning product programs and setting parameters to the main control chip 23.

[0043] Specifically, when the control device 10 is connected to the camera device 20, if the target function mode selected through the menu interface is the host mode of the main control chip, the control device 10 sends a serial port switching instruction for instructing the second serial port 254 to be turned on to the camera device 20. In this way, the transmission channel between the first USB interface 21 and the second serial port 254 is used to realize data interaction between the control device 10 and the main control chip 23 in the host mode of the main control chip.

[0044] In one embodiment, in the camera chip host mode, the control device 10 acts as a host computer, and the camera chip 24 acts as a slave computer. The camera chip 24 receives instructions and data from the host computer and performs corresponding control tasks according to these instructions and data. The control device 10, as a host computer, sends instructions and data to the camera chip 24 to achieve remote control and monitoring of the device.

[0045] Specifically, the camera chip host computer mode can realize the functions of burning product programs and setting parameters to the camera chip.

[0046] Specifically, when the control device 10 is connected to the camera device 20, if the target function mode selected through the menu interface is the camera chip host mode, the control device 10 sends a serial port switching instruction for instructing the third serial port 255 to be turned on to the camera device 20. In this way, the transmission channel between the first USB interface 21 and the third serial port 255 is used to realize data interaction between the control device 10 and the camera chip 24 in the camera chip host mode.

[0047] In the present embodiment, the communication serial ports corresponding to the three different functional modes are all integrated in the serial port selection circuit. By controlling the serial port corresponding to the current target functional mode to be enabled, the transmission channel between the target serial port and the first USB interface 21 is connected, so that the connection with the corresponding serial port can be achieved through the first USB interface. In this way, there is no need to set up a serial port for connecting to peripherals, thereby reducing the number of interfaces of the peripherals of the camera equipment.

[0048] In one embodiment, if Figure 3 As shown, the serial port selection circuit 22 further includes a serial port conversion module 251 and a switching circuit 252 .

[0049] The serial port conversion module 251 is connected to the first USB interface 21. The serial port conversion module 251 is a serial port to USB module, which realizes the conversion from the serial port to the USB interface function.

[0050] The switching circuit 252 is respectively connected to the serial port conversion module 251, the main control chip 23 and multiple serial ports, and is used to respond to the switching control instructions sent by the main control chip 23 to open the target serial port corresponding to the target functional mode. The main control chip 23 responds to the serial port switching instruction and sends a switching control instruction to the switching circuit 252 to open the target serial port corresponding to the target functional mode.

[0051] Specifically, the switching circuit 252 can be a switch or a channel selection IC, which can control the corresponding serial port to be turned on or off. When the main control chip 23 receives the serial port switching instruction, it sends a switching control instruction to the switching circuit 252. The switching circuit 252 responds to the switching control instruction and turns on the target serial port corresponding to the target functional mode. Specifically, the switching circuit 252 responds to the switching control instruction and turns on the control switch corresponding to the target serial port or the corresponding pin of the channel selection IC, so that the target serial port is turned on.

[0052] In this embodiment, the serial port selection circuit 22 also includes a serial port conversion module 251 and a switching circuit 252. The serial port conversion module 251 is connected to the first USB interface 21, and can realize the conversion of the serial port to the USB interface function. By setting a switching circuit 22 connected to the main control chip 23 and each serial port, the corresponding serial port can be switched on, thereby realizing serial port switching.

[0053] In another embodiment, Figure 3 As shown, the camera device 20 further includes a second USB interface 27 and a USB hub 26 connected to the second USB interface 27 .

[0054] The second USB interface 27 is used to connect the control device 10; the USB hub 26 has an extended first USB interface 21 and a third USB interface 28; the first USB interface 21 is used to connect the serial port selection circuit 22 of the camera device 20, and the third USB interface 28 is used to connect the main control chip 23 of the camera device 20.

[0055] The first USB interface 21, the second USB interface 27 and the third USB interface 28 may be any one of a standard SUB interface, a MiniUSB interface, a Micro USB interface and a USB Type-C interface.

[0056] The USB hub 26 is a device for expanding the number of USB interfaces of a computer. The second USB interface 27 is used to connect the control device 10. By setting the USB hub 26, multiple devices of the camera device 20 can be connected through one USB interface of an external device.

[0057] Specifically, the USB hub 26 includes a first USB interface 21 and a third USB interface 28. Among them, the third USB interface 28 is used to connect the main control chip of the camera device, so that the U disk function and image display function of the camera device can be realized. The first USB interface 21 is used to connect to the serial port selection circuit 22, and the target function mode switching corresponding to various types of serial ports can be realized. The camera device uses the USB hub 26 and the serial port selection circuit 22, and only needs to set up a peripheral USB interface to realize the multi-functional combination of USB UVC video display technology and COM port (serial port) to achieve the purpose of unified interface and multi-functional compatible design. In this way, the number of interfaces of the camera device is greatly reduced, and the problem of cluttered cables is avoided. For users, when connecting the camera device and the control device, there is no need for complicated wiring operations, which greatly improves the convenience of operation. With the reduction in the number of peripheral interfaces of the camera device, the product size of the camera device can also be further reduced.

[0058] Based on the same inventive concept, the present application also provides a control method for a camera device, which is applied to a control device 10 of the camera device 20, such as Figure 4 As shown, the method includes:

[0059] Step 402: determine the target functional mode currently required by the control device.

[0060] The target functional mode includes the functional mode corresponding to each serial port in the serial port selection circuit. The user can determine the target functional mode through the control device 10 based on the currently required operation.

[0061] Step 404, determining the corresponding target serial port according to the target functional mode.

[0062] In this application, in order to reduce the number of interfaces of the camera device for accessing peripherals, multiple serial ports are integrated into a serial port selection circuit. According to actual control requirements, the user chooses which functional mode to use and switches the serial port selection circuit to enable the corresponding target serial port.

[0063] The mapping relationship between the function mode and the target serial port has been preset. After obtaining the target function mode set by the user, the control device can determine the corresponding target serial port based on the mapping relationship between the function mode and the target serial port.

[0064] Step 406, controlling the corresponding target serial port in the serial port selection circuit to be turned on, so that the transmission channel between the first USB interface and the target serial port is turned on, so as to realize data interaction between the control device and the camera device in the target function mode.

[0065] Specifically, after the user selects the target function mode, the control device 10 can send an instruction to the main control chip 23 of the camera device 20, and the main control chip 23 responds to the instruction to control the target serial port in the serial port selection circuit 22 to open. After the target serial port is opened, other serial ports are closed, and the transmission channel between the first USB interface 21 and the target serial port is turned on. Since the first USB interface 21 is used to directly or indirectly connect to the control device 10. Therefore, through the transmission channel between the first USB interface and the target serial port, data interaction between the control device and the main control chip and / or the camera chip of the camera device in the target function mode can be realized.

[0066] The above-mentioned camera device control method integrates multiple serial ports into the serial port selection circuit of the camera device, determines the target function mode currently required by the control device on this basis, determines the corresponding target serial port according to the target function mode, and controls the target serial port in the serial port selection circuit to open by the camera device, so that the transmission channel between the first USB interface and the target serial port is turned on, so that the transmission channel between the first USB interface and the target serial port is turned on, so as to realize the data exchange between the control device and the camera device under the target function mode. This method can realize that the multiple serial ports of the camera device are directly or indirectly connected to the control device of the peripheral device through the first USB interface, thereby reducing the number of peripheral interfaces of the camera device and improving the convenience of user operation.

[0067] In one embodiment, the target function mode includes at least one of a debug mode, a main control chip host mode, and a camera chip host mode. The serial port selection circuit includes at least one of a first serial port 253, a second serial port 254, and a third serial port 255. The target serial port corresponding to the debug mode is the first serial port 253 connected to the main control chip 23. The target serial port corresponding to the main control chip host mode is the second serial port 254 connected to the main control chip 23. The target serial port corresponding to the camera chip host mode is the third serial port 255 connected to the camera chip 24.

[0068] In the present embodiment, the communication serial ports corresponding to the three different functional modes are all integrated in the serial port selection circuit 22. By controlling the serial port corresponding to the current target functional mode to be enabled, the transmission channel between the target serial port and the first USB interface 21 is connected, so that the connection with the corresponding serial port can be achieved through the first USB interface 21. In this way, there is no need to set up a serial port for connecting to peripherals, thereby reducing the number of interfaces of the peripherals of the camera equipment.

[0069] In one embodiment, determining the target function mode currently required by the control device includes: when the control device is connected to the camera device, acquiring the target function mode selected through a menu interface.

[0070] When the control device 10 is connected to the camera device 20, the target function mode can be selected through the menu interface of the control device 10. The menu interface can be used to set the target function mode. This makes it convenient for the user to select the target function mode according to actual needs.

[0071] The control device 10 and the camera device 20 may be connected via a wireless connection module 25 or via a wired connection via a USB interface. In both connection modes, the control device may select a target function mode via a menu interface.

[0072] In one embodiment, controlling the corresponding target serial port in the serial port selection circuit to open includes: sending a serial port switching instruction for indicating the opening of the target serial port to the camera device 20, the serial port switching instruction including information of the target serial port, the main control chip 23 of the camera device 20 responds to the serial port switching instruction, and controls the opening of the target serial port in the serial port selection circuit 22.

[0073] Specifically, after the user selects the target function mode, the control device 10 may send a serial port switching instruction for instructing the target serial port to be turned on to the camera device 20. The serial port switching instruction includes information of the target serial port. In one embodiment, the information of the target serial port is an identifier of the target serial port, such as a number of the target serial port.

[0074] After receiving the serial port switching instruction, the main control chip 23 controls the target serial port in the serial port selection circuit to open according to the information of the target serial port. After the target serial port is opened, other serial ports are closed, and the transmission channel between the first USB interface 21 and the target serial port is connected. Since the first USB interface 21 is used to directly or indirectly connect to the control device 10. Therefore, through the transmission channel between the first USB interface and the target serial port, data interaction between the control device and the main control chip and / or the camera chip of the camera device in the target function mode can be realized.

[0075] In one embodiment, when the control device is connected to the camera device, the target function mode selected through the menu interface is obtained, including: when the control device 10 is connected to the camera device 20, the camera data sent by the camera device is received, and the camera screen is displayed in the display window of the control device 10 according to the camera data; the menu interface is displayed in the display window; the menu interface includes multiple function mode selection options; and the target function mode is selected in response to the target function mode selected from the multiple function mode options in the menu interface.

[0076] Specifically, Figure 5As shown, when the control device 10 is connected to the camera device 20, the camera application on the control device 10 is opened to receive the camera data sent by the camera device 20, and the camera image is displayed in the display window according to the camera data. At the same time, the menu interface can also be displayed in the display window, such as Figure 5 In the right side of the display, the menu interface includes a plurality of function mode options, so that the user can set the function mode. In response to the target function mode selected from the plurality of function mode options in the menu interface.

[0077] In this embodiment, when the control device 10 and the camera device 20 are connected, the control device 10 can view the camera image captured by the camera device 20 and select the target function mode through the display window.

[0078] Among them, the control device 10 is directly or indirectly connected to the main control chip 23 of the camera device 20 through the first USB interface 21, or the control device 10 is wirelessly connected to the main control chip 23 through the wireless connection module 25 of the camera device 20; the camera chip 24 of the camera device 20 is connected to the main control chip 23.

[0079] Thus, when the control device 10 is connected to the camera device 20 by wired connection through a USB interface or wireless connection, not only can the real-time camera image be viewed, but the camera device 20 can also be set through the control device 10. This method can greatly improve the convenience of user operation in some remote application scenarios. For example, when a user uses the camera device 20 to observe a certain target from a distance, the camera device 20 can be set up near the target. At this time, the real-time camera image can be viewed through the control device 10. At the same time, when the user needs to set the target function mode, there is no need to operate the camera device 20, and the target function mode can be remotely selected through the control device 10. This method can improve the convenience of user operation.

[0080] Although the camera device 20 and the control device 10 can both view the camera image and set the target function mode in both wired and wireless connection modes, data interaction in the target function mode needs to be carried out through the transmission channel between the first USB interface 21 and the target serial port. Therefore, data interaction in the target function mode can only be achieved in the wired connection mode through the USB interface.

[0081] Specifically, when the control device 10 is directly or indirectly connected to the first USB interface 21, the control instructions and / or programs corresponding to the target functional mode are obtained; the control instructions and / or programs are sent to the main control chip 23 and / or the camera chip 24 of the camera device 20 through the transmission channel between the first USB interface 21 and the target serial port, so that the main control chip 23 and / or the camera chip 24 of the camera device 20 executes the control instructions and / or programs.

[0082] In one embodiment, the first USB interface 21 may be used as a communication interface of the peripheral device of the camera device 20 for connecting with the control device 10. In this case, the control device 10 may be directly connected to the first USB interface 21.

[0083] In one embodiment, the second USB interface 27 can be used as a communication interface of the camera device 20 peripheral for connecting to the control device 10. The second USB interface 27 is connected to the USB hub 26, and the first USB interface 21 is a USB interface in the hub. In this case, the control device 10 can be indirectly connected to the first USB interface 21 through the second USB interface 27.

[0084] like Figure 3 As shown, the USB hub 26 includes a first USB interface 21 and a third USB interface 28. Among them, the third USB interface 28 is used to connect the main control chip 23 of the camera device 20, so that the U disk function and image display function of the camera device 20 can be realized. The first USB interface 21 is used to connect to the serial port selection circuit 22, and can realize the target function mode function corresponding to various types of serial ports. The camera device uses the USB hub 26 and the serial port selection circuit 22, and only needs to set up a peripheral USB interface to realize the USB UVC video display technology and the COM port (serial port) multi-functional combination to achieve the purpose of unified interface and multi-functional compatible design. In this way, the number of interfaces of the camera device is greatly reduced, and the problem of cluttered cables is avoided.

[0085] When the control device 10 is directly or indirectly connected to the first USB interface 21, the control device 10 can obtain the control instruction and / or program corresponding to the target functional mode. The control instruction and / or program is sent to the main control chip 23 and / or the camera chip 24 of the camera device 20 through the transmission channel between the first USB interface 21 and the target serial port, so that the main control chip 23 and / or the camera chip 24 of the camera device 20 executes the control instruction and / or program.

[0086] For example, when the target function mode is set to Debug mode, when the control device 10 is directly or indirectly connected to the first USB interface, if the control device 10 obtains the debugging instructions and / or debugging program corresponding to the Debug mode, the debugging instructions and / or debugging program corresponding to the Debug mode are sent to the main control chip 23 of the camera device 20 through the transmission channel between the first USB interface 21 and the first serial port 253, so that the main control chip 23 executes the debugging instructions and / or debugging program corresponding to the Debug mode.

[0087] For another example, when the target function mode is set to the host mode of the main control chip, when the control device 10 is directly or indirectly connected to the first USB interface 21, if the control device 10 obtains the control instruction and / or program corresponding to the host mode of the main control chip, the control instruction and / or program corresponding to the host mode of the main control chip is sent to the main control chip 23 of the camera device 20 through the transmission channel between the first USB interface 21 and the second serial port 254, so that the main control chip 23 executes the control instruction and / or program corresponding to the host mode of the main control chip. Among them, the control instruction and / or program can be a product burning program and setting parameters for the main control chip 23.

[0088] For another example, when the target function mode is set to the camera chip host mode, when the control device 10 is directly or indirectly connected to the first USB interface 21, if the control device 10 obtains the control instruction and / or program corresponding to the camera chip host mode, the control instruction and / or program corresponding to the camera chip host mode is sent to the camera chip 24 of the camera device 20 through the transmission channel between the first USB interface 21 and the third serial port 255, so that the camera chip 24 executes the control instruction and / or program corresponding to the camera chip host mode. Among them, the control instruction and / or program can be a product burning program and setting parameters for the camera chip 24.

[0089] In one embodiment, obtaining control instructions and / or programs corresponding to the target function mode includes: displaying an operation interface of the target function mode in a display window; and obtaining control instructions and / or programs corresponding to the target function mode configured through the operation interface.

[0090] That is, when the control device 10 is directly or indirectly connected to the first USB interface 21, the operation interface of the target function mode can be displayed in the display window in response to the user's setting operation. The operation interface of the target function mode can cover the camera screen, or partially cover the camera screen. When the camera screen is partially covered, the control instructions and / or program configuration operations of the target function mode can be completed while the camera screen is observed in real time. The user can configure the control instructions and / or programs corresponding to the target function mode based on the operation interface of the target function mode.

[0091] The menu interface of an embodiment is as follows Figure 6 As shown, SOC1 Debug corresponds to Debug mode, SOC1 host computer corresponds to main control chip host computer mode, and SOC2 host computer corresponds to camera chip host computer mode. In addition to the above functional modes, parameters such as screen device, WIFI settings and serial port settings are also provided for user configuration. After the user selects a certain functional mode, the operation interface of the target functional mode is displayed in the display window accordingly, so that the user can configure the control instructions and / or programs corresponding to the target functional mode.

[0092] In this embodiment, an operation interface of the target function mode is further provided to facilitate the user to configure the control instructions and / or programs corresponding to the target function mode.

[0093] The camera device and the control method of the camera device based on the present application can realize the application of the camera device in remote operation. Traditional remote operation is to use a mobile phone to transmit one-way video data with the camera device through WIFI and Bluetooth. However, WIFI video transmission is one-way transmission and is easily affected by the distance and may cause freezing.

[0094] Utilizing the camera device and the control method of the camera device of the present application, the camera device utilizes a USB hub and a serial port selection circuit, and only needs to set up a USB interface of a peripheral device to realize the multifunctional combination of USB UVC video display technology and COM port (serial port), so as to achieve the purpose of unified interface and multifunctional compatible design. The USB UVC video display and USB serial port communication functions are the basis for realizing remote monitoring and operation. When the user uses the camera device to observe a certain target from a distance, the camera device can be set up near the target. At this time, the real-time camera image can be viewed through the control device. At the same time, when the user needs to set the target function mode, there is no need to operate the camera device, and the target function mode can be remotely selected through the control device. At this time, a USB extension cable is used to connect the control device to the camera device through the USB interface, and the operation interface of the target function mode is displayed in the display window, so that the user can configure the control instructions and / or programs corresponding to the target function mode through the operation interface.

[0095] like Figure 7 As shown, the control device can be a handheld terminal or PC with camera-related applications installed. In addition to remote wired monitoring scenarios, in product debugging or program upgrade scenarios, the control device can also be connected to the camera device through a USB interface, and the corresponding target function mode can be selected to implement product debugging or program upgrade functions.

[0096] On the other hand, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the control method of the above-mentioned camera device is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0097] On the other hand, an embodiment of the present application further provides a computer device, which includes a processor and a memory connected to the processor, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, each process of an embodiment of a control method for a camera device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0098] On the other hand, an embodiment of the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, each process of an embodiment of a control method for a camera device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0099] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0100] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.

[0101] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A camera device, characterized in that: The device comprises a first USB interface (21), a serial port selection circuit (22), a main control chip (23) and a camera chip (24); the serial port selection circuit (22) comprises a plurality of serial ports, the serial ports are connected to the main control chip (23) and / or the camera chip (24) of the camera device (20), and different serial ports are respectively used to conduct transmission channels of signals in different functional modes; the camera chip (24) is connected to the main control chip (23); one end of the first USB interface (21) is connected to each serial port in the serial port selection circuit (22), and the other end is used to directly or indirectly connect to a control device (10); The main control chip (23) is used to control the opening of a target serial port corresponding to a currently required target functional mode in the serial port selection circuit (22), so as to connect a transmission channel between the first USB interface (21) and the target serial port, thereby realizing data interaction between the control device (10) and the main control chip (23) and / or the camera chip (24) of the camera device (20) in the target functional mode.

2. The imaging device according to claim 1, wherein: The target function mode includes at least one of a debug mode, a main control chip host mode and a camera chip host mode; the serial port selection circuit (22) includes at least one of a first serial port (253), a second serial port (254) and a third serial port (255); The target serial port corresponding to the Debug mode is a first serial port (253), and the first serial port (253) is connected to a main control chip (23) of the camera device (20); The target serial port corresponding to the host computer mode of the main control chip is a second serial port (254), and the second serial port (254) is connected to the main control chip (23) of the camera device (20); The target serial port corresponding to the camera chip host computer mode is a third serial port (255), and the third serial port (255) is connected to the camera chip (24) of the camera device (20).

3. The imaging device according to claim 1, wherein: The serial port selection circuit (22) further includes: a serial port conversion module (251) and a switching circuit (252); The serial port conversion module (251) is connected to the first USB interface (21); The switching circuit (252) is respectively connected to the serial port conversion module (251), the main control chip (23) and the plurality of serial ports, and is used to respond to a switching control instruction sent by the main control chip (23) to enable a target serial port corresponding to the target functional mode.

4. The imaging device according to any one of claims 1 to 3, characterized in that: The camera device further comprises a second USB interface (27) and a USB hub (26) connected to the second USB interface (27); The second USB interface (27) is used to connect to the control device (10); the USB hub (26) has an extended first USB interface (21) and a third USB interface (28); the third USB interface (28) is used to connect to the main control chip (23) of the camera device (20).

5. A method for controlling a camera device, for controlling the camera device (20) according to any one of claims 1 to 4, characterized in that: The method comprises: Determining a target functional mode currently required by the control device (10); Determine a corresponding target serial port according to the target functional mode; The corresponding target serial port in the serial port selection circuit (22) is controlled to be turned on, so that the transmission channel between the first USB interface (21) and the target serial port is turned on, so as to realize data interaction between the control device (10) and the camera device (20) in the target function mode.

6. The control method of the imaging device according to claim 5, characterized in that: The determining of the target functional mode currently required by the control device includes: When the control device (10) is connected to the camera device (20), a target function mode selected by a user through a menu interface of the control device (10) is acquired.

7. The control method of the imaging device according to claim 5, characterized in that: The controlling the corresponding target serial port in the serial port selection circuit (22) to open comprises: A serial port switching instruction for instructing the target serial port to be turned on is sent to the camera device (20), wherein the serial port switching instruction includes information of the target serial port, and the main control chip (23) of the camera device (20) responds to the serial port switching instruction to control the target serial port in the serial port selection circuit (22) to be turned on.

8. The method for controlling an imaging device according to claim 6, wherein: When the control device (10) is connected to the camera device (20), obtaining a target function mode selected through a menu interface includes: When the control device (10) is connected to the camera device (20), receiving the camera data sent by the camera device (20), and displaying the camera picture in the display window of the control device (10) according to the camera data; Displaying a menu interface in the display window; the menu interface includes a plurality of function mode selection options; In response to a target functional mode selected from a plurality of functional mode options in the menu interface.

9. The control method of the imaging device according to any one of claims 5 to 8, characterized in that: The method further comprises: When the control device (10) is directly or indirectly connected to the first USB interface (21), obtaining a control instruction and / or program corresponding to the target functional mode; The control instruction and / or program is sent to the main control chip (23) and / or the camera chip (24) of the camera device (20) via a transmission channel between the first USB interface (21) and the target serial port, so that the main control chip (23) and / or the camera chip (24) of the camera device (20) executes the control instruction and / or program.

10. A computer device, characterized in that: It comprises a processor and a memory connected to the processor, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the steps of the control method of the camera device as described in any one of claims 5 to 9 are implemented.