Video interface female and male connectors, electronic devices, adapter cables, and external devices
By designing a multi-interface video interface female and male, combining detection and switching units, the problem of single interface in the existing technology is solved, flexible adaptation and video data processing for multiple cameras is realized, and the video acquisition system is improved. compatibility and flexibility.
Patent Information
- Application Number
- CN202110530171.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-14
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2041-05-14
AI Technical Summary
The existing video acquisition device has a single interface and cannot flexibly access a variety of commonly used cameras, which cannot meet the diversity and flexibility requirements of different industries and scenarios for video input interfaces.
A video interface female and male head is designed, integrating a universal serial bus interface, a digital component serial interface, an analog high-definition camera interface, and a registered socket interface, and plug-in and unplug events are realized through plug-in and unplug detection and type detection pins. It supports switching and data processing of multiple interfaces, combined with the adapter switching unit and the video encoding and codec unit.
It greatly improves compatibility, diversity and flexibility for external cameras, and can adapt to different types of cameras and meets diverse video acquisition needs.
Smart Images

Figure CN113473056B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of intelligent devices, and in particular, relates to a video interface female and male head, an electronic device, an adapter cable, and an external device. Background Art
[0002] With the popularization of 4G and 5G networks, video acquisition and transmission technologies will be more widely used. As far as video acquisition and transmission devices are concerned, the diversity of video input devices and connection flexibility will inevitably face higher requirements.
[0003] For example, when performing tasks, practitioners in a special industry need video acquisition devices such as helmet cameras or vehicle cameras to collect videos and transmit them to a remote command center; when shooting certain special scenes (such as super wide angle, super night vision, and super long focal length), practitioners of live broadcasting or aerial photography need video acquisition devices such as professional cameras to collect videos. However, the video input interfaces supported by current video acquisition devices are relatively single and cannot flexibly connect to a variety of commonly used cameras. Summary of the invention
[0004] On one hand, the present application provides a video interface female head, the video interface female head is provided with a universal serial bus interface, a digital component serial interface, an analog high-definition camera interface and a registered socket interface, the video interface female head is provided with pins, the pins form the universal serial bus interface, the digital component serial interface, the analog high-definition camera interface and the registered socket interface, and the pins include:
[0005] A plug-in detection pin, used to detect a plug-in event generated by plugging and unplugging the video interface female connector and the video interface male connector; and
[0006] The type detection pin is used to detect the camera type information in the external device electrically connected to the video interface male connector and the video interface female connector.
[0007] On the other hand, the present application provides an electronic device, including the above-mentioned video interface female connector, and the electronic device also includes:
[0008] A switching unit, electrically connected to the video interface female connector, for switching the interface in the video interface female connector according to the camera type information;
[0009] The video encoding and decoding unit is used to receive the video frame data transmitted from the video interface female head, to encode the video frame data, and to decode the video encoding data to form video frame data.
[0010] On the other hand, the present application provides a video interface male head, which is used to be electrically connected to the above-mentioned video interface female head, and the video interface male head is provided with at least one interface of a universal serial bus interface, a digital component serial interface, an analog high-definition camera interface, and a registered socket interface, and the video interface male head is provided with pins, and the pins of the video interface male head form the at least one interface, and the pins include:
[0011] A plug-in detection pin, used to detect a plug-in event generated by plugging and unplugging the video interface female connector and the video interface male connector; and
[0012] The type detection pin is used to detect the camera type information in the external device electrically connected to the video interface male connector and the video interface female connector.
[0013] On the other hand, the present application provides an adapter cable, including the above-mentioned video interface male connector, and the adapter cable also includes:
[0014] a plug-in signal generating unit, electrically connected to the plug-in detection pin of the video interface male connector, and configured to generate a plug-in signal when a plug-in event occurs when the video interface female connector and the video interface male connector are plugged in and out; and
[0015] The type storage read-write unit is electrically connected to the type detection pin of the video interface male head and is used to store the type information of the adapter cable so that the type detection pin of the video interface male head can obtain the camera type information in the external device electrically connected to the adapter cable.
[0016] On the other hand, the present application provides an external device, including the above-mentioned video interface male connector, and the external device also includes:
[0017] a plug-in signal generating unit, electrically connected to the plug-in detection pin of the video interface male connector, and configured to generate a plug-in signal when a plug-in event occurs when the video interface female connector and the video interface male connector are plugged in and out; and
[0018] The type storage read-write unit is electrically connected to the type detection pin of the video interface male head and is used to store the camera type information in the external device so that the type detection pin of the video interface male head obtains the camera type information in the external device.
[0019] On the other hand, the present application provides a video acquisition system.
[0020] The video acquisition system includes the electronic device described above, the adapter cable described above, and an external device provided with a camera;
[0021] Alternatively, the video acquisition system includes the electronic device mentioned above and the external device mentioned above.
[0022] On the other hand, the present application provides a software architecture, which is applied to the electronic device described above, or to the electronic device in the video acquisition system described above, and the software architecture includes:
[0023] A driver layer, used for switching to a driver matching the type information according to the camera type information in the external device, the driver matching the type information is used for generating an external device node according to the type information, for transmitting a control instruction for controlling the camera to the camera, for obtaining the status data of the camera, and for obtaining the video frame data shot by the camera;
[0024] A camera hub layer, used for detecting and storing the external device node generated by the driver matching the type information, for conveying a control instruction for controlling the camera to the driver matching the type information, and for processing the video frame data;
[0025] a framework layer, provided with a camera application program interface, and a camera client and a camera server established by calling the camera application program interface and communicating with each other, the camera server being used to convey a control instruction for controlling the camera to the camera hub layer, and being used to convey a control instruction for processing the video frame data to the camera hub layer, the camera hub layer being used to receive the status data uploaded by the driver matching the type information and upload it to the camera server; and
[0026] The application layer is used to input control instructions, and the camera client responds to the control instructions input by the application layer and transmits the control instructions for controlling the camera to the server.
[0027] On the other hand, the present application provides a method for implementing a software architecture, which is applied to the above-mentioned software architecture, and the method includes:
[0028] If the plug-in detection driver detects that the plug-in event between the electronic device and the external device is an insertion event, the type detection driver detects the camera type information in the external device;
[0029] If the type detection driver detects the type information, the driver layer loads a driver that matches the type information, and the driver that matches the type information generates an external device node that matches the type information.
[0030] The technical solution described in this application has the following beneficial effects: this application greatly improves the compatibility, diversity and flexibility of external cameras by integrating multiple common interfaces such as universal serial bus interface, digital component serial interface, analog high-definition camera interface and registered socket interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic diagram of a video acquisition system in accordance with an embodiment of the present application is disclosed;
[0032] Figure 2 Disclose this application Figure 1 The front view of the video interface female connector in the embodiment shown,
[0033] Figure 3 Disclose this application Figure 2 A Ⅱ-Ⅱ cross-sectional view of the video interface female connector in the illustrated embodiment;
[0034] Figure 4 Disclose this application Figure 1 A schematic diagram of the framework of the adapter cable in the illustrated embodiment;
[0035] Figure 5 Disclose this application Figure 1 A schematic diagram of a framework in another embodiment of the video acquisition system in the illustrated embodiment;
[0036] Figure 6 Disclose this application Figure 5 A schematic diagram of the framework of the external device in the illustrated embodiment;
[0037] Figure 7 Disclose this application Figure 3 A schematic diagram of a framework in an embodiment of an external device in the illustrated embodiment;
[0038] Figure 8 Disclose this application Figure 3 A schematic diagram of a framework in another embodiment of the external device in the illustrated embodiment;
[0039] Fig. 9 Disclose this application Figure 3 A schematic diagram of a framework in another embodiment of the external device in the illustrated embodiment;
[0040] Fig.10 Disclose this application Figure 3 A schematic diagram of a framework in yet another embodiment of the external device in the illustrated embodiment;
[0041] Fig.11 Disclose this application Figure 1 The front view of the male connector of the video interface in the embodiment shown,
[0042] Fig.12Disclose this application Fig.11 A cross-sectional view of the male connector of the video interface taken along line XI-XI in the illustrated embodiment;
[0043] Fig.13 Disclose this application Figure 4 A frame diagram of the adapter cable in the illustrated embodiment;
[0044] Fig.14 A framework diagram of the software architecture in one embodiment of the present application is disclosed. DETAILED DESCRIPTION
[0045] The present application is further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present application, but are not intended to limit the scope of the present application. Similarly, the following examples are only some embodiments of the present application rather than all embodiments, and all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0046] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0047] See also Figure 1 , which discloses a framework schematic diagram of a video acquisition system in one embodiment of the present application. The video acquisition system 100 may include an electronic device 200, a switching cable 300 electrically connected to the electronic device 200, and an external device 400 electrically connected to the switching cable 300. Among them, the external device 400 is an electronic device provided with a camera. The electronic device 200 realizes video frame data photography through the camera of the external device 400, and the electronic device 200 can also store and / or process and / or transmit the video frame data. The switching cable 300 is used to adapt the interface of the electronic device 200 and the interface of the external device 400, so that the interface of the electronic device 200 and the interface of the external device 400 are electrically connected through the switching cable 300 when they are incompatible.
[0048] As used herein, "electronic equipment" (which may also be referred to as "terminals" or "mobile terminals" or "electronic devices") include, but are not limited to, devices that are configured to receive / send communication signals via a wireline connection (e.g., via a public switched telephone network (PSTN), a digital subscriber line (DSL), digital cable, a direct cable connection, and / or another data connection / network) and / or via a wireless interface (e.g., for a cellular network, a wireless local area network (WLAN), a digital television network such as a DVB-H network, a satellite network, an AM-FM broadcast transmitter, and / or another communication terminal). A communication terminal that is configured to communicate via a wireless interface may be referred to as a "wireless communication terminal", "wireless terminal" or "mobile terminal". Examples of mobile terminals include, but are not limited to, satellite or cellular phones; personal communication system (PCS) terminals that may combine cellular radiotelephones with data processing, fax, and data communication capabilities; PDAs that may include radiotelephones, pagers, Internet / Intranet access, Web browsers, organizers, calendars, and / or global positioning system (GPS) receivers; and conventional laptop and / or palmtop receivers or other electronic devices that include radiotelephone transceivers. A mobile phone is an electronic device equipped with a cellular communication module.
[0049] See also Figure 1 The electronic device 200 may include a video interface female connector 201 electrically connected to the adapter cable 300 to receive video frame data input at the adapter cable 300, a switching unit 202 electrically connected to the video interface female connector 201 to switch the line of the interface in the video interface female connector 201 according to the type of the adapter cable 300, a video codec unit 203 electrically connected to the switching unit 202 to encode the video frame data, a main control unit 204 electrically connected to the switching unit 202 and the video codec unit 203 to control the switching unit 202 and the video codec unit 203, a storage unit 205 electrically connected to the video codec unit 203 to store the encoded video frame data, a wireless communication unit 206 electrically connected to the video codec unit 203 to transmit the encoded video frame data to other devices, and a power module 207 for providing power for the normal operation of the entire electronic device 200.
[0050] It is understandable that, in addition to the above-mentioned units, the electronic device 200 may also include other units such as at least one of a display unit, a front camera unit, and a rear camera unit, etc., which will not be described in detail here.
[0051] The video interface female connector 201 is provided with a variety of interfaces, such as USB (Universal Serial Bus), SDI (Serial Digital Interface), AHD (Analog High Definition), RJ45 (Registered Jack 45), etc. Of course, the video interface female connector 201 can also be provided with other types of video interfaces, which will not be described in detail here.
[0052] See also Figure 2 and Figure 3 , Figure 2 Disclose this application Figure 1 The front view of the video interface female connector 201 in the embodiment shown, Figure 3 Disclose this application Figure 2 II-II cross-sectional view of the video interface female connector 201 in the illustrated embodiment. The video interface female connector 201 includes a female connector body 10, a first plugging structure 11 disposed on the female connector body 10, and a pin 13 disposed on the female connector body 10. Among them, the first plugging structure 11 is used to be plugged and fixed with the adapter cable 300 to achieve the connection and fixation between the electronic device 200 and the adapter cable 300. The pin 13 can form at least one of a variety of interfaces such as USB, SDI, AHD, RJ45, etc. For example, the pin 13 can form four interfaces of USB, SDI, AHD and RJ45. The pin 13 is used to be electrically connected to the adapter cable 300 to achieve video frame data transmission between the video interface female connector 201 and the adapter cable 300.
[0053] It should be noted that the terms "first", "second", etc., herein and hereinafter, are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, features defined as "first", "second", etc., etc. may explicitly or implicitly include one or more of the said features.
[0054] The female connector body 10 may be made of a hard material, specifically, may be made of an insulating material.
[0055] The first plugging structure 11 may include a first sub-plugging structure 111 disposed on the female connector body 10 and a second sub-plugging structure 112 disposed opposite to the first sub-plugging structure 111 and disposed on the same side of the female connector body 10 .
[0056] The first sub-plug structure 111 can be a snap-in slot that extends into the female connector body 10 and is tilted away from the second sub-plug structure 112 to snap-in with the adapter cable 300 .
[0057] The second sub-plug structure 112 may include a circular groove 1121 and a fan-shaped groove 1122. The circular groove 1121 extends into the female body 10 to be plugged and fixed with the adapter cable 300. The fan-shaped groove 1122 extends into the female body 10 to be plugged and fixed with the adapter cable 300. In one embodiment, the circular groove 1121 is arranged between the fan-shaped groove 1122 and the first sub-plug structure 111. In one embodiment, in order to strengthen the fixed state between the female body 10 and the adapter cable 300, an internal thread may be arranged in the circular groove 1121 so that the female body 10 and the adapter cable 300 are screwed and fixed.
[0058] In one embodiment, one of the circular groove 1121 and the fan-shaped groove 1122 can be omitted. In one embodiment, the shapes of the circular groove 1121 and the fan-shaped groove 1122 can be other shapes, which will not be described in detail.
[0059] The pin 13 is disposed between the first sub-plug structure 111 and the second sub-plug structure 112. The pin 13 is electrically connected to the adapter cable 300 when the first plug structure 11 is plugged and fixed to the adapter cable 300.
[0060] The pin 13 may include a plurality of sub-pins. The plurality of sub-pins may be arranged in a matrix. The specific number of sub-pins may be set according to actual needs. Figure 2 The pin 13 may include 20 sub-pins. The 20 sub-pins are arranged in a matrix, and the overall matrix is arranged in 2 columns and 10 rows.
[0061] Among them, the 20 sub-pins can be respectively the first sub-pin 1311, the second sub-pin 1312, the third sub-pin 1313, the fourth sub-pin 1314, the fifth sub-pin 1315, the sixth sub-pin 1316, the seventh sub-pin 1317, the eighth sub-pin 1318, the ninth sub-pin 1319, the tenth sub-pin 1320, the eleventh sub-pin 1321, the twelfth sub-pin 1322, the thirteenth sub-pin 1323, the fourteenth sub-pin 1324, the fifteenth sub-pin 1325, the sixteenth sub-pin 1326, the seventeenth sub-pin 1327, the eighteenth sub-pin 1328, the nineteenth sub-pin 1329 and the twentieth sub-pin 1330.
[0062] The functional description of the 20 sub-pins in the female header body 10 is shown in the following table:
[0063]
[0064]
[0065] In one embodiment, see Figure 2The first sub-pin 1311, the second sub-pin 1312, the third sub-pin 1313, the fourth sub-pin 1314, the fifth sub-pin 1315, the sixth sub-pin 1316, the seventh sub-pin 1317, the eighth sub-pin 1318, the ninth sub-pin 1319, and the tenth sub-pin 1320 are arranged in the first column in the direction from the first sub-plug-in structure 111 to the second sub-plug-in structure 112, and the eleventh sub-pin 1321, the twelfth sub-pin 1322, the thirteenth sub-pin 1323, the fourteenth sub-pin 1324, the fifteenth sub-pin 1325, the sixteenth sub-pin 1326, the seventeenth sub-pin 1327, the eighteenth sub-pin 1328, the nineteenth sub-pin 1329 and the twentieth sub-pin 1330 are arranged in the second column in the direction from the first sub-plug-in structure 111 to the second sub-plug-in structure 112.
[0066] In one embodiment, ground shielding members are provided on the second sub-pin 1312, the thirteenth sub-pin 1323, and the circuits in the electronic device 200 respectively connected to the second sub-pin 1312 and the thirteenth sub-pin 1323, so as to prevent electromagnetic interference from being caused to the signals in the circuits in the second sub-pin 1312, the thirteenth sub-pin 1323, and the electronic device 200 respectively connected to the second sub-pin 1312 and the thirteenth sub-pin 1323.
[0067] In one embodiment, the sub-pins in the pins 13 may be pin contacts.
[0068] Please refer again Figure 1 , the switching unit 202 is used to switch the line of the video interface female head 201 according to the type of the adapter cable 300. For example, if the adapter cable 300 is a USB adapter cable, the switching unit 202 switches the line to the USB interface in the video interface female head 201 according to the USB adapter cable, so as to transmit the video frame data between the adapter cable 300 and the video interface female head 201. For example, if the adapter cable 300 is an SDI adapter cable, the switching unit 202 switches the line to the SDI interface in the video interface female head 201 according to the SDI adapter cable, so as to transmit the video frame data between the adapter cable 300 and the video interface female head 201. For example, if the adapter cable 300 is an AHD adapter cable, the switching unit 202 switches the line to the AHD interface in the video interface female head 201 according to the AHD adapter cable, so as to transmit the video frame data between the adapter cable 300 and the video interface female head 201.
[0069] The video codec unit 203 encodes the video frame data to form video coded data. Of course, the video codec unit 203 can also be used to decode the video coded data to form video frame data.
[0070] The main control unit 204 is used to control the operation of the electronic device 200. The main control unit 204 can be a CPU (Central Processing Unit). The main control unit 204 can also be a GPU (Graphics Processing Unit). The main control unit 204 can also be an integrated circuit chip with signal processing capabilities. The main control unit 204 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0071] In one embodiment, the main control unit 204 may also be electrically connected to at least one of the storage unit 205 , the wireless communication unit 206 and the power module 207 to control the storage unit 205 and / or the wireless communication unit 206 and / or the power module 207 accordingly.
[0072] In one embodiment, the main control unit 204 may not be electrically connected to at most two of the switching unit 202 and the video codec unit 203 .
[0073] The storage unit 205 can be used to store video encoding data. The video encoding data in the storage unit 205 can be formed by encoding the video frame data by the video encoding and decoding unit 203, or can be received by the wireless communication unit 206 from an external device.
[0074] Of course, the storage unit 205 can also be used to store the program data executed by the main control unit 204 and the data of the main control unit 204 during the processing. Even in some embodiments, the storage unit 205 is not used to store video encoding data. In one embodiment, the storage unit 205 may include a non-volatile storage part for storing the above-mentioned program data. In one embodiment, the storage unit 205 can be used as the memory of the main control unit 204 to cache the data in the process of the main control unit 204, and the program data is actually stored in a device outside the main control unit 204. The main control unit 204 is connected to an external device and calls the program data stored externally to perform corresponding processing. In one embodiment, the storage unit 205 may not be a part of the electronic device 200, but is set in a device outside the electronic device 200.
[0075] The wireless communication unit 206 may be a 4G / 5G communication unit. In one embodiment, the wireless communication unit 206 may not be a part of the electronic device 200 but may be disposed in a device other than the electronic device 200 .
[0076] It is understandable that the video coded data in the storage unit 205 can also be transmitted to other devices through the wireless communication unit 206. Accordingly, the video frame data can also be input into the electronic device 200 through the wireless communication unit 206, and encoded by the video codec unit 203 to form video coded data. In addition, the video coded data in the storage unit 205 can also be decoded by the video codec unit 203 to form video frame data.
[0077] Please also read Figure 1 and Figure 4 , Figure 4 Disclose this application Figure 1 The schematic diagram of the framework of the adapter cable 300 in the illustrated embodiment. The adapter cable 300 is provided with a video interface male connector 301 and an adapter interface 302 electrically connected to each other. The video interface male connector 301 can be electrically connected to the electronic device 200, such as the video interface female connector 201, so that the electronic device 200 can convert the video interface female connector 201 into an adapter interface 302, such as a USB, SDI, AHD, RJ45, etc. adapter interface through the adapter cable 300, so as to be electrically connected to the external device 400 through the adapter interface 302. Among them, the types of the adapter interface 302 are different, which can facilitate the transfer switching unit 202 to switch the line according to the type of the adapter interface 302.
[0078] The external device 400 may be a camera, or a device provided with a camera. In one embodiment, the external device 400 may be a helmet provided with a camera, VR (virtual reality) / AR (augmented reality) glasses, etc.
[0079] In one embodiment, see Figure 5 , Figure 5 Disclose this application Figure 1 The schematic diagram of the framework of another embodiment of the video acquisition system 100 in the illustrated embodiment. The adapter cable 300 may be a part of the external device 400. That is, the external device 400 is provided with a video interface male connector 301. The video interface male connector 301 of the external device 400 is electrically connected to the video interface female connector 201 of the electronic device 200, so as to realize the plugging and unplugging between the external device 400 and the electronic device 200, and realize the assembly of the video acquisition system 100.
[0080] In one embodiment, see Figure 6 , Figure 6 Disclose this application Figure 5The schematic diagram of the framework of the external device 400 in the illustrated embodiment. The external device 400 may include a USB camera 401, a USB adapter 3021 electrically connected to the USB camera 401, and a video interface male connector 301 electrically connected to the USB adapter 3021. The USB camera 401 is a camera provided with a USB interface. The USB camera 401 is electrically connected to the USB adapter 3021 via the USB interface, so that the USB camera 401 has a video interface male connector 301, so as to be electrically connected to the video interface female connector 201 of the electronic device 200.
[0081] In one embodiment, see Figure 7 , Figure 7 Disclose this application Figure 3 The schematic diagram of the framework in an embodiment of the external device 400 in the illustrated embodiment. The external device 400 may include a digital camera 402, an SDI adapter 3022 electrically connected to the digital camera 402, and a video interface male head 301 electrically connected to the SDI adapter 3022. The digital camera 402 is a camera provided with an SDI interface. The digital camera 402 is electrically connected to the SDI adapter 3022 via the SDI interface, so that the digital camera 402 has a video interface male head 301, so as to be electrically connected to the video interface female head 201 of the electronic device 200.
[0082] In one embodiment, see Figure 8 , Figure 8 Disclose this application Figure 3 A schematic diagram of a framework in another embodiment of the external device 400 in the illustrated embodiment. The external device 400 may include an analog camera 403, an AHD adapter 3023 electrically connected to the analog camera 403, and a video interface male connector 301 electrically connected to the AHD adapter 3023. The analog camera 403 is a camera provided with an AHD interface. The analog camera 403 is electrically connected to the AHD adapter 3023 via the AHD interface, so that the analog camera 403 has a video interface male connector 301, so as to be electrically connected to the video interface female connector 201 of the electronic device 200.
[0083] In one embodiment, see Fig. 9 , Fig. 9 Disclose this application Figure 3A schematic diagram of a framework in another embodiment of the external device 400 in the illustrated embodiment. The external device 400 may include a network camera (IP Camera, IPC) 404, an RJ45 adapter 3024 electrically connected to the network camera 404, and a video interface male connector 301 electrically connected to the RJ45 adapter 3024. The network camera 404 is a camera provided with an RJ45 interface. The network camera 404 is electrically connected to the RJ45 adapter 3024 via the RJ45 interface, so that the network camera 404 has a video interface male connector 301, so as to be electrically connected to the video interface female connector 201 of the electronic device 200.
[0084] In one embodiment, the external device 400 is a customized device, and does not have a design of an adapter 302, but has a video interface male connector 301, so as to be directly electrically connected to the electronic device 200 through the video interface male connector 301. Fig.10 , Fig.10 Disclose this application Figure 3 The framework schematic diagram of another embodiment of the external device 400 in the embodiment shown. The external device 400 may include a helmet 405 provided with a camera and a video interface male connector 301 provided on the helmet 405. The helmet 405 is electrically connected to the video interface female connector 201 of the electronic device 200 through the video interface male connector 301 to transmit video frame data. In addition, the electronic device 200 may also be electrically connected to the video interface male connector 301 through the video interface female connector 201 to control the camera of the helmet 405 to collect video frame data.
[0085] See also Fig.11 and Fig.12 , Fig.11 Disclose this application Figure 1 The front view of the video interface male connector 301 in the embodiment shown, Fig.12 Disclose this application Fig.11 The XI-XI cross-sectional view of the video interface male connector 301 in the illustrated embodiment. The video interface male connector 301 includes a male connector body 20, a second plugging structure 21 disposed on the male connector body 20, and a pin 23 disposed on the male connector body 20. The second plugging structure 21 is used to be plugged and fixed with the video interface female connector 201, such as the first plugging structure 11, to achieve a connection and fixation between the electronic device 200 and the adapter cable 300. The pin 23 can form at least one of a plurality of interfaces, such as USB, SDI, AHD, RJ45, etc. The pin 23 is used to be electrically connected to the video interface female connector 201, such as the pin 13, to achieve video frame data transmission between the video interface male connector 301 and the video interface female connector 201.
[0086] The male plug body 20 may be made of a hard material, specifically, may be made of an insulating material.
[0087] The second plugging structure 21 may include a third sub-plugging structure 211 disposed on the male plug body 20 and a fourth sub-plugging structure 212 disposed opposite to the third sub-plugging structure 211 and disposed on the same side of the male plug body 20 .
[0088] The third sub-plug structure 211 can be a card plate. The card plate is extended to a side away from the male connector body 20, and is tilted to a side away from the fourth sub-plug structure 212, so as to be compatible with the video interface female connector 201, for example, a card slot. When the video interface male connector 301 is plugged into the video interface female connector 201, the card plate extends into the card slot.
[0089] The fourth sub-plug structure 212 may include a circular boss 2121 and a fan-shaped boss 2122. The circular boss 2121 is extended to the side away from the male body 20 to be plugged and fixed with the video interface female head 201, such as the circular groove 1121. The fan-shaped boss 2122 is extended to the side away from the male body 20 to be plugged and fixed with the video interface female head 201, such as the fan-shaped groove 1122. In one embodiment, the circular boss 2121 is arranged between the fan-shaped boss 2122 and the third sub-plug structure 211. In one embodiment, in order to strengthen the fixed state between the male body 20 and the video interface female head 201, such as the female body 10, the circular boss 2121 may be a bolt with an external thread, so that the circular boss 2121 is screwed into the circular groove 1121 to achieve the screw connection and fixation of the video interface male head 301 and the video interface female head 201.
[0090] In one embodiment, one of the circular convex column 2121 and the fan-shaped convex column 2122 can be omitted. In one embodiment, the shapes of the circular convex column 2121 and the fan-shaped convex column 2122 can be other shapes, which will not be described in detail.
[0091] The pin 23 is disposed between the third sub-plug structure 211 and the fourth sub-plug structure 212. The pin 23 is electrically connected to the adapter cable 300 when the second plug structure 21 is plugged and fixed to the adapter cable 300.
[0092] Pin 23 may include multiple sub-pins. The arrangement of the multiple sub-pins may match the arrangement of pin 13. For example, they may be arranged in a matrix like pin 13. The specific number of sub-pins may be set according to actual needs. Fig.11 The pin 23 may include 20 sub-pins. The 20 sub-pins are arranged in a matrix, and the overall matrix is arranged in 2 columns and 10 rows.
[0093] Among them, the 20 sub-pins can be respectively the first sub-pin 2311, the second sub-pin 2312, the third sub-pin 2313, the fourth sub-pin 2314, the fifth sub-pin 2315, the sixth sub-pin 2316, the seventh sub-pin 2317, the eighth sub-pin 2318, the ninth sub-pin 2319, the tenth sub-pin 2320, the eleventh sub-pin 2321, the twelfth sub-pin 2322, the thirteenth sub-pin 2323, the fourteenth sub-pin 2324, the fifteenth sub-pin 2325, the sixteenth sub-pin 2326, the seventeenth sub-pin 2327, the eighteenth sub-pin 2328, the nineteenth sub-pin 2329 and the twentieth sub-pin 2330.
[0094] The functional description of the 20 sub-pins in the video interface male connector 301 is shown in the following table:
[0095]
[0096]
[0097] In one embodiment, see Fig.11 The first sub-pin 2311, the second sub-pin 2312, the third sub-pin 2313, the fourth sub-pin 2314, the fifth sub-pin 2315, the sixth sub-pin 2316, the seventh sub-pin 2317, the eighth sub-pin 2318, the ninth sub-pin 2319, and the tenth sub-pin 2320 are arranged in the first column in the direction from the third sub-plug structure 211 to the fourth sub-plug structure 212, and the eleventh sub-pin 2321, the twelfth sub-pin 2322, the thirteenth sub-pin 2323, the fourteenth sub-pin 2324, the fifteenth sub-pin 2325, the sixteenth sub-pin 2326, the seventeenth sub-pin 2327, the eighteenth sub-pin 2328, the nineteenth sub-pin 2329 and the twentieth sub-pin 2330 are arranged in the second column in the direction from the third sub-plug structure 211 to the fourth sub-plug structure 212.
[0098] The electrical connection relationship between the 20 sub-pins in the video interface male connector 301 and the 20 sub-pins in the video interface female connector 201 is shown in the following table:
[0099]
[0100] In one embodiment, see Fig.11, the third sub-pin 2313, the twelfth sub-pin 2322, and the circuits in the electronic device 200 respectively connected to the third sub-pin 2313 and the twelfth sub-pin 2322 are all provided with ground shielding members. This is to prevent the signals in the third sub-pin 2313, the twelfth sub-pin 2322, and the circuits in the electronic device 200 respectively connected to the third sub-pin 2313 and the twelfth sub-pin 2322 from being subjected to electromagnetic interference. Among them, the ground shielding member on the third sub-pin 2313 can be electrically connected to the shielding member on the thirteenth sub-pin 1323. The ground shielding member on the twelfth sub-pin 2322 can be electrically connected to the shielding member on the second sub-pin 1312.
[0101] In one embodiment, the sub-pins in the pins 23 may be pins to be electrically connected with the pins 13, such as pin contacts.
[0102] It can be understood that the number of sub-pins in the video interface male connector 301 can be set according to the type of the adapter 302. For example, the video interface male connector 301 can only be provided with pins that can form at least one of the interfaces such as USB, SDI, AHD, RJ45, etc.
[0103] See also Fig.13 , which discloses the present application Figure 4 The framework diagram of the adapter cable 300 in the illustrated embodiment. In addition to the video interface male connector 301 and the adapter interface 302, the adapter cable 300 may also include a plug-in signal generating unit 24 and a type storage read-write unit 25. Among them, the plug-in signal generating unit 24 may generate a plug-in signal by electrically connecting the fourteenth sub-pin 2324, such as a plug-in detection pin, with the fourth sub-pin 1314, such as a plug-in detection pin, to transmit the signal to the electronic device 200, so that the electronic device 200 can confirm whether it is electrically connected to the adapter cable 300. The type information of the adapter cable 300 may be stored in the type storage read-write unit 25. The specific type of the adapter cable 300 may be determined by the adapter interface 302, and may be burned into the type storage read-write unit 25 by the sixth sub-pin 2316, such as a type detection pin. The type of the adapter cable 300 can be determined by the type of the camera in the external device 400, and can be burned into the type storage read-write unit 25 through the sixth sub-pin 2316, such as the type detection pin. The type storage read-write unit 25 can be electrically connected to the sixteenth sub-pin 1326, such as the type detection pin, through the sixth sub-pin 2316, such as the type detection pin, so that the electronic device 200 can read the type of the adapter cable 300, so that the adapter switching unit 202 performs line switching according to the type of the adapter cable 300.
[0104] The remaining sub-pins in the video interface male connector 301 in the adapter cable 300 can be set according to the type of the adapter cable 300, and no further description is given. Correspondingly, the remaining sub-pins in the transfer interface 302 in the adapter cable 300 can be set according to the type of the adapter cable 300, and no further description is given.
[0105] Next, a software architecture is described. It is applied to the electronic device 200 in the above embodiment to realize the formation of the video acquisition system 100. Fig.14 , which discloses a framework diagram of the software architecture in one embodiment of the present application. The software architecture 500 may include a driver layer 501, a camera hub (CAM_HUB) layer 502, a framework layer 503, and an application (APP) layer 504.
[0106] See also Fig.14 , the driver layer 501 is used to generate an external device node according to the type information of the external device 400. The driver layer 501 is used to feed back the external device node of the external device 400 to the camera hub layer 502. The driver layer 501 is used to receive instructions conveyed by the camera hub layer 502. The driver layer 501 is used to transmit video frame data to the camera hub layer 502. The driver layer 501 is used to pass the control instructions conveyed by the camera hub layer 502 to the external device 400 so that the external device 400 can work. The driver layer 501 is used to receive video frame data passed by the external device 400. The driver layer 501 is used to receive status data of the external device 400, such as a camera. The driver layer 501 is used to pass the status data of the external device 400, such as a camera, to the camera hub layer 502.
[0107] In one embodiment, the driver layer 501 may include at least one of a USB (Universal Serial Bus) device driver, a network device driver, a front and rear camera driver, an analog video signal receiving and conversion driver, a digital video signal receiving and conversion driver, an audio device driver, a plug-in detection driver, a type detection driver, a power supply and line switching driver, and the like.
[0108] In one embodiment, the USB device driver is used to generate an external device node according to the type information of the external device 400, such as a USB camera 401. The USB device driver is used to feed back the external device node of the external device 400, such as a USB camera 401, to the camera hub layer 502. The USB device driver is used to pass the control instruction conveyed by the camera hub layer 502 to the external device 400, such as a USB camera 401, so that the external device 400, such as a USB camera 401, works. The USB device driver is used to receive the video frame data transmitted by the external device 400, such as a USB camera 401. The USB device driver is used to transmit the video frame data to the camera hub layer 502. The USB device driver is used to receive the status data of the external device 400, such as a USB camera 401. The USB device driver is used to pass the status data of the external device 400, such as a USB camera 401, to the camera hub layer 502.
[0109] In one embodiment, the network device driver is used to generate an external device node according to the type information of the external device 400, such as the network camera 404. The network device driver is used to feed back the external device node of the external device 400, such as the network camera 404, to the camera hub layer 502. The network device driver is used to pass the control instruction conveyed by the camera hub layer 502 to the external device 400, such as the network camera 404, so that the external device 400, such as the network camera 404, works. The network device driver is used to receive the video frame data transmitted by the external device 400, such as the network camera 404. The network device driver is used to transmit the video frame data to the camera hub layer 502. The network device driver is used to receive the status data of the external device 400, such as the network camera 404. The network device driver is used to pass the status data of the external device 400, such as the network camera 404, to the camera hub layer 502.
[0110] In one embodiment, the front and rear camera driving of the fuselage may include the front camera driving and the rear camera driving. Of course, according to actual conditions, at most two of the front camera driving and the rear camera driving may be omitted.
[0111] In one embodiment, the front camera driver is used to generate a device node according to the type information of the front camera unit. The front camera driver is used to feed back the device node of the front camera unit to the camera hub layer 502. The front camera driver is used to pass the control instruction conveyed by the camera hub layer 502 to the front camera unit so that the front camera unit works. The front camera driver is used to receive the video frame data transmitted by the front camera unit. The front camera driver is used to transmit the video frame data to the camera hub layer 502. The front camera driver is used to receive the status data of the front camera unit. The front camera driver is used to pass the status data of the front camera unit to the camera hub layer 502.
[0112] In one embodiment, the rear camera driver is used to generate a device node according to the type information of the rear camera unit. The rear camera driver is used to feed back the device node of the rear camera unit to the camera hub layer 502. The rear camera driver is used to pass the control instruction conveyed by the camera hub layer 502 to the rear camera unit so that the rear camera unit works. The rear camera driver is used to receive the video frame data transmitted by the rear camera. The rear camera driver is used to transmit the video frame data to the camera hub layer 502. The rear camera driver is used to receive the status data of the rear camera unit. The rear camera driver is used to pass the status data of the rear camera unit to the camera hub layer 502.
[0113] In one embodiment, the analog video signal receiving conversion driver is used to generate an external device node according to the type information of the external device 400, such as the analog camera 403. The analog video signal receiving conversion driver is used to feed back the external device node of the external device 400, such as the analog camera 403, to the camera hub layer 502. The analog video signal receiving conversion driver is used to pass the control instruction conveyed by the camera hub layer 502 to the external device 400, such as the analog camera 403, so that the external device 400, such as the analog camera 403, works. The analog video signal receiving conversion driver is used to receive the video frame data transmitted by the external device 400, such as the analog camera 403. The analog video signal receiving conversion driver is used to transmit the video frame data to the camera hub layer 502. The rear camera driver is used to transmit the video frame data to the camera hub layer 502. The analog video signal receiving conversion driver is used to receive the status data of the external device 400, such as the analog camera 403. The analog video signal receiving conversion driver is used to pass the status data of the external device 400, such as the analog camera 403, to the camera hub layer 502.
[0114] In one embodiment, the digital video signal receiving conversion driver is used to generate an external device node according to the type information of the external device 400, such as the digital camera 402. The digital video signal receiving conversion driver is used to feed back the external device node of the external device 400, such as the digital camera 402, to the camera hub layer 502. The digital video signal receiving conversion driver is used to pass the control instruction conveyed by the camera hub layer 502 to the external device 400, such as the digital camera 402, so that the external device 400, such as the digital camera 402, works. The digital video signal receiving conversion driver is used to receive the video frame data transmitted by the external device 400, such as the digital camera 402. The digital video signal receiving conversion driver is used to transmit the video frame data to the camera hub layer 502. The digital video signal receiving conversion driver is used to receive the status data of the external device 400, such as the digital camera 402. The digital video signal receiving conversion driver is used to pass the status data of the external device 400, such as the digital camera 402, to the camera hub layer 502.
[0115] In one embodiment, the audio device driver is used to generate an external device node according to the type information of the external device 400, such as an audio device. The audio device driver is used to feed back the external device node of the external device 400, such as an audio device, to the camera hub layer 502. The audio device driver is used to pass the control instruction conveyed by the camera hub layer 502 to the external device 400, such as an audio device, so that the external device 400, such as an audio device, works. The audio device driver is used to receive audio data transmitted by the external device 400, such as an audio device. The audio device driver is used to transmit audio data to the camera hub layer 502. The audio device driver is used to receive the status data of the external device 400, such as an audio device. The audio device driver is used to pass the status data of the external device 400, such as an audio device, to the camera hub layer 502.
[0116] In one embodiment, the plug detection driver is used to receive a plug signal generated by the external device 400 , such as the plug signal generating unit 24 .
[0117] In one embodiment, the type detection driver is used to detect the type information of the external device 400 and obtain the type information of the external device 400 when the plug-in and unplug signal determines that the plug-in event is an insertion event, so that the driver layer 501 loads one or more drivers corresponding to the type information of the external device 400, such as a USB device driver, a network device driver, an analog video signal receiving conversion driver, a digital video signal receiving conversion driver, an audio device driver, etc.
[0118] It can be understood that the plug-in and unplug-out events may include insertion events and unplug-out events. When an insertion event occurs between the electronic device 200 and the external device 400, the video interface female head 201 of the electronic device 200 is electrically connected to the video interface male head 301 of the external device 400. When an unplug-out event occurs between the electronic device 200 and the external device 400, the video interface female head 201 of the electronic device 200 is disconnected from the video interface male head 301 of the external device 400.
[0119] In one embodiment, the power supply and line switching driver can be used to select a line and supply power according to the type information of the external device 400, so that the external device 400 corresponding to the information type can normally transmit control instructions, video frame data, and status data of the external device 400.
[0120] See also Fig.14 The camera hub layer 502 may include a parameter and command conversion center, a control service, a status monitoring service, a status reporting center, a frame data processing service, and a camera device pool.
[0121] In one embodiment, the parameter and command conversion center is used to receive control instructions such as commands and parameters transmitted by the framework layer 503. The parameter and command conversion center is used to convert commands and parameters into control instructions such as commands and parameters that match the external device 400 such as a camera.
[0122] In one embodiment, the control service is used to maintain the control instruction sequence and state machine.
[0123] In one embodiment, the status monitoring service is used to receive status data of the external device 400 , such as a camera, uploaded by the driver layer 501 .
[0124] In one embodiment, the status reporting center is used to report the status change information to the framework layer 503, such as the camera server, when the status monitoring service detects the status data change of the external device 400, such as the camera. The camera server will further report to the camera client.
[0125] In one embodiment, the frame data processing service is used to receive the video frame data uploaded by the driver layer 501. The frame data processing service is used to process the video frame data when the framework layer 503 conveys a control instruction such as video encoding storage, video encoding transmission, video analysis, etc.
[0126] In one embodiment, the camera device pool is used to store the external device nodes of the external devices 400 detected by the camera hub layer 502 and uploaded via the driver layer 501 .
[0127] See also Fig.14The framework layer 503 may include a camera application programming interface (Camera API, Camera Application Programming Interface), a camera client (Camera Client) and a camera server (Camera Service).
[0128] In one embodiment, the camera application program interface is used to connect the application program layer 504 and the camera client so that the control instructions issued by the application program layer 504 are transmitted to the camera client.
[0129] In one embodiment, the camera client and the camera server are established according to calling the camera application program interface, and the camera client and the camera server communicate with each other.
[0130] In one embodiment, the camera client is used to receive the control instruction issued by the application layer 504. The camera client is used to transmit the control instruction to the camera server to realize the control of the external device 400.
[0131] In one embodiment, the camera server is used to receive control instructions transmitted from the camera client to issue control instructions such as commands and parameters to the camera hub layer 502 to control the external device 400.
[0132] See also Fig.14 The application layer 504 is used to receive control instructions input by users, such as video recording (VideoRecorder), video transmission (Video Transfer), video encoding storage, video encoding sending, etc.
[0133] Next, a method for implementing a software architecture is described, which can be used to implement the control of the above software architecture 500. Fig.14 The method includes an initialization step and a usage process step.
[0134] In the initialization step, when the electronic device 200 and the external device 400 are plugged in or unplugged, the plug-in detection driver detects the plug-in or unplugging event between the electronic device 200 and the external device 400. Then, after the plug-in detection driver confirms that the plug-in or unplugging event is an insertion event, the type detection driver detects the camera type information in the external device 400. When the type detection driver detects the camera type information, the driver layer 501 loads a driver that matches the type information, and at the same time, the driver that matches the type information generates an external device node that matches the type information, which is reported to the camera hub layer 502.
[0135] In some embodiments, the initialization step may further include: when the plug-in detection driver detects that the plug-in event is a pull-out event, unloading the driver related to the external device 400 loaded by the driver layer 501 .
[0136] In some embodiments, the initialization step may further include:
[0137] When the plug-in detection driver detects that the plug-in event is an insertion event, the camera server simultaneously detects the external device node generated by the type detection driver; when the camera server detects the external device node, the external device node is added to the camera device pool to update the camera device pool; if the camera server does not detect the external device node, the driver matching the external device node is uninstalled, that is, the camera server removes the external device node from the device pool.
[0138] In some embodiments, during use, the use process steps include:
[0139] Call the camera application program interface to build a camera client that matches the external device node; the application program layer 504 inputs parameters for controlling the camera to the camera client; the camera server receives the parameters through the camera client and transmits the parameters to the parameter and command conversion center; the parameter and command conversion center converts the parameters and converts them into parameters that match the type information; the driver that matches the type information sets the parameters that match the type information into the external device 400.
[0140] In some embodiments, during use, the use process steps also include: the application layer 504 inputs an instruction to start the camera to the camera client; the camera server receives the instruction through the camera client and transmits the instruction to the parameter and command conversion center; the parameter and command conversion center converts the instruction and converts it into an instruction that matches the type information; the driver that matches the type information controls the camera through the instruction that matches the type information; the driver that matches the type information receives the video frame data input by the camera; the driver that matches the type information uploads the video frame data to the frame data processing service; the frame data processing service processes the video frame data.
[0141] In some embodiments, during use, the use process steps also include: a driver matching the type information uploads the camera's status data to a status monitoring service; when the status monitoring service detects a status data change, the status reporting center reports status change information to the camera client through the camera server; and the control service maintains the state machine.
[0142] The above are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An electronic device having a software architecture system, characterized in that: The software architecture system includes: A driver layer, used for switching to a driver matching the type information according to the camera type information in the external device, the driver matching the type information is used for generating an external device node according to the type information, for transmitting a control instruction for controlling the camera to the camera, for obtaining the status data of the camera, and for obtaining the video frame data shot by the camera; A camera hub layer, used for detecting and storing the external device node generated by the driver matching the type information, for conveying a control instruction for controlling the camera to the driver matching the type information, and for processing the video frame data; a framework layer, provided with a camera application program interface, and a camera client and a camera server established by calling the camera application program interface and communicating with each other, the camera server being used to convey a control instruction for controlling the camera to the camera hub layer, and being used to convey a control instruction for processing the video frame data to the camera hub layer, and the camera hub layer being used to receive the status data uploaded by the driver matching the type information and upload it to the camera server; and An application layer, used for inputting control instructions, wherein the camera client responds to the control instructions inputted by the application layer and transmits the control instructions for controlling the camera to the camera server; The camera hub layer includes a parameter and command conversion center, a control service, a status monitoring service, a status reporting center, a frame data processing service, and a camera device pool. The parameter and command conversion center is used to receive the control instructions transmitted by the camera server and convert them into control instructions matching the camera. The control service is used to maintain the control instruction sequence and the state machine. The status monitoring service is used to receive the status data. The status reporting center is used to report the status change information to the camera server when the status monitoring service detects the status data change. The frame data processing service is used to receive the video frame data and process the video frame data. The camera device pool is used to store the external device nodes. The electronic device comprises a video interface female head, the video interface female head is provided with a universal serial bus interface, a digital component serial interface, an analog high-definition camera interface and a registered socket interface, the video interface female head is provided with pins, the pins form the universal serial bus interface, the digital component serial interface, the analog high-definition camera interface and the registered socket interface, and the pins include: A plug-in detection pin, used to detect a plug-in event generated by plugging and unplugging the video interface female connector and the video interface male connector; and The type detection pin is used to detect the camera type information in the external device electrically connected to the video interface male connector and the video interface female connector.
2. The electronic device according to claim 1, characterized in that: The driver matching the type information includes at least one of a universal serial bus interface device driver, a network device driver, an analog video signal receiving conversion driver, and a digital video signal receiving conversion driver. The driver layer is provided with a type detection driver, and the type detection driver is used to detect the type information.
3. The electronic device according to claim 2, characterized in that: The driver layer also includes a plug-in detection driver, which is used to detect plug-in events generated by plugging and unplugging a female video interface head and a male video interface head, and the type detection driver is used to detect the type information when the plug-in detection driver detects the plug-in event.
4. The electronic device according to claim 1, characterized in that: The pins include: A first sub-pin is used as a ground pin; The second sub-pin is used as a digital video signal pin; The third sub-pin is used as a ground pin; The fourth sub-pin is used as a plug-in detection pin; The fifth sub-pin is used as a universal serial bus interface data line pin; The sixth sub-pin is used as an external power supply pin; The seventh sub-pin is used as a network port signal pin; The eighth sub-pin is used as a network port signal pin; The ninth sub-pin is used as a network port signal pin; The tenth sub-pin is used as the network port signal pin; The eleventh sub-pin is used as an analog audio input pin; The twelfth sub-pin is used as a ground pin; The thirteenth sub-pin is used as an analog video signal pin; The fourteenth sub-pin is used as a ground pin; The fifteenth sub-pin is used as a universal serial bus interface data line pin; The sixteenth sub-pin is used as a type detection pin; The seventeenth sub-pin is used as a network port signal pin; The eighteenth sub-pin is used as a network port signal pin; The nineteenth sub-pin is used as a network port signal pin; and The twentieth sub-pin is used as the network port signal pin.
5. The electronic device according to claim 4, characterized in that: The video interface female head comprises: A female connector body, wherein the pin is arranged on the female connector body, and a first sub-plugging structure and a second sub-plugging structure are arranged on one side of the female connector body where the pin is arranged, wherein the first sub-plugging structure and the second sub-plugging structure are used for plugging with the male connector of the video interface, and the first sub-plugging structure and the second sub-plugging structure are arranged opposite to each other and are located on opposite sides of the pin.
6. The electronic device according to claim 5, characterized in that: The first sub-plug structure is a groove arranged on the female head body, so that the male head part of the video interface extends into the groove and is engaged with the first sub-plug structure. The second sub-plug structure includes: A circular groove with an internal thread provided therein for threading with the male head of the video interface; and The fan-shaped groove is used for plugging with the male head of the video interface.
7. The electronic device according to any one of claims 4 to 6, characterized in that: The pins are arranged in a matrix of two columns and ten rows, and the first sub-pin, the second sub-pin, the third sub-pin, the fourth sub-pin, the fifth sub-pin, the sixth sub-pin, the seventh sub-pin, the eighth sub-pin, the ninth sub-pin and the tenth sub-pin are arranged in the first column in one direction, and the eleventh sub-pin, the twelfth sub-pin, the thirteenth sub-pin, the fourteenth sub-pin, the fifteenth sub-pin, the sixteenth sub-pin, the seventeenth sub-pin, the eighteenth sub-pin, the nineteenth sub-pin and the twentieth sub-pin are arranged in the second column in the one direction.
8. The electronic device according to any one of claims 4 to 6, characterized in that: The second sub-pin, the thirteenth sub-pin, and the lines respectively connected to the second sub-pin and the thirteenth sub-pin are all provided with grounding shielding members to avoid electromagnetic interference.
9. The electronic device according to any one of claims 1, 4 to 6, characterized in that: The electronic device further comprises: A switching unit, electrically connected to the video interface female connector, for switching the interface in the video interface female connector according to the camera type information; The video encoding and decoding unit is used to receive the video frame data transmitted from the video interface female head, to encode the video frame data, and to decode the video encoding data to form video frame data.
10. The electronic device according to claim 9, characterized in that: The electronic device further comprises: A main control unit is used to control the switching unit and the video encoding and decoding unit.
11. A video acquisition system, characterized in that: The video acquisition system comprises the electronic device according to any one of claims 1 to 10, a switching cable, and an external device provided with a camera; Or, the video acquisition system comprises the electronic device according to any one of claims 1 to 10 and an external device comprising a male connector of a video interface; The external device including the video interface male head also includes: a plug-in signal generating unit, electrically connected to the plug-in detection pin of the video interface male connector, and configured to generate a plug-in signal when a plug-in event occurs when the video interface female connector and the video interface male connector are plugged in and out; and A type storage read-write unit is electrically connected to the type detection pin of the video interface male head and is used to store the camera type information in the external device so that the type detection pin of the video interface male head obtains the camera type information in the external device; The video interface male head is used to electrically connect to the video interface female head in the electronic device, and the video interface male head is provided with at least one interface among a universal serial bus interface, a digital component serial interface, an analog high-definition camera interface, and a registered socket interface, and the video interface male head is provided with pins, and the pins of the video interface male head form the at least one interface, and the pins of the video interface male head include: A plug-in detection pin, used to detect a plug-in event generated by plugging and unplugging the video interface female connector and the video interface male connector; and A type detection pin, used to detect camera type information in an external device electrically connected to the video interface female connector through the video interface male connector; The adapter cable includes the video interface male connector, and the adapter cable also includes: a plug-in signal generating unit, electrically connected to the plug-in detection pin of the video interface male connector, and configured to generate a plug-in signal when a plug-in event occurs when the video interface female connector and the video interface male connector are plugged in and out; and The type storage read-write unit is electrically connected to the type detection pin of the video interface male head and is used to store the type information of the adapter cable so that the type detection pin of the video interface male head can obtain the camera type information in the external device electrically connected to the adapter cable.
12. The video acquisition system according to claim 11, characterized in that: The pins of the video interface male connector include: The first sub-pin is used as an analog audio input pin; The second sub-pin is used as a ground pin; The third sub-pin is used as an analog video signal pin; The fourth sub-pin is used as a ground pin; The fifth sub-pin is used as a universal serial bus interface data line pin; The sixth sub-pin is used as a type detection pin; The seventh sub-pin is used as a network port signal pin; The eighth sub-pin is used as a network port signal pin; The ninth sub-pin is used as a network port signal pin; The tenth sub-pin is used as the network port signal pin; The eleventh sub-pin is used as a ground pin; The twelfth sub-pin is used as a digital video signal pin; The thirteenth sub-pin is used as a ground pin; The fourteenth sub-pin is used as a plug-in detection pin; The fifteenth sub-pin is used as a universal serial bus interface data line pin; The sixteenth sub-pin is used as an external power supply pin; The seventeenth sub-pin is used as a network port signal pin; The eighteenth sub-pin is used as a network port signal pin; The nineteenth sub-pin is used as a network port signal pin; The twentieth sub-pin is used as the network port signal pin.
13. The video acquisition system according to claim 12, characterized in that: The video interface male connector includes: A male connector body, the pins of the male connector of the video interface are arranged on the male connector body, the male connector body is provided with a third sub-plugging structure and a fourth sub-plugging structure, the third sub-plugging structure and the fourth sub-plugging structure are used for plugging with the female connector of the video interface, the third sub-plugging structure, the fourth sub-plugging structure and the pins of the male connector of the video interface are all arranged on the same side of the male connector of the video interface, the third sub-plugging structure and the fourth sub-plugging structure are arranged opposite to each other, and are located on opposite sides of the pins of the male connector of the video interface.
14. The video acquisition system according to claim 13, characterized in that: The third sub-plugging structure is a card-connecting plate arranged on the male head body, so that the card-connecting plate extends into the video interface female head and is plugged into the video interface female head. The fourth sub-plugging structure includes: A bolt, used for threading with the female head of the video interface; and The fan-shaped protrusion is used to be plugged into the female connector of the video interface.
15. The video acquisition system according to any one of claims 12 to 14, characterized in that: The pins of the video interface male connector are arranged in a matrix of two columns and ten rows. The first sub-pin, the second sub-pin, the third sub-pin, the fourth sub-pin, the fifth sub-pin, the sixth sub-pin, the seventh sub-pin, the eighth sub-pin, the ninth sub-pin and the tenth sub-pin of the video interface male connector are arranged in the first column in one direction, and the eleventh sub-pin, the twelfth sub-pin, the thirteenth sub-pin, the fourteenth sub-pin, the fifteenth sub-pin, the sixteenth sub-pin, the seventeenth sub-pin, the eighteenth sub-pin, the nineteenth sub-pin and the twentieth sub-pin of the video interface male connector are arranged in the second column in the one direction.
16. The video acquisition system according to any one of claims 12 to 14, characterized in that: The third sub-pin, the twelfth sub-pin and the lines respectively connected to the third sub-pin and the twelfth sub-pin of the video interface male connector are all provided with grounding shielding components to avoid electromagnetic interference.
17. A method for implementing a software architecture system, characterized in that: Applied to the electronic device according to any one of claims 1 to 10, the method comprising: If the plug-in detection driver detects that the plug-in event between the electronic device and the external device is an insertion event, the type detection driver detects the camera type information in the external device; If the type detection driver detects the type information, the driver layer loads a driver that matches the type information, and the driver that matches the type information generates an external device node that matches the type information.
18. The method according to claim 17, characterized in that The method further includes: if the plug-in detection driver detects that the plug-in event is a pull-out event, unloading the driver related to the external device loaded by the driver layer.
19. The method according to claim 17, characterized in that The method further comprises: If the plug-in detection driver detects that the plug-in event is an insertion event, the camera server detects the external device node; If the camera server detects the external device node, the external device node is added to the camera device pool to update the camera device pool.
20. The method according to claim 19, characterized in that The method further comprises: If the plug-in detection driver detects that the plug-in event is a pull-out event, the camera server removes the external device node in the device pool.
21. The method according to any one of claims 17-18, characterized in that: The method further comprises: Calling the camera application program interface to build a camera client that matches the external device node; The application layer inputs camera control parameters to the camera client; The camera server receives the parameters through the camera client and transmits the parameters to the parameter and command conversion center; The parameter and command conversion center converts the parameter into a parameter matching the type information; The driver matching the type information sets parameters matching the type information into the external device.
22. The method according to claim 21, characterized in that The method further comprises: The application layer inputs an instruction to start the camera to the camera client; The camera server receives the instruction through the camera client and transmits the instruction to the parameter and command conversion center; The parameter and command conversion center converts the instruction into an instruction matching the type information; The driver matching the type information controls the camera through the instruction matching the type information; The driver matching the type information receives the video frame data input by the camera; The driver matching the type information uploads the video frame data to a frame data processing service; The frame data processing service processes the video frame data.
23. The method according to claim 21, characterized in that The method further comprises: The driver matching the type information uploads the status data of the camera to a status monitoring service; The status reporting center reports the status change information to the camera client through the camera server when the status monitoring service detects the status data change; The control service maintains the state machine.
Citation Information
Patent Citations
Connector, method for using same and electronic device equipped with same
CN105449402A