Signal control circuit, electronic equipment and law enforcement system
By detecting the type of external device and switching the function mode through the signal control circuit, the problem of communication and control between audio acquisition equipment and intercom equipment is solved, realizing flexible switching of equipment functions and cost reduction, and improving the efficiency of law enforcement equipment.
Patent Information
- Application Number
- CN202423298798.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2034-12-27
AI Technical Summary
In existing communication equipment, there are difficulties in communication and audio signal control between audio acquisition equipment and intercom equipment, which leads to increased equipment weight and size, as well as higher costs.
A signal control circuit is provided that detects the type of external device and switches the function mode using a communication interface and control module to achieve coupling between different function modules, including switching between shoulder microphone mode and non-shoulder microphone mode, and supports serial communication and audio signal transmission.
It enables flexible switching of equipment functions, reduces equipment weight, lowers overall costs, and supports compatibility with multiple communication protocols and audio functions, thereby improving the work efficiency of law enforcement personnel.
Smart Images

Figure CN223758345U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of signal processing, in particular to a signal control circuit, an electronic device and a law enforcement system. BACKGROUND
[0002] Communication devices, such as intercom devices, are usually equipped with hand microphones or shoulder microphones for use. However, due to the large size and heavy weight, the overall weight and size of the intercom device increase when used with the hand microphone or shoulder microphone. When the intercom device is used with some audio collection devices, the hand microphone or shoulder microphone can be saved by joint communication of the intercom device and the audio collection device, so as to reduce the weight of the device and the overall cost.
[0003] However, how the external device of the intercom device communicates with the audio collection device, and how to control the audio signals of the audio collection device and the audio signals of the external device of the intercom device are urgent problems to be solved. CONTENT OF THE UTILITY MODEL
[0004] The present application provides a signal control circuit, an electronic device and a law enforcement system, which can detect the type of an external device coupled to the electronic device, and then determine the function mode of the electronic device based on the type of the external device, so as to control the coupling switching of the communication interface between different function modules of the electronic device based on the function mode.
[0005] In order to solve the above technical problems, the present application provides a signal control circuit, which is arranged in an electronic device. The signal control circuit comprises a communication interface, a detection module and a control module.
[0006] The communication interface is used to couple an external device.
[0007] The detection module is coupled to the communication interface, and is used to detect the type of the external device.
[0008] The control module is coupled to the detection module, the communication interface and the function module of the electronic device, and is used to determine the function mode of the electronic device according to the type of the external device, so as to control the coupling switching of the communication interface between different function modules of the electronic device; wherein the function mode at least includes a shoulder microphone mode.
[0009] In some embodiments, the control module comprises a first switching unit and a second switching unit.
[0010] The first switching unit is coupled to the communication interface, the first interface module of the electronic device and the radio module of the electronic device, and is used to switch the coupling between the first interface module and the radio module and the communication interface according to the type of the external device; wherein the radio module comprises a communication button and a MIC module.
[0011] The second switching unit is coupled to the communication interface, the second interface module of the electronic device and the third interface module of the electronic device, and is configured to switch the coupling between the communication interface and the second interface module and the third interface module according to the type of the external device.
[0012] In some embodiments, when the external device is a communication device, the electronic device is in the shoulder mode, the first switching unit controls the communication interface to be coupled to the radio module, and the second switching unit controls the communication interface to be coupled to the third interface module.
[0013] In some embodiments, when the external device is a non-communication device, the electronic device is in the non-shoulder mode, the first switching unit controls the communication interface to be coupled to the first interface module, and the second switching unit controls the communication interface to be coupled to the second interface module.
[0014] In some embodiments, in the shoulder mode, and when the communication interface supports performing serial communication, the function keys in the radio module of the electronic device are controlled to be accessed in the shoulder mode.
[0015] In some embodiments, the control module further comprises an audio switching unit coupled to the third interface module, an audio module of the electronic device and a speaker of the electronic device.
[0016] In the shoulder mode, and when the third interface module supports performing serial communication, the audio switching unit selects one of the audio module of the electronic device and the third interface module to be coupled to the speaker. When the speaker is coupled to the third interface module, the speaker is configured to output the audio signal input by the external device to the electronic device.
[0017] In some embodiments, the first end of the first switching unit is coupled to a first general interface of the control module, the second end of the first switching unit is coupled to the communication interface, the third end of the first switching unit is coupled to the first interface module, and the fourth end of the first switching unit is coupled to the radio module.
[0018] When the first general interface is at a low level, the electronic device is in the shoulder mode, the second end and the fourth end of the first switching unit are turned on, so that the communication interface is coupled between the communication keys and the MIC module in the radio module.
[0019] When the first general interface is at a high level, the electronic device is in the non-shoulder mode, the second end and the third end of the first switching unit are turned on, so that the communication interface is coupled to the first interface module.
[0020] In some embodiments, the first end of the second switching unit is coupled to a second general interface of the control module, the second end of the second switching unit is coupled to the communication interface, the third end of the second switching unit is coupled to the second interface module, and the fourth end of the second switching unit is coupled to the third interface module.
[0021] When the second general interface is at high level, the electronic device is in shoulder mode, the second end and the fourth end of the second switching unit are conducted, so that the communication interface is coupled with the third interface module.
[0022] When the second general interface is at low level, the electronic device is in non-shoulder mode, the second end and the third end of the second switching unit are conducted, so that the communication interface is coupled with the second interface module.
[0023] In some embodiments, the audio switching unit includes a first switching circuit and a second switching circuit.
[0024] The first end of the first switching circuit is coupled with the audio module of the electronic device, and the second end of the first switching circuit is coupled with the speaker.
[0025] The first end of the second switching circuit is coupled with the third interface module, and the second end of the second switching circuit is coupled with the speaker.
[0026] In the shoulder mode, and when the third interface module supports performing serial communication, the first end and the second end of the first switching circuit are conducted, so that the audio module of the electronic device is coupled with the speaker, or the first end and the second end of the second switching circuit are conducted, so that the third interface module of the electronic device is coupled with the speaker.
[0027] In some embodiments, the first switching circuit includes:
[0028] The control end of the first switching device is coupled with the third general interface of the control module, the first end of the first switching device is coupled with the first plate of the first resistor, the second plate of the first resistor is coupled with the voltage end, and the second end of the first switching device is grounded.
[0029] The control end of the second switching device is coupled with the first plate of the first resistor, the first end of the second switching device is coupled with the audio module of the electronic device.
[0030] The control end of the third switching device is coupled with the first plate of the first resistor, the first end of the third switching device is coupled with the second end of the second switching device, and the second end of the third switching device is coupled with the speaker.
[0031] In the shoulder mode, and when the third interface module supports performing serial communication, the first switching device, the second switching device and the third switching device are conducted, so that the speaker of the electronic device is coupled with the audio module of the electronic device.
[0032] In some embodiments, the second switching circuit includes:
[0033] The fourth switch device has a control terminal coupled to the fourth general interface of the control module, a first terminal coupled to the first plate of the second resistor, a second terminal coupled to the voltage terminal, and a third terminal grounded.
[0034] The fifth switch device has a control terminal coupled to the first plate of the second resistor, and a first terminal coupled to the third interface module.
[0035] The sixth switch device has a control terminal coupled to the first plate of the second resistor, a first terminal coupled to the second terminal of the fifth switch device, and a second terminal coupled to the speaker.
[0036] In the shoulder mode, and when the third interface module supports performing serial communication and the fourth general interface is at a low level, the fourth switch device, the fifth switch device, and the sixth switch device are turned on, so that the speaker of the electronic device is coupled to the third interface module.
[0037] In some embodiments, the communication interface includes a CC pin, one end of the CC pin is coupled to the detection module, and the other end of the CC pin is coupled to the external device.
[0038] When the electronic device is in a powered-on state and coupled to the external device through the communication interface, the detection module is configured to determine the type of the external device according to the voltage input by the CC pin.
[0039] When the electronic device is in a powered-off state and coupled to the external device through the communication interface, the electronic device is powered by the external device.
[0040] In some embodiments, the detection module includes:
[0041] The voltage detection module is coupled to the VBUS pin of the communication interface, and is configured to detect the input voltage value of the external device coupled to the communication interface through the VBUS pin when the electronic device is in a powered-on state.
[0042] To solve the above technical problems, another aspect of the present application provides an electronic device including the above-mentioned signal control circuit.
[0043] To solve the above technical problems, another aspect of the present application provides a law enforcement system including an electronic device and an external device, and the electronic device is coupled to the external device through the above-mentioned signal control circuit.
[0044] The signal control circuit provided in some embodiments of the present application is arranged in an electronic device, and the signal control circuit provides a communication interface for coupling an external device, that is, an interface for cooperation between the electronic device and the external device; further, a detection module is used to detect the type of the external device, so that a control module can determine a function mode of the electronic device based on the detected type of the external device, thereby controlling the coupling switching of the communication interface between different function modules of the electronic device; wherein the function mode at least includes a shoulder mode. BRIEF DESCRIPTION OF DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor. Among them:
[0046] Figure 1 is a structural schematic diagram of the signal control circuit in some embodiments of the present application;
[0047] Figure 2 is a structural schematic diagram of the control module in some embodiments of the present application;
[0048] Figure 3 is a structural schematic diagram of the control module in some embodiments of the present application;
[0049] Figure 4 is a structural schematic diagram of the first switching unit in some embodiments of the present application;
[0050] Figure 5 is a structural schematic diagram of the second switching unit in some embodiments of the present application;
[0051] Figure 6 is a structural schematic diagram of the audio switching unit in some embodiments of the present application;
[0052] Figure 7 is a circuit principle diagram of the first switching circuit in some embodiments of the present application;
[0053] Figure 8 is a circuit principle diagram of the second switching circuit in some embodiments of the present application;
[0054] Figure 9 is a structural schematic diagram of the electronic device in some embodiments of the present application;
[0055] Figure 10 is a structural schematic diagram of the law enforcement system in some embodiments of the present application;
[0056] Figure 11is a work flow diagram of the law enforcement system in the power-on state in some embodiments of the present application;
[0057] Figure 12 is a work flow diagram of the law enforcement system in the power-off state in some embodiments of the present application. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It can be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only the parts related to the present application are shown in the drawings, but not all the structures. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of the present application.
[0059] The communication device, such as the intercom device, is usually equipped with a hand microphone or a shoulder microphone. However, when the intercom device is used with the hand microphone or the shoulder microphone, the overall weight and volume are increased.
[0060] When the intercom device is used with some audio acquisition devices, the intercom device and the audio acquisition device are jointly communicated to save the hand microphone or the shoulder microphone, so as to reduce the weight of the device and the overall cost.
[0061] However, how the audio acquisition device communicates with the external device, such as the intercom device, and how the audio signals of the audio acquisition device and the audio signals of the external device, such as the intercom device, are controlled are urgent to be solved.
[0062] Referring to Figure 1 , Figure 1 is a structural schematic diagram of a signal control circuit in some embodiments of the present application. The signal control circuit 10 is arranged in an electronic device 20. The electronic device 20 can be a law enforcement instrument, an audio acquisition device or other, which is not limited here.
[0063] The signal control circuit 10 includes a communication interface 101, a detection module 102 and a control module 103.
[0064] The communication interface 101 is used to couple the external device 30. The external device 30 can be an intercom device, an audio acquisition device or other, which is not limited here.
[0065] The detection module 102 is coupled to the communication interface 101. The detection module 102 is used to detect the type of the external device 30.
[0066] The control module 103 is coupled with the detection module 102, the communication interface 101 and the functional modules of the electronic device 20 respectively, and is configured to determine the functional mode of the electronic device 20 according to the type of the external device 30, so as to control the communication interface 101 to switch the coupling between different functional modules of the electronic device. The functional mode at least includes a shoulder mike mode.
[0067] In some embodiments, the communication interface 101 includes a CC (Configuration Channel) pin, one end of the CC pin is coupled with the detection module 102, and the other end of the CC pin is coupled with the external device 30.
[0068] The CC pin can be used to detect whether there is a pull-up resistor, so as to determine whether the external device 30 is coupled.
[0069] The CC pin can be used to detect whether there is a pull-up resistor, so as to determine whether the external device 30 is coupled.
[0070] It can be understood that when the external device 30 is a talkback device, after determining that the talkback device is coupled with the communication interface 101, the electronic device 20 can be used as a shoulder mike of the talkback device. At this time, the electronic device 20 is used in cooperation with the talkback device to realize the function of the shoulder mike, and the initial function of the electronic device 20 can still be used.
[0071] The CC pin is also used to detect the pull-up and pull-down resistors when the external device 30 is coupled, so as to distinguish the forward and reverse insertion of the external device 30.
[0072] When the electronic device 20 is in a powered-on state and coupled with the external device 30 through the communication interface 101, the detection module 102 is configured to determine the type of the external device 30 according to the voltage input by the CC pin. The type of the external device 30 includes a communication device and a non-communication device.
[0073] In an application scenario, the communication device is a talkback device, and the non-communication device is a non-talkback device, such as a charger or a collection station.
[0074] When the electronic device 20 is in a powered-off state and coupled with the external device 30 through the communication interface 101, the electronic device 20 is powered by the external device 30.
[0075] In some embodiments, the communication interface 101 can be a Type-C interface, a USB (Universal Serial Bus) interface or other, which is not limited here.
[0076] In some embodiments, the detection module 102 includes a voltage detection module coupled to the VBUS (Voltage Bus) pin of the communication interface 101, and the voltage detection module is configured to detect the input voltage of the external device 30 coupled to the communication interface 101 via the VBUS pin when the electronic device 20 is in the powered-on state.
[0077] In some embodiments, the voltage detection module can perform voltage detection on the VBUS pin of the communication interface 101 to determine whether the operating voltage of the external device 30 is within the normal operating range, and perform communication control based on the detection result.
[0078] Taking the intercom device as an example, the normal operating voltage range of the intercom device is 3-8.8V (volts), and in this case:
[0079] If the voltage detection of the VBUS pin detects that the operating voltage of the intercom device coupled to the communication interface 101 is within 3-8.8V, the communication connection between the intercom device and the electronic device 20 is maintained.
[0080] If the voltage detection of the VBUS pin detects that the operating voltage of the intercom device coupled to the communication interface 101 is not within 3-8.8V, the communication connection between the intercom device and the electronic device 20 is cut off.
[0081] It can be understood that when it is determined that the intercom device is coupled to the communication interface 101 and the operating voltage of the intercom device is normal, the electronic device 20 can be used as a shoulder mike of the intercom device, and in this case, the electronic device 20 is used in cooperation with the intercom device to realize the shoulder mike function, and the initial function of the electronic device 20 can still be used.
[0082] In some embodiments, the detection module 102 includes an overvoltage protection module coupled to the VBUS pin of the communication interface 101, and the overvoltage protection module is configured to perform voltage detection on the VBUS pin when the electronic device 20 is in the powered-on state, and perform control based on the detection result.
[0083] Taking the normal operating range of the VBUS pin as an example, which is greater than or equal to 13.2V (volts):
[0084] If the operating voltage of the VBUS pin is less than 13.2V, the main chip in the overvoltage protection module maintains communication.
[0085] If the operating voltage of the VBUS pin is greater than or equal to 13.2V, the main chip in the overvoltage protection module cuts off the communication to protect the backend devices. The backend devices can correspond to the control module 103 and other components in the electronic device 20, etc.
[0086] Referring to Figure 2 ,Figure 2 is a structural diagram of a control module in some embodiments of the present application. The control module 103 includes a first switching unit 1031 and a second switching unit 1032.
[0087] The first switching unit 1031 is coupled to the communication interface 101, the first interface module 201 of the electronic device 20, and the radio module 202 of the electronic device 20, respectively. The first switching unit 1031 is configured to switch the coupling between the first interface module 201 and the radio module 202 and the communication interface 101 according to the type of the external device 30.
[0088] The first interface module 201 is a USB3.0 communication module. The radio module 202 includes a communication button and a MIC (Microphone Input Connector) module.
[0089] The communication button included in the radio module 202 of the electronic device 20 includes at least one of a PTT (Push-to-talk) button and an alarm button, which is not limited herein.
[0090] In an application scenario, the first switching unit 1031 includes a pin coupled to the PTT button, a pin coupled to the alarm button, a USB3.0 RX positive plug-in input end, a USB3.0 RX reverse plug-in input end, a pin coupled to a power supply (for example, 3.3V), a pin for USB3.0 RX transmission or for using the MIC module on the electronic device 20 for talk.
[0091] The second switching unit 1032 is coupled to the communication interface 101, the second interface module 203 of the electronic device 20, and the third interface module 204 of the electronic device 20, respectively. The second switching unit 1032 is configured to switch the coupling between the second interface module 203 and the third interface module 204 and the communication interface 101 according to the type of the external device 30.
[0092] The second interface module 203 is a USB2.0 communication module. The third interface module 204 is a UART serial communication module.
[0093] In an application scenario, the second switching unit 1032 includes a pin coupled to a main system input voltage, a pin coupled to a receiver of a UART, a pin coupled to a transmitter of a UART, and a pin coupled to a USB2.0 port of a main control chip.
[0094] In some embodiments, when the external device 30 is a communication device, the electronic device 20 is in the shoulder mic mode, the first switching unit 1031 controls the communication interface 101 to be coupled with the radio module 202, and the second switching unit 1032 controls the communication interface 101 to be coupled with the third interface module 204. At this time, the electronic device 20 can not only realize the key function (such as alarm, PTT) and the audio signal transmission function (i.e. audio input or output through the loudspeaker) through the communication button and the MIC module in the radio module 202, but also realize the serial communication through the UART serial communication module.
[0095] In some embodiments, in the shoulder mic mode, and when the communication interface 101 supports the execution of the serial communication, the function button in the radio module 202 of the electronic device 20 is controlled to be accessed in the shoulder mic mode.
[0096] In some embodiments, the detection module 102 is built-in with a target communication protocol, and when it is determined that the external device 30 is coupled with the communication interface 101 and that the type of the external device 30 is a communication device, whether the electronic device 20 is in the special shoulder mic mode or the general shoulder mic mode can be determined by judging whether the communication device can execute the target communication protocol. The target communication protocol can be the UART (Universal Asynchronous Receiver / Transmitter) serial communication protocol or other protocols.
[0097] Taking the UART serial communication protocol as an example, if the communication device is adapted to the UART serial communication protocol, the electronic device 20 is in the special shoulder mic mode, otherwise the electronic device 20 is in the general shoulder mic mode.
[0098] It can be understood that after it is determined that the external device 30 is a communication device and that the communication device is in the shoulder mic mode, whether the communication device is in the special shoulder mic mode or the general shoulder mic mode is determined again, so that different controls can be performed on the external device 30 in different shoulder mic modes, thereby realizing the special control of the electronic device 20 and the external device 30.
[0099] In some embodiments, when the external device 30 is a non-communication device, the electronic device 20 is in the non-shoulder mic mode, the first switching unit 1031 controls the communication interface 101 to be coupled with the first interface module 201, and the second switching unit 1032 controls the communication interface 101 to be coupled with the second interface module 203. At this time, the electronic device 20 can not only realize the USB3.0 RX communication function (such as USB3.0 data acquisition), but also realize the USB2.0 RX communication function (such as USB2.0 data acquisition).
[0100] Referring to Figure 3 , Figure 3is a structural schematic diagram of a control module in some embodiments of the present application. The control module 103 includes a first switching unit 1031, a second switching unit 1032, and an audio switching unit 1033. The audio switching unit 1033 is coupled to the third interface module 204, the audio module 205 of the electronic device 20, and the speaker 206 of the electronic device 20.
[0101] In the shoulder mic mode, and when the third interface module 204 supports performing serial communication, the audio switching unit 1033 selects one of the audio module 205 of the electronic device 20 and the third interface module 204 to be coupled to the speaker 206. The speaker 206 can be a loudspeaker or other signal input or output device, which is not limited here.
[0102] When the speaker 206 is coupled to the third interface module 204, the speaker 206 is used to output the audio signal input by the external device 30 to the electronic device 20.
[0103] In some embodiments, the control module 103 further includes a first general-purpose interface 301. The first general-purpose interface 301 can be a GPIO (General-purpose input / output) interface, an I2C (Inter-Integrated Circuit) interface, or other, which is not limited here.
[0104] As shown in Figure 4 , the first end of the first switching unit 1031 is coupled to the first general-purpose interface 301 of the control module 103, the second end of the first switching unit 1031 is coupled to the communication interface 101, the third end of the first switching unit 1031 is coupled to the first interface module 201, and the fourth end of the first switching unit 1031 is coupled to the receiving module 202.
[0105] When the first general-purpose interface 301 is at a low level, the electronic device 20 is in the shoulder mic mode, the second end and the fourth end of the first switching unit 1031 are turned on, so that the communication interface 101 is coupled between the communication keys and the MIC module in the receiving module 202. At this time, the electronic device 20 can realize the key function (such as alarm, PTT) and the audio signal transmission function (i.e. audio input or output through the speaker 206) through the communication keys and the MIC module in the receiving module 202.
[0106] When the first general-purpose interface 301 is at a high level, the electronic device 20 is in the non-shoulder mic mode, the second end and the third end of the first switching unit 1031 are turned on, so that the communication interface 101 is coupled between the first interface module 201. At this time, the electronic device 20 can realize the USB3.0 RX communication function (such as USB3.0 data acquisition).
[0107] In some embodiments, the control module 103 further includes a second general-purpose interface 302. The second general-purpose interface 302 may be a GPIO (General-purpose input / output) interface, an I2C (Inter-Integrated Circuit) interface, or others, and is not limited here.
[0108] like Figure 5 As shown, the first end of the second switching unit 1032 is coupled to the second general interface 302 of the control module 103, the second end of the second switching unit 1032 is coupled to the communication interface 101, the third end of the second switching unit 1032 is coupled to the second interface module 203, and the fourth end of the second switching unit 1032 is coupled to the third interface module 204.
[0109] When the second general interface 302 is at a high level, the electronic device 20 is in microphone mode, and the second and fourth terminals of the second switching unit 1032 are turned on, coupling the communication interface 101 with the third interface module 204. At this time, the electronic device 20 can realize serial communication through the UART serial communication module.
[0110] When the second universal interface 302 is at a low level, the electronic device 20 is in non-microphone mode, and the second and third terminals of the second switching unit 1032 are turned on, coupling the communication interface 101 with the second interface module 203. At this time, the electronic device 20 can realize USB 2.0 RX communication function (such as USB 2.0 data acquisition).
[0111] See Figure 6 , Figure 6 This is a schematic diagram of the structure of an audio switching unit in some embodiments of this application. The audio switching unit 1033 includes a first switching circuit 401 and a second switching circuit 402.
[0112] The first end of the first switching circuit 401 is coupled to the audio module 205 of the electronic device 20, and the second end of the first switching circuit 401 is coupled to the speaker 206.
[0113] The first end of the second switching circuit 402 is coupled to the third interface module 204, and the second end of the second switching circuit 402 is coupled to the speaker 206.
[0114] In shoulder microphone mode, and when the third interface module 204 supports serial communication, the first and second terminals of the first switching circuit 401 are turned on, coupling the audio module 205 and the speaker 206 of the electronic device 20; or the first and second terminals of the second switching circuit 402 are turned on, coupling the third interface module 204 and the speaker 206 of the electronic device 20.
[0115] In some embodiments, the first switching circuit 401 includes a pin coupled to the voltage of the main system, a pin coupled to the 3.3V power supply, a pin coupled to the voltage of the first switching circuit 401, a pin coupled to the speaker 206 of the electronic device 20, and a pin for the electronic device 20 to output an audio signal.
[0116] In some embodiments, the control module 103 further includes a third general-purpose interface 303. The third general-purpose interface 303 may be a GPIO (General-purpose input / output) interface, an I2C (Inter-Integrated Circuit) interface, or others, and is not limited here.
[0117] like Figure 7 As shown, Figure 7 This is a circuit schematic diagram of the first switching circuit in some embodiments of this application. The first switching circuit 401 includes a first switching device ( Figure 7 (represented by "Q3"), second switching device ( Figure 7 (represented by "Q1") and the third switching device ( Figure 7 (represented by "Q2" in Chinese).
[0118] The control terminal of the first switching device is coupled to the third general interface 303 of the control module 103, and the first terminal of the first switching device is coupled to the first resistor. Figure 7 The first plate of the first resistor (represented by "R1") is connected to the voltage terminal. Figure 7 (represented by "PVDD2_SPK" in Chinese), the second terminal of the first switching device is grounded. Figure 7 (represented by "CND" in Chinese). The first electrode can be the left electrode, and the second electrode can be the right electrode.
[0119] The control terminal of the second switching device (corresponding to) Figure 7 In Q1, "G1" and "G2", "SPK_G2" indicate the connection relationship) are coupled to the first plate of the first resistor, and the first terminal of the second switching device (corresponding to Figure 7 The “D1” and “D2” of Q1 are coupled to the audio module 205 of the electronic device 20.
[0120] The control terminal of the third switching device (corresponding to) Figure 7 In Q2, "G1" and "G2", "SPK_G2" indicates the connection relationship) are coupled to the first plate of the first resistor, and the first terminal of the third switching device (corresponding to Figure 7 The "S1" and "S2" of Q2 are coupled to the second terminal of the second switching device (corresponding to...). Figure 7Q1's "S1" and "S2"), the second terminal of the third switching device (corresponding to Figure 8 The “D1” and “D2” of Q2 are coupled to the loudspeaker 206.
[0121] In shoulder microphone mode, and when the third interface module 204 supports serial communication, the first switch, the second switch and the third switch are turned on when the third general interface 303 is at a low level, so that the speaker 206 of the electronic device 20 is coupled to the audio module 205 of the electronic device 20.
[0122] In some embodiments, the second switching circuit 402 includes a pin coupled to a power supply (e.g., 3.3V), a pin coupled to a control voltage of the second switching circuit 402, a pin coupled to a speaker 206 of the electronic device 20, and a pin for outputting an audio signal from the external device 30. The signal transmitted on the pin for outputting the audio signal from the external device 30 is the audio signal input from the external device 30 to the speaker 206 of the electronic device 20, and the audio signal output by the external device 30 includes both on and off states.
[0123] In some embodiments, the control module 103 further includes a fourth general-purpose interface 304. The fourth general-purpose interface 304 may be a GPIO (General-purpose input / output) interface, an I2C (Inter-Integrated Circuit) interface, or others, and is not limited here.
[0124] like Figure 8 As shown, Figure 8 This is a circuit schematic diagram of the second switching circuit in some embodiments of this application. The second switching circuit 402 includes a fourth switching device ( Figure 8 (represented by "Q7"), the fifth switching device ( Figure 8 (represented by "Q4" in Chinese) and the sixth switching device ( Figure 8 (represented by "Q5" in Chinese).
[0125] The control terminal of the fourth switching device is coupled to the fourth general interface 304 of the control module 103, and the first terminal of the fourth switching device is coupled to the second resistor. Figure 8 The first plate of the resistor (represented by "R2") is connected to the voltage terminal of the second resistor. Figure 8 (represented by "PVDD1_SPK" in Chinese), the second terminal of the fourth switching device is grounded. Figure 8 (represented by "CND" in Chinese). The first plate can be the left plate, and the second plate can be the right plate. The resistance value of the second resistor may be the same as or different from that of the first resistor.
[0126] The control terminal of the fifth switching device (corresponding to)Figure 8 “G1” and “G2” of the middle Q4, “SPK_G1” represents the connection relationship) is coupled to the first plate of the second resistor, the first end of the fifth switch device (corresponding to Figure 8 “D1” and “D2” of the middle Q4) is coupled to the third interface module 204.
[0127] The control end of the sixth switch device (corresponding to Figure 8 “G1” and “G2” of the middle Q5, “SPK_G1” represents the connection relationship) is coupled to the first plate of the second resistor, the first end of the sixth switch device (corresponding to Figure 8 “S1” and “S2” of the middle Q5) is coupled to the second end of the fifth switch device (corresponding to Figure 9 “S1” and “S2” of the middle Q4), the second end of the sixth switch device (corresponding to Figure 9 “D1” and “D2” of the middle Q5) is coupled to the speaker 206.
[0128] In the shoulder microphone mode, and the third interface module 204 supports the execution of serial communication, and the fourth general interface 304 is at a low level, the fourth switch device, the fifth switch device and the sixth switch device are turned on, so that the speaker 206 of the electronic device 20 is coupled to the third interface module 204.
[0129] The signal control circuit 10 provided in some embodiments of the present application is arranged in the electronic device 20, and the signal control circuit 10 provides a communication interface 101 for coupling the external device 30, that is, provides an interface for cooperation between the electronic device 20 and the external device 30; further, the type of the external device 30 is detected by the detection module 102, so that the function mode of the electronic device 20 is determined to be the shoulder microphone mode or the non-shoulder microphone mode based on the type of the detected external device 30 (that is, a communication device or a non-communication device) by the control module 103, thereby controlling the coupling switching of the communication interface 101 between the shoulder microphone mode and the non-shoulder microphone mode of the electronic device 20.
[0130] Referring to Figure 10 , Figure 10 is a structural schematic diagram of an electronic device in some embodiments of the present application, and the electronic device 20 includes the signal control circuit 10 described in any of the above embodiments, which will not be described here.
[0131] In some embodiments, the electronic device 20 can be a law enforcement instrument, an audio collector or other, which is not limited here. The external device 30 can be an intercom device, an audio collector or other, which is not limited here.
[0132] In an application scenario, the electronic device 20 is a law enforcement instrument, the external device 30 is an intercom device, and the signal control circuit 10 is arranged in the law enforcement instrument.
[0133] Because the intercom device is large in size and heavy in weight, it is usually equipped with a shoulder mike. In addition, because the law enforcement instrument and the intercom device are widely used by law enforcement personnel at the same time, the law enforcement instrument is usually hung on the shoulder of the law enforcement personnel due to the need of shooting. If the law enforcement instrument is connected to the intercom device to serve as a video shoulder mike, the shoulder mike can be saved, the weight of the equipment of the law enforcement personnel can be reduced, the work efficiency of the law enforcement personnel can be improved, and the overall cost can be effectively reduced.
[0134] When the law enforcement instrument is adapted to the intercom device to serve as a shoulder mike, the speaker, the MIC, the alarm, the PTT, the serial communication, the fast charging of the law enforcement instrument, the USB3.0 data acquisition, the USB2.0 data acquisition, and the shoulder mike function of the intercom device can be realized through the communication interface 101 (such as a Type-C interface).
[0135] In some embodiments, the electronic device 20 includes a processor and a memory. The processor involved in the present application can be referred to as a CPU (Central Processing Unit), which can be an integrated circuit chip, and 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.
[0136] In some embodiments, the memory includes a storage medium. The storage medium used in the present application includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), or an optical disk, and various media that can store program codes.
[0137] Referring to Figure 11 , Figure 12 is a structural schematic diagram of a law enforcement system in some embodiments of the present application. The law enforcement system 40 includes an electronic device 20 and an external device 30. The electronic device 20 is coupled to the external device 30 through the signal control circuit 10 described in any of the above embodiments.
[0138] In an application scenario, the electronic device 20 is a law enforcement instrument, the external device 30 is an intercom device, and the signal control circuit 10 is arranged in the law enforcement instrument.
[0139] As shown in Figure 11 and Figure 12 , Figure 11 is a work flow diagram of the law enforcement system 40 when the law enforcement instrument in the law enforcement system 40 is in a powered-on state in some embodiments of the present application. Figure 12 is a work flow diagram of the law enforcement system 40 when the law enforcement instrument in the law enforcement system 40 is in a powered-off state in some embodiments of the present application.
[0140] As shown in the working flow of the law enforcement system 40 when the law enforcement instrument is in the power-on state can include the following steps:
[0141] Step 11: The ADC detects whether the voltage of the VBUS pin is between 3.0-8.8V.
[0142] If yes, step 12 is performed.
[0143] wherein ADC represents Analog-to-Digital Converter, i.e. analog-to-digital converter. The ADC voltage detection can be performed on the VBUS pin input to the communication interface 101 to detect the voltage of the VBUS pin in the communication interface 101.
[0144] Step 12: Detect whether there is a pull-up resistor on the CC pin.
[0145] If no, step 13 is performed.
[0146] Step 13: Determine that the intercom device is inserted, and enter the shoulder mike mode.
[0147] It can be understood that, taking the communication device as an intercom device for example, when there is no pull-up resistor, it is determined that the intercom device is inserted, and the law enforcement instrument enters the shoulder mike mode.
[0148] Step 14: Detect whether the UART serial communication can be performed.
[0149] If yes, step 15 is performed, otherwise step 19 is performed.
[0150] It can be understood that, by detecting whether the intercom device can perform the UART serial communication, it is further distinguished whether the shoulder mike mode entered by the intercom device is the special shoulder mike mode or the general shoulder mike mode.
[0151] It can be understood that, by detecting whether the intercom device can perform the UART serial communication, it is further distinguished whether the intercom device is the first type of intercom device or the second type of intercom device. The first type of intercom device can be an intercom device with specific specifications and parameters, and the second type of intercom device can be an intercom device other than the first type of intercom device.
[0152] The first type of intercom device can correspond to the special shoulder mike mode, and the second type of intercom device can correspond to the general shoulder mike mode.
[0153] Step 15: Determine that the intercom device is the first type of intercom device.
[0154] Step 16: Enter the special shoulder mike mode.
[0155] At this time, the audio output of the intercom device can be dynamically adjusted, i.e., the signal and volume of the intercom device can be adjusted through a function button.
[0156] Step 17: Determine whether there is a pull-out interrupt of the communication interface.
[0157] If yes, step 18 is performed, otherwise, return to step 16.
[0158] Step 18: Determine that the intercom device has been pulled out, and exit the special shoulder mike mode.
[0159] Step 19: Determine that the intercom device is a second type of intercom device.
[0160] Step 20: Enter the general shoulder mike mode.
[0161] At this time, the communication button and the MIC module of the electronic device 20 are in an activated and usable state.
[0162] Step 21: Determine whether there is a pull-out interrupt of the communication interface.
[0163] If yes, step 22 is performed, otherwise, return to step 20.
[0164] Step 22: Determine that the intercom device has been pulled out, and exit the general shoulder mike mode.
[0165] As shown in FIG. 4, the working process of the law enforcement system 40 when the law enforcement instrument is in a power-off state can include the following steps: Step 21: Insert the intercom device.
[0166] Step 22: Power on the law enforcement instrument.
[0167] At this time, the law enforcement instrument does not light up the screen and enters a low-power standby mode.
[0168] Step 23: Detect whether there is a pull-up resistor on the CC pin.
[0169] If no, step 24 is performed, otherwise, step 28 is performed.
[0170] Step 24: Determine that the intercom device is inserted.
[0171] Step 25: Enter the general shoulder mike mode.
[0172] At this time, the communication button and the MIC module of the electronic device 20 are in an activated and usable state.
[0173] Step 26: Determine whether there is a pull-out interrupt of the communication interface.
[0174] If yes, step 27 is performed, otherwise, return to step 25.
[0175] Step 27: Determine that the intercom device has been pulled out, and exit the general shoulder mike mode.
[0176] Step 27: judging that the intercom device is unplugged, exiting the general shoulder mike mode, and shutting down the system.
[0177] Step 28: judging that the charger, the collection station, or other devices are plugged in.
[0178] In summary, the law enforcement system 40 provided in some embodiments of the present application includes the electronic device 20 and the external device 30, and the signal control circuit 10 is arranged in the electronic device 20. The signal control circuit 10 provides a communication interface 101 for coupling the external device 30, that is, provides an interface for cooperation between the electronic device 20 and the external device 30. Further, the type of the external device 30 is detected by the detection module 102, so that the function mode of the electronic device 20 can be determined by the control module 103 based on the detected type of the external device 30 (i.e., a communication device or a non-communication device) as a shoulder mike mode or a non-shoulder mike mode, thereby controlling the coupling switching of the communication interface 101 between the shoulder mike mode and the non-shoulder mike mode of the electronic device 20.
[0179] Further, when the electronic device 20 is adapted for shoulder mike use with the external device 30, the functions of the loudspeaker, the MIC, the alarm, the PTT, the serial communication, and the like can be realized through the communication interface 101, and the fast charging, the USB3.0 data collection, the USB2.0 data collection, and the shoulder mike function with the external device 30 of the electronic device 20 can also be realized.
[0180] The above description is merely an embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation based on the content of the specification and the drawings, or direct or indirect application in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A signal control circuit, characterized by comprising: The signal control circuit is arranged in an electronic device, and the signal control circuit comprises: a communication interface configured to be coupled with an external device; a detection module coupled with the communication interface, the detection module configured to detect a type of the external device; a control module coupled with the detection module, the communication interface, and a functional module of the electronic device, the control module configured to determine a functional mode of the electronic device according to the type of the external device, and to control the communication interface to switch the coupling between different functional modules of the electronic device, wherein the functional mode comprises at least a shoulder mike mode.
2. The signal control circuit according to claim 1, characterized by The control module comprises: a first switching unit coupled with the communication interface, a first interface module of the electronic device, and a radio module of the electronic device, the first switching unit configured to switch the coupling between the first interface module and the radio module with the communication interface according to the type of the external device, wherein the radio module comprises a communication key and a MIC module; a second switching unit coupled with the communication interface, a second interface module of the electronic device, and a third interface module of the electronic device, the second switching unit configured to switch the coupling between the second interface module and the third interface module with the communication interface according to the type of the external device.
3. The signal control circuit of claim 2, wherein: when the external device is a communication device, the electronic device is in the shoulder mike mode, the first switching unit controls the communication interface to be coupled with the radio module, and the second switching unit controls the communication interface to be coupled with the third interface module; when the external device is a non-communication device, the electronic device is in a non-shoulder mike mode, the first switching unit controls the communication interface to be coupled with the first interface module, and the second switching unit controls the communication interface to be coupled with the second interface module.
4. The signal control circuit according to claim 3, characterized by In the shoulder mike mode, and when the communication interface supports performing serial communication, a function key in the radio module of the electronic device is controlled to be connected to the shoulder mike mode.
5. The signal control circuit of claim 4, wherein, The control module further comprises an audio switching unit coupled with the third interface module, an audio module of the electronic device, and a speaker of the electronic device; In the shoulder mike mode, and when the third interface module supports performing serial communication, the audio switching unit selects one of the audio module of the electronic device and the third interface module to be coupled with the speaker; When the speaker is coupled with the third interface module, the speaker is configured to output an audio signal inputted from the external device to the electronic device.
6. The signal control circuit according to claim 5, wherein A first end of the first switching unit is coupled with a first universal interface of the control module, a second end of the first switching unit is coupled with the communication interface, a third end of the first switching unit is coupled with the first interface module, and a fourth end of the first switching unit is coupled with the radio module. When the first universal interface is at low level, the electronic device is in shoulder mic mode, the second end and the fourth end of the first switching unit are conducted, so that the communication interface is coupled with the communication button and the MIC module in the radio module; When the first universal interface is at high level, the electronic device is in non-shoulder mic mode, the second end and the third end of the first switching unit are conducted, so that the communication interface is coupled with the first interface module.
7. The signal control circuit of claim 5, wherein, The first end of the second switching unit is coupled with the second universal interface of the control module, the second end of the second switching unit is coupled with the communication interface, the third end of the second switching unit is coupled with the second interface module, and the fourth end of the second switching unit is coupled with the third interface module. When the second universal interface is at high level, the electronic device is in shoulder mic mode, the second end and the fourth end of the second switching unit are conducted, so that the communication interface is coupled with the third interface module. When the second universal interface is at low level, the electronic device is in non-shoulder mic mode, the second end and the third end of the second switching unit are conducted, so that the communication interface is coupled with the second interface module.
8. The signal control circuit of claim 5, wherein, The audio switching unit comprises: A first switching circuit, a first end of the first switching circuit is coupled with an audio module of the electronic device, and a second end of the first switching circuit is coupled with the loudspeaker; A second switching circuit, a first end of the second switching circuit is coupled with the third interface module, and a second end of the second switching circuit is coupled with the loudspeaker; In the shoulder mic mode, and when the third interface module supports serial communication, the first end and the second end of the first switching circuit are conducted, so that the audio module of the electronic device and the loudspeaker are coupled, or the first end and the second end of the second switching circuit are conducted, so that the third interface module of the electronic device and the loudspeaker are coupled.
9. The signal control circuit according to claim 8, characterized by The first switching circuit comprises: A first switching device, a control end of the first switching device is coupled with a third universal interface of the control module, a first end of the first switching device is coupled with a first plate of a first resistor, a second plate of the first resistor is coupled with a voltage end, and a second end of the first switching device is grounded; A second switching device, a control end of the second switching device is coupled with the first plate of the first resistor, and a first end of the second switching device is coupled with the audio module of the electronic device; A third switching device, a control end of the third switching device is coupled with the first plate of the first resistor, a first end of the third switching device is coupled with a second end of the second switching device, and a second end of the third switching device is coupled with the loudspeaker; In the shoulder mic mode, and when the third interface module supports serial communication, the first switching device, the second switching device and the third switching device are conducted when the third universal interface is at low level, so that the loudspeaker of the electronic device is coupled with the audio module of the electronic device.
10. The signal control circuit of claim 8, wherein, The second switching circuit comprises: a fourth switch device, a control terminal of the fourth switch device being coupled to a fourth universal interface of the control module, a first terminal of the fourth switch device being coupled to a first polar plate of a second resistor, a second polar plate of the second resistor being coupled to a voltage terminal, and a second terminal of the fourth switch device being grounded; a fifth switch device, a control terminal of the fifth switch device being coupled to the first polar plate of the second resistor, and a first terminal of the fifth switch device being coupled to the third interface module; a sixth switch device, a control terminal of the sixth switch device being coupled to the first polar plate of the second resistor, a first terminal of the sixth switch device being coupled to a second terminal of the fifth switch device, and a second terminal of the sixth switch device being coupled to the loudspeaker; in the shoulder mode, and when the third interface module supports performing serial communication and the fourth universal interface is at a low level, the fourth switch device, the fifth switch device, and the sixth switch device are turned on, so that the loudspeaker of the electronic device is coupled to the third interface module.
11. The signal control circuit of claim 3, wherein, the communication interface includes a CC pin, one end of the CC pin being coupled to the detection module, and the other end of the CC pin being coupled to the external device; when the electronic device is in a powered-on state and the external device is coupled to the communication interface, the detection module is configured to determine a type of the external device according to a voltage input by the CC pin; when the electronic device is in a powered-off state and the external device is coupled to the communication interface, the electronic device is powered by the external device.
12. The signal control circuit of claim 1, wherein, the detection module includes: a voltage detection module, coupled to a VBUS pin of the communication interface, the voltage detection module being configured to detect an input voltage value of the external device coupled to the communication interface via the VBUS pin when the electronic device is in a powered-on state.
13. An electronic device, comprising: the electronic device includes the signal control circuit according to any one of claims 1-12.
14. A law enforcement system, comprising: the law enforcement system includes an electronic device and an external device, the electronic device being coupled to the external device via the signal control circuit according to any one of claims 1-12.