Control switching circuit and electric equipment
By designing a control switching circuit including a signal processing unit and a signal switching unit, the control rights handover between the MCU and the SOC is simplified, complex software logic and high cost problems in the prior art are solved, and resource occupation is reduced.
Patent Information
- Application Number
- CN202510238775.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-08-05
AI Technical Summary
In the prior art, the software control logic of the vehicle domain controller when transferring the control rights of MCU and SOC is complex, the development cost is high, and the processing resources are occupied.
A control switching circuit is designed, including a signal processing unit, a signal switching unit, a first control unit and a second control unit, and simplifies the handover of control rights through voltage detection and other means to avoid handshake communication.
The software control logic for the handover of control is simplified, the development cost is reduced and processing resource occupancy is reduced.
Smart Images

Figure CN120422786A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and more particularly, to a control switching circuit and an electrical device. Background Art
[0002] With the rapid development of technology and the automotive industry, more and more vehicles are equipped with corresponding intelligent modules, such as functions like assisted driving and parking assistance can be achieved through these intelligent modules, and these functions largely rely on the images captured by the cameras installed on the vehicle.
[0003] In the related art, various auxiliary functions of the vehicle are generally implemented by the domain controller on the vehicle. For example, taking the automatic parking assistance function as an example, specifically, multiple ultra-wide-angle cameras installed on the vehicle can simultaneously collect images around the vehicle, which are corrected and stitched by the image processing unit to form a panoramic view of the surrounding of the vehicle and then displayed on the display device of the vehicle. When the image processing unit fails and cannot output images normally, the domain controller will control the image processing unit to restart to restore the image output function. However, the system-on-chip (SOC) in the domain controller takes a long time to start successfully after power-on. Therefore, when the domain controller is just powered on, it is controlled by the microcontroller unit (MCU) in the domain controller. After the SOC starts successfully, the SOC and the MCU need to perform a handshake authentication and corresponding communication before the control right of the MCU can be transferred to the SOC.
[0004] However, since the related art solution requires the MCU and the SOC to perform handshake authentication and communication when transferring the control right, the related art has problems such as complex software control logic, high development cost, and occupation of the processing resources of the MCU and the SOC during the handshake communication process. Summary of the Invention
[0005] The purpose of this application is to provide a control switching circuit and an electrical device, which can simplify the software control logic when transferring the control right between the first control unit and the second control unit, reduce the development cost, and reduce the occupation of the processing resources of the first control unit and the second control unit.
[0006] The embodiments of this application are implemented as follows:
[0007] In the first aspect of the embodiments of this application, a control switching circuit is provided. The control switching circuit includes: a signal processing unit, a signal switching unit, a first control unit, and a second control unit;
[0008] The signal processing unit is used to connect the acquisition device and the output device. The signal processing unit is electrically connected to the signal switching unit and the first control unit. The signal processing unit is used to restart under the control of the first control unit or the second control unit.
[0009] The signal switching unit is electrically connected to the first control unit and the second control unit. The signal switching unit is used to forward each signal output by the second control unit to the signal processing unit under the action of the switching signal output by the first control unit.
[0010] The first control unit is electrically connected to the second control unit. The first control unit is further used to output the switching signal to the signal switching unit according to the startup state of the second control unit.
[0011] Optionally, the input end of the signal processing unit is used to connect the acquisition device, the output end of the signal processing unit is used to connect the output device, the communication end of the signal processing unit is connected to the first communication end of the signal switching unit, and the first control end and the second control end of the signal processing unit are respectively connected to the first end of the first control unit and the first control end of the signal switching unit.
[0012] The second control end, the third control end, and the second communication end of the signal switching unit are respectively connected to the second end, the third end, and the fourth end of the first control unit, and the third communication end and the fourth control end of the signal switching unit are respectively connected to the first end and the second end of the second control unit.
[0013] The fifth end of the first control unit is connected to the third end of the second control unit.
[0014] Optionally, the signal processing unit includes a signal input unit and a signal output unit.
[0015] The input end of the signal input unit is used to connect the acquisition device. The output end and the control end of the signal input unit are respectively connected to the input end of the signal output unit and the first end of the first control unit. The communication end of the signal input unit is respectively connected to the communication end of the signal output unit and the first communication end of the signal switching unit. The signal input unit is used to restart under the control of the first control unit or the second control unit.
[0016] The output end of the signal output unit is used to connect to the output device, and the control ends of the signal output unit are respectively connected to the first control end of the signal switching unit and the control end of the signal input unit; the signal output unit is used to restart under the control of the first control unit or the second control unit.
[0017] Optionally, the signal switching unit includes: a first signal switch;
[0018] The switching end of the first signal switch is connected to the second end of the first control unit, the first communication end of the first signal switch is connected to the fourth end of the first control unit, the second communication end of the first signal switch is connected to the first end of the second control unit, and the third communication end of the first signal switch is respectively connected to the communication end of the signal input unit and the communication end of the signal output unit;
[0019] Wherein, the first signal switch is used to enable the first control unit to communicate with the signal input unit and the signal output unit when the first switching signal output by the first control unit is not received;
[0020] The first signal switch is further used to enable the second control unit to communicate with the signal input unit and the signal output unit when the first switching signal is received.
[0021] Optionally, the signal switching unit further includes: a second signal switch;
[0022] The switching end of the second signal switch is connected to the third end of the first control unit, the first control end of the second signal switch is respectively connected to the second end of the second control unit, and the second control end of the second signal switch is respectively connected to the control end of the signal output unit and the control end of the signal input unit;
[0023] Wherein, the second signal switch is used to turn off when the second switching signal output by the first control unit is not received;
[0024] The second signal switch is further used to turn on when the second switching signal is received, so that the second control unit controls the signal output unit and / or the signal input unit to restart.
[0025] Optionally, the control switching circuit further includes: a first diode;
[0026] The positive pole of the first diode is respectively connected to the control end of the signal input unit and the control end of the signal output unit, and the negative pole of the first diode is connected to the first end of the first control unit.
[0027] Optionally, the control switching circuit further includes a load switch;
[0028] The output end of the load switch is connected to the input end of the signal processing unit, and the control end of the load switch is respectively connected to the sixth end of the first control unit and the fourth end of the second control unit; moreover, the fourth end of the second control unit is further connected to the fifth control end of the signal switching unit;
[0029] Wherein, the load switch is used to output a bias voltage to the input end of the signal processing unit and restart under the control of the first control unit or the second control unit.
[0030] Optionally, the control switching circuit further includes a second diode;
[0031] The positive pole of the second diode is respectively connected to the control end of the load switch and the fourth end of the second control unit, and the negative pole of the second diode is connected to the sixth end of the first control unit.
[0032] Optionally, the signal input unit is a deserializer; the signal output unit is a serializer.
[0033] Optionally, the first control unit is a micro control unit, and the second control unit is a system on chip;
[0034] Wherein, the startup duration of the first control unit is less than the startup duration of the second control unit.
[0035] In the second aspect of the embodiments of the present application, an electrical device is provided, and the electrical device at least includes an output device, a collection device, and any one of the control switching circuits described in the first aspect above.
[0036] The beneficial effects of the embodiments of the present application include:
[0037] A control switching circuit provided by the embodiments of the present application, by arranging a signal processing unit, a signal switching unit, a first control unit, and a second control unit in the control switching circuit. Specifically, the input end of the signal processing unit is used to connect to the collection device, the output end of the signal processing unit is used to connect to the output device, the communication end of the signal processing unit is connected to the first communication end of the signal switching unit, and the first control end and the second control end of the signal processing unit are respectively connected to the first end of the first control unit and the first control end of the signal switching unit. The second control end, the third control end, and the second communication end of the signal switching unit are respectively connected to the second end, the third end, and the fourth end of the first control unit, the third communication end and the fourth control end of the signal switching unit are respectively connected to the first end and the second end of the second control unit. The fifth end of the first control unit is further connected to the third end of the second control unit.
[0038] Among them, when the second control unit has not been started up completely, the first control unit controls the signal processing unit first. In this way, it is possible to prevent the problem that in the case where the circuit has been started but the second control unit has not been started up completely, the abnormal working conditions that may occur in the signal processing unit cannot be processed.
[0039] In addition, when the second control unit has been started up completely, the first control unit adjusts the state of the signal switching unit so that the control signal output by the second control unit can be output to the signal processing unit. It can be seen that in this process, the first control unit only needs to determine whether the second control unit is powered on and started successfully through methods such as voltage detection. There is no need for complex software-level interactions such as handshake communication between the first control unit and the second control unit.
[0040] In this way, it is possible to ensure that the problem of not being able to quickly generate a drawing due to a failure of the signal processing unit when just powered on can be eliminated, and it is also possible to simplify the software control logic when transferring the control right between the first control unit and the second control unit, reduce the development cost, and reduce the processing resources occupied by the first control unit and the second control unit. Brief Description of the Drawings
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and thus should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0042] Figure 1 Structural schematic diagram of the first control switching circuit provided by the embodiment of the present application;
[0043] Figure 2 Structural schematic diagram of the second control switching circuit provided by the embodiment of the present application;
[0044] Figure 3 Structural schematic diagram of the third control switching circuit provided by the embodiment of the present application;
[0045] Figure 4 Structural schematic diagram of the fourth control switching circuit provided by the embodiment of the present application;
[0046] Figure 5 Structural schematic diagram of the fifth control switching circuit provided by the embodiment of the present application. Detailed Embodiments
[0047] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are some, but not all, of the embodiments of this application. Components of the embodiments of this application that are usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations.
[0048] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of this application that is claimed, but merely represents selected embodiments of this application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts fall within the scope of protection of this application.
[0049] It should be noted that similar reference numerals and letters denote similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0050] In the description of this application, it should be noted that the terms "first", "second", "third", etc. are only used for descriptive distinction and cannot be construed as indicating or implying relative importance.
[0051] In the description of this application, it should also be noted that unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "couple" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two components. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific situations.
[0052] Various auxiliary functions of a vehicle are generally implemented by a domain controller in the vehicle. For example, taking the automatic parking assistance function as an example, specifically, multiple ultra-wide-angle cameras installed on the vehicle can simultaneously collect images around the vehicle. After being corrected and stitched by an image processing unit, a panoramic view of the surrounding of the vehicle is formed and displayed on the display device of the vehicle. When the image processing unit fails and cannot normally output an image, the domain controller will control the image processing unit to restart to restore the image output function. However, the system-on-chip (SOC) in the domain controller takes a long time to start successfully after power-on. Therefore, when the domain controller is just powered on, it is controlled by the microcontroller unit (MCU) in the domain controller. After the SOC is successfully started, the SOC and the MCU need to perform a handshake authentication and corresponding communication before the control right of the MCU can be transferred to the SOC.
[0053] However, since the solutions of the related technologies require the MCU and the SOC to perform handshake authentication and communication when transferring control rights, the related technologies have problems such as complex software control logic and high development costs. Moreover, the processing resources of the MCU and the SOC will be occupied during the handshake communication process.
[0054] For this reason, the embodiments of the present application provide a control switching circuit. By setting a signal processing unit, a signal switching unit, a first control unit, and a second control unit in the control switching circuit, specifically, the signal processing unit is used to connect the acquisition device and the output device X. The signal processing unit is electrically connected to the signal switching unit, and the signal processing unit is electrically connected to the first control unit; the signal switching unit is electrically connected to the first control unit, and the signal switching unit is electrically connected to the second control unit; the first control unit is also electrically connected to the second control unit. In this way, the software control logic when transferring control rights between the first control unit and the second control unit can be simplified, the development cost can be reduced, and the processing resources occupied by the first control unit and the second control unit can be reduced.
[0055] The embodiments of the present application will be described by taking the control switching circuit applied to the electrical equipment as an example. However, it does not mean that the embodiments of the present application can only be applied to the electrical equipment to switch the control rights between two control units.
[0056] Optionally, the electrical equipment may be any device that may have two control units, such as a vehicle, a drone, an unmanned ship, etc. The embodiments of the present application do not limit this.
[0057] The control switching circuit provided by the embodiments of the present application will be explained in detail below.
[0058] Figure 1 It is a schematic structural diagram of a control switching circuit provided by the present application. Refer to Figure 1 The embodiments of the present application provide a control switching circuit 101. The circuit 101 includes: a signal processing unit 102, a signal switching unit 103, a first control unit 104, and a second control unit 105.
[0059] The signal processing unit 102 is used to connect the acquisition device and the output device X. The signal processing unit 102 is electrically connected to the signal switching unit 103, the signal processing unit 102 is electrically connected to the first control unit 104, and the signal processing unit 102 is used to restart under the control of the first control unit 104 or the second control unit 105.
[0060] The signal switching unit 103 is electrically connected to the first control unit 104 and the second control unit 105. The signal switching unit 103 is configured to forward each signal output by the second control unit 105 to the signal processing unit 102 under the action of a switching signal output by the first control unit 104.
[0061] The first control unit 104 is also electrically connected to the second control unit 105. The first control unit 104 is configured to output a switching signal to the signal switching unit 103 according to the startup state of the second control unit 105.
[0062] Specifically, the input end of the signal processing unit 102 is used to connect to an acquisition device, the output end of the signal processing unit 102 is used to connect to an output device X, the communication end of the signal processing unit 102 is connected to the first communication end of the signal switching unit 103, and the first control end and the second control end of the signal processing unit 102 are respectively connected to the first end of the first control unit 104 and the first control end of the signal switching unit 103.
[0063] The second control end, the third control end, and the second communication end of the signal switching unit 103 are respectively connected to the second end, the third end, and the fourth end of the first control unit 104, and the third communication end and the fourth control end of the signal switching unit 103 are respectively connected to the first end and the second end of the second control unit 105.
[0064] The fifth end of the first control unit 104 is also connected to the third end of the second control unit 105.
[0065] Among them, the signal processing unit 102 is configured to restart under the control of the first control unit 104 or the second control unit 105.
[0066] Exemplarily, the output device X may be a display device or an audio output device, etc. The signal processing unit 102 can specifically be restarted under the control of the first control unit 104 or the second control unit 105 in case of abnormalities such as a failure, a freeze, or a startup failure (even causing the circuit 101 to crash) of the signal processing unit 102. For example, when the circuit 101 is just powered on, if the signal processing unit 102 is abnormal, it can be restarted by the first control unit 104; after the circuit 101 is powered on and the second control unit 104 is started, if the signal processing unit 102 is abnormal, it can be restarted by the second control unit 105.
[0067] For another example, when the control signal processing unit 102 restarts, the reset terminal of the signal processing unit 102 can be enabled to make the signal processing unit 102 restore its initial state; or the power-off pin of the signal processing unit 102 can be enabled to power down the signal processing unit 102 and then power it on again to achieve restart; or the signal processing unit 102 can be restarted by any other possible means, and the embodiments of the present application do not limit this.
[0068] In addition, the signal processing unit 102 can also be used to process and forward the first image signal sent by the acquisition device C to the display device.
[0069] Optionally, the acquisition device C can be a camera for acquiring images. For example, if the circuit 101 is applied to a vehicle, the acquisition device C can be any possible camera such as an ultra-wide-angle camera, an infrared camera, an RGB camera, etc. installed on the vehicle.
[0070] The first image signal can refer to a signal for indicating the content of the image generated based on the image acquired by the acquisition device C. For example, the first image signal can be a Gigabit Multimedia Serial Links (GMSL) signal, or any other signal that can be recognized, analyzed, and processed by the signal processing unit 102. The embodiments of the present application do not limit this.
[0071] Optionally, the display device can be used to display the image acquired by the acquisition device C. For example, if the circuit 101 is applied to a vehicle, the display device can be a display screen installed in the center console of the vehicle, such as an In-Vehicle Infotainment (IVI) in the vehicle.
[0072] In addition, after the acquisition device C outputs the first image signal to the signal processing unit 102, the signal processing unit 102 can also convert the format of the first image signal, specifically to a format that can be recognized, analyzed, and processed by the display device. For example, it can be converted to a Mobile Industry Processor Interface (MIPI) signal so that the display device can correctly display the image acquired by the acquisition device C.
[0073] Optionally, the signal switching unit 103 is used to forward each signal output by the second control unit 105 to the signal processing unit 102 under the action of the switching signal output by the first control unit 104.
[0074] Specifically, the signal switching unit 103 will only forward the signal output by one of the first control unit 104 and the second control unit 105 to the signal processing unit 102 at the same moment. That is, at the same moment, only one of the first control unit 104 and the second control unit 105 will control the signal processing unit 102.
[0075] Among them, the switching signal output by the first control unit 104 can be used to adjust the signal forwarding relationship of the signal switching unit 103. For example, when the first control unit 104 does not output this switching signal, the signal switching unit 103 can forward each signal output by the first control unit 104, rather than each signal output by the second control unit 105, to the signal processing unit 102; when the first control unit 104 outputs this switching signal, the signal switching unit 103 can be used to forward each signal output by the second control unit 105 to the signal processing unit 102, rather than each signal output by the first control unit 104, to the signal processing unit 102. The embodiments of the present application do not limit this.
[0076] Exemplarily, each signal output by the second control unit 105 can at least include a control signal for restarting the signal processing unit 102, and / or a communication signal for obtaining whether the signal processing unit 102 is working properly, as well as any other possible communication signals.
[0077] Again, for example, each signal output by the first control unit 104 can at least include a communication signal for obtaining whether the signal processing unit 102 is working properly, as well as other possible communication signals. The embodiments of the present application do not limit this.
[0078] In addition, the control signal for restarting the signal processing unit 102 output by the first control unit 104 can be directly transmitted to the signal processing unit 102 without being forwarded by the signal switching unit 103.
[0079] It can be understood that after the first control unit 104 or the second control unit 105 sends a communication signal for obtaining whether the signal processing unit 102 is working properly to the signal processing unit 102 through the signal switching unit 103, the signal processing unit 102 also needs to send a corresponding feedback signal to the first control unit 104 or the second control unit 105 through the signal switching unit 103.
[0080] In this case, the signal switching unit 103 will send the feedback signal of the signal processing unit 102 to the first control unit 104 or the second control unit 105 according to the signal forwarding relationship at the current moment. The embodiments of the present application do not limit this.
[0081] In addition, the signal switching unit 103 can also be used to implement communication between each control unit and the signal input unit 1021 and the signal output unit 1022.
[0082] Optionally, the first control unit 104 is further configured to output the switching signal to the signal switching unit 103 according to the startup state of the second control unit 105. In addition, after the first control unit 104 outputs the switching signal, the first control unit 104 will not continue to output the corresponding control signal to the signal processing unit 102.
[0083] In this embodiment, the startup state can be used to indicate whether the second control unit 105 has completed startup. Generally, if the first control unit 104 determines that the second control unit 105 has not completed startup, then the first control unit 104 does not output the switching signal; if the first control unit 104 determines that the second control unit 105 has completed startup, then the first control unit 104 outputs the switching signal. In this way, when the second control unit 105 has completed startup, the control right of the first control unit 104 over the signal processing unit 102 can be transferred to the second control unit 105.
[0084] Exemplarily, the first control unit 104 can determine whether the second control unit 105 has completed startup by detecting the voltage at the fourth terminal of the second control unit 105, specifically, it can be achieved by the second control unit 105 pulling up the voltage at the fourth terminal of the second control unit 105 after startup. In addition, the first control unit 104 can also determine the startup state of the second control unit 105 by any other means that do not require handshake communication. The embodiments of the present application do not limit this.
[0085] In this way, the first control unit 104 only needs to perform simple detection operations such as voltage detection, and does not need to perform handshake communication with the second control unit 105 anymore.
[0086] Optionally, the signal input unit 1021 can include a deserialization device, and the signal output unit 1022 can include a serialization device. In addition, the signal input unit 1021 and the signal output unit 1022 can also be any other devices capable of processing and forwarding the first image signal. The embodiments of the present application do not limit this.
[0087] Optionally, the startup duration of the first control unit 104 is less than the startup duration of the second control unit 105. The first control unit 104 is an MCU, and the second control unit 105 is a SOC. The signal processing unit 102, the signal switching unit 103, the first control unit 104, and / or the second control unit 105 are provided with corresponding working voltages. The embodiments of the present application do not limit this.
[0088] It should be noted that, in order to better explain the circuit 101 provided in the embodiments of the present application, the following introduces the specific working principle of the circuit 101 in combination with the scenario where the output device X is specifically a display device:
[0089] When the circuit 101 is in the sleep or power-down state, the acquisition device C does not output the first image signal, and the signal processing unit 102, the signal switching unit 103, the first control unit 104, and the second control unit 105 in the circuit 101 do not work, and there is no image display on the display device.
[0090] When the circuit 101 starts to power on for the first time, and the first control unit 104 starts while the second control unit 105 has not started, if the signal processing unit 102 is working properly, then the signal processing unit 102 will forward the first image information that the acquisition device C starts to output to the display device for display. Since the first control unit 104 is powered on and working, if the first control unit 104 detects an abnormality in the signal processing unit 102, at this time, the signal switching unit 103 defaults to forwarding the control signal output by the first control unit 104 to the signal processing unit 102. Therefore, the first control unit 104 controls the signal processing unit 102 to restart, so that the signal processing unit 102 can resume the normal state and continue to forward the first image signal to the display device for display.
[0091] When both the first control unit 104 and the second control unit 105 are started, the first control unit 104 can detect the start state of the second control unit 105, and then output the switching signal to the signal switching unit 103, so that the signal switching unit 103 starts to forward the control signal output by the second control unit 105 to the signal processing unit 102. At this time, the control right of the signal processing unit 102 is transferred from the first control unit 104 to the second control unit 105. In this case, if the second control unit 105 detects an abnormality in the signal processing unit 102, the second control unit 105 controls the signal processing unit 102 to restart, so that the signal processing unit 102 can resume the normal state and continue to forward the first image signal to the display device for display.
[0092] In this way, the transfer of control right between the first control unit 104 and the second control unit 105 is completed.
[0093] It should be noted that, as can be seen from the relevant descriptions of the above embodiments, the circuit 101 provided by the embodiments of the present application can first control the signal processing unit 102 by the first control unit 104 when the second control unit 105 has not been started up completely. Since the startup duration of the first control unit 104 is less than that of the second control unit 105, it is possible to avoid the problem that the abnormal working conditions that may occur in the signal processing unit 102 cannot be processed when the circuit 101 has been started but the second control unit 105 has not been started up completely.
[0094] In addition, when the second control unit 105 has been started up completely, the circuit 101 provided by the embodiments of the present application can also adjust the state of the signal switching unit 103 through the first control unit 104 so that the control signal output by the second control unit 105 can be output to the signal processing unit 102. It can be seen that in this process, the first control unit 104 only needs to determine whether the second control unit 105 is powered on and started successfully by means such as voltage detection. There is no need for complex software-level interactions such as handshake communication between the first control unit 104 and the second control unit 105. In this way, the software control logic between the first control unit 104 and the second control unit 105 can be simplified, the development cost can be reduced, and the processing resources occupied by the first control unit 104 and the second control unit 105 can be reduced.
[0095] In the embodiments of the present application, a signal processing unit 102, a signal switching unit 103, a first control unit 104, and a second control unit 105 are provided in the control switching circuit 101. Specifically, the input end of the signal processing unit 102 is used to connect to the acquisition device C, the output end of the signal processing unit 102 is used to connect to the output device X, the communication end of the signal processing unit 102 is connected to the first communication end of the signal switching unit 103, and the first control end and the second control end of the signal processing unit 102 are respectively connected to the first end of the first control unit 104 and the first control end of the signal switching unit 103. The second control end, the third control end, and the second communication end of the signal switching unit 103 are respectively connected to the second end, the third end, and the fourth end of the first control unit 104, and the third communication end and the fourth control end of the signal switching unit 103 are respectively connected to the first end and the second end of the second control unit 105. The fifth end of the first control unit 104 is also connected to the third end of the second control unit 105.
[0096] Among them, when the second control unit 105 has not been started up completely, the first control unit 104 controls the signal processing unit 102 first, and then when the second control unit 105 has been started up completely, the second control unit 105 controls the signal processing unit 102. Therefore, it is possible to prevent the problem that when the circuit 101 has been started but the second control unit 105 has not been started up completely, the abnormal working conditions that may occur in the signal processing unit 102 cannot be processed.
[0097] In addition, when the second control unit 105 has been started up completely, the first control unit 104 adjusts the state of the signal switching unit 103 so that the control signal output by the second control unit 105 can be output to the signal processing unit 102. It can be seen that in this process, the first control unit 104 only needs to determine whether the second control unit 105 is powered on and started successfully by means of voltage detection, etc. There is no need for complex software-level interactions such as handshake communication between the first control unit 104 and the second control unit 105.
[0098] In this way, it is possible to ensure that when just powered on, the problem that the signal processing unit 102 fails and cannot quickly output images can be eliminated, and the software control logic when transferring the control right between the first control unit 104 and the second control unit 105 can be simplified, the development cost can be reduced, and the processing resources of the first control unit 104 and the second control unit 105 can be reduced.
[0099] In a possible implementation manner, referring to Figure 2 , the signal processing unit 102 includes: a signal input unit and a signal output unit;
[0100] The input end of the signal input unit 1021 is used to connect to the acquisition device C. The output end and the control end of the signal input unit 1021 are respectively connected to the input end of the signal output unit 1022 and the first end of the first control unit 104. The communication end of the signal input unit 1021 is respectively connected to the communication end of the signal output unit 1022 and the first communication end of the signal switching unit 103.
[0101] The output end of the signal output unit 1022 is used to connect to the output device X. The control end of the signal output unit 1022 is respectively connected to the first control end of the signal switching unit 103 and the control end of the signal input unit 1021.
[0102] Among them, the signal input unit 1021 is used to restart under the control of the first control unit 104 or the second control unit 105.
[0103] Specifically, the signal input unit 1021 can be specifically used to be restarted under the control of the first control unit 104 when the first control unit 104 does not output the above switching signal to the signal switching unit 103, and to be restarted under the control of the second control unit 105 when the first control unit 104 outputs the switching signal to the signal switching unit 103. The embodiments of the present application do not limit this.
[0104] In this embodiment, the output device X is specifically a display device. The signal input unit 1021 can also be used to convert the first image signal input by the acquisition device C into a second image signal and output the second image signal to the signal output unit 1022.
[0105] Optionally, the second image signal can be a MIPI signal, and can be specifically adjusted according to the signal type recognizable by the signal output unit 1022. The embodiments of the present application do not limit this.
[0106] Optionally, the signal output unit 1022 is used to be restarted under the control of the first control unit 104 or the second control unit 105.
[0107] Specifically, the signal output unit 1022 can be specifically used to be restarted under the control of the first control unit 104 when the first control unit 104 does not output the above switching signal to the signal switching unit 103, and to be restarted under the control of the second control unit 105 when the first control unit 104 outputs the switching signal to the signal switching unit 103. The embodiments of the present application do not limit this.
[0108] In this embodiment, the signal output unit 1022 can also be used to convert the second image signal into the third image signal and output the third image signal to the display device.
[0109] Optionally, the format of the third image signal can be the same as or different from that of the first image signal. For example, the third image signal can be a GMSL signal, and can be specifically adjusted according to the signal type recognizable and correctly displayed by the display device. The embodiments of the present application do not limit this.
[0110] Optionally, the output end of the signal input unit 1021 and the input end of the signal output unit 1022 can be connected by a connection line L1. The communication end of the signal input unit 1021 can be connected to the communication end of the signal output unit 1022 and the first communication end of the signal switching unit 103 by a connection line L2
[0111] It can be understood that after the acquisition device C outputs the first image signal to the signal input unit 1021, the signal input unit 1021 can convert the first image signal into the second image signal that the signal output unit 1022 can recognize and process; and the signal output unit 1022 can further convert the second image signal into the third image signal that the display device can recognize and display. In this way, it can be ensured that the display device can display the image collected by the acquisition device C quickly, directly, and correctly.
[0112] It is worth noting that if the signal input unit 1021 and / or the signal output unit 1022 fails to output an image normally when the circuit 101 is just powered on, then at this stage, the first control unit 104 with a shorter startup duration can first control the signal input unit 1021 and / or the signal output unit 1022 to restart to eliminate the faults of the signal input unit 1021 and / or the signal output unit 1022. After the second control unit 105 starts successfully, the first control unit 104 can then transfer the control rights of the signal input unit 1021 and the signal output unit 1022 to the second control unit 105, and the second control unit 105 is responsible for controlling the signal input unit 1021 and / or the signal output unit 1022 to restart to eliminate the possible faults of not being able to output an image.
[0113] In a possible implementation manner, refer to Figure 3 , the signal switching unit 103 includes: a first signal switch 1031.
[0114] The switching end of the first signal switch 1031 is connected to the second end of the first control unit 104, the first communication end of the first signal switch 1031 is connected to the fourth end of the first control unit 104, the second communication end of the first signal switch 1031 is connected to the first end of the second control unit 105, and the third communication end of the first signal switch 1031 is respectively connected to the communication ends of the signal input unit 1021 and the signal output unit 1022.
[0115] Optionally, the first signal switch 1031 can be a gating switch or a signal analog switch, and the first signal switch 1031 generally has two states. For example, in the default state, the first signal switch 1031 can enable the first control unit 104 to be connected to the signal input unit 1021 and the signal output unit 1022 through the first signal switch 1031, while preventing the second control unit 105 from being connected to the signal input unit 1021 and the signal output unit 1022 through the first signal switch 1031; in the enabled state, the second control unit 105 can be connected to the signal input unit 1021 and the signal output unit 1022 through the first signal switch 1031, while preventing the first control unit 104 from being connected to the signal input unit 1021 and the signal output unit 1022 through the first signal switch 1031. The embodiments of the present application do not limit this.
[0116] In this embodiment, the first signal switch 1031 is configured to enable the first control unit 104 to communicate with the signal input unit 1021 and the signal output unit 1022 when the first switching signal output by the first control unit 104 is not received.
[0117] The first signal switch 1031 is further configured to enable the second control unit 105 to communicate with the signal input unit 1021 and the signal output unit 1022 when the first switching signal is received.
[0118] Optionally, the first switching signal can be a signal for controlling the first signal switch 1031 to change the signal forwarding relationship. For example, the first switching signal can specifically be used to control the first signal switch 1031 to switch from the default state to the enabled state.
[0119] Further, continue to refer to Figure 3 , the signal switching unit 103 further includes: a second signal switch 1032.
[0120] The switching end of the second signal switch 1032 is connected to the third end of the first control unit 104, the first control end of the second signal switch 1032 is respectively connected to the second end of the second control unit 105, and the second control end of the second signal switch 1032 is respectively connected to the control end of the signal output unit 1022 and the control end of the signal input unit 1021.
[0121] Optionally, the second signal switch 1032 can be a connection switch or a signal simulation switch, and the second signal switch 1032 generally has two states. For example, in the default state, the second signal switch 1032 can prevent the second control unit 105 from connecting to the signal input unit 1021 and the signal output unit 1022 through the second signal switch 1032; in the enabled state, the second control unit 105 can be enabled to connect to the signal input unit 1021 and the signal output unit 1022 through the second signal switch 1032. The embodiments of the present application do not limit this.
[0122] In this embodiment, the second signal switch 1032 is used to turn off when the second switching signal output by the first control unit 104 is not received.
[0123] The second signal switch 1032 is also used to turn on when the second switching signal is received, so that the second control unit 105 controls the signal output unit 1022 and / or the signal input unit 1021 to restart.
[0124] Optionally, the second switching signal can be a signal used to control the second signal switch 1032 to change its state. For example, the second switching signal can specifically be used to control the second signal switch 1032 to switch from the default state to the enabled state.
[0125] Generally, the first control unit 104 can specifically output the first switching signal and the second switching signal when it is determined that the second control unit 105 has started successfully.
[0126] It should be noted that since the startup duration of the first control unit 104 is less than the startup duration of the second control unit 105, when power is initially applied, the first signal switch 1031 can first enable the first control unit 104 to communicate with the signal input unit 1021 and the signal output unit 1022, and the second control switch 1032 can be turned off first. If the signal input unit 1021 and the signal output unit 1022 malfunction, the first control unit 1031 can first control the signal input unit 1021 and the signal output unit 1022 to restart.
[0127] Then after the second control unit 105 starts successfully, the first control unit 104 outputs the first switching signal and the second switching signal respectively. At this time, the first signal switch 1031 can enable the second control unit 105 to communicate with the signal input unit 1021 and the signal output unit 1022, and the second signal switch 1032 is turned on, and the second control unit 105 can control the signal output unit 1022 and / or the signal input unit 1021 to restart.
[0128] In this way, the transfer of control right between the first control unit 104 and the second control unit 105 can be completed. It can be seen that in the circuit 101 provided by the embodiments of the present application, the first control unit 104 only needs to determine whether the second control unit 105 has completed startup, and does not need to perform complex interactions at the software level such as handshake communication.
[0129] In a possible implementation, referring to Figure 4 , the control switching circuit 101 further includes: a first diode D1.
[0130] The positive pole of the first diode D1 is respectively connected to the control ends of the signal input unit 1021 and the signal output unit 1022, and the negative pole of the first diode D1 is connected to the first end of the first control unit 104.
[0131] Among them, the first diode D1 can be used to protect the pins and internal circuits of the first control unit 104 from being damaged.
[0132] In a possible implementation, continue to refer to Figure 4 , the control switching circuit 101 further includes a load switch 106.
[0133] The output end of the load switch 106 is connected to the input end of the signal processing unit 102, and the control ends of the load switch 106 are respectively connected to the sixth end of the first control unit 104 and the fourth end of the second control unit 105.
[0134] Moreover, the fourth end of the second control unit 105 is further connected to the fifth control end of the signal switching unit 103. That is, the fourth end of the second control unit 105 is further connected to the third control end of the second signal switch 1032.
[0135] Among them, the load switch 106 is used to output a bias voltage to the input end of the signal processing unit 102 and restart under the control of the first control unit 104 or the second control unit 105.
[0136] Optionally, the bias voltage can be a voltage for raising the voltage level of the above-mentioned first image signal. The bias voltage can be a DC voltage stabilized at a certain voltage level.
[0137] Exemplarily, if the first image signal is a GMSL signal, the voltage value of the first image signal will fluctuate back and forth around 0V at a certain period, and the voltage level of the signal that the signal processing unit 102 and / or the signal input unit 1021 can recognize may be greater than 0V. Therefore, in this case, it is necessary to provide the bias voltage to raise the voltage level of the first image signal. For example, if the bias voltage is 11V, then under the action of the bias voltage, the voltage value of the first image signal will fluctuate back and forth around 11V according to the original period and variation amount.
[0138] In this way, it is convenient for the signal processing unit 102 and / or the signal input unit 1021 to correctly recognize the first image signal, thereby ensuring that the display device can normally display the image collected by the collection device C.
[0139] In a possible implementation manner, continue to refer to Figure 4 , the control switching circuit 101 further includes a second diode D2.
[0140] The positive electrode of the second diode D2 is respectively connected to the control end of the load switch 106 and the fourth end of the second control unit 105, and the negative electrode of the second diode D2 is connected to the sixth end of the first control unit 104.
[0141] Among them, the second diode D2 can be used to protect the pins and internal circuits of the first control unit 104 from being damaged.
[0142] In a possible implementation manner, refer to Figure 5 , the signal input unit 1021 specifically includes a deserializer, and the signal output unit 1022 specifically includes a serializer.
[0143] The first control unit 104 is an MCU, and the second control unit 105 is an SOC.
[0144] From Figure 5 the shown structure, it can be seen that the four control ends GPIO1, GPIO2, GPIO3, and GPIO4 of the MCU are respectively connected to the EN end of the load switch 106 (through the second diode D2), the PWDNB1 end of the deserializer, and the PWDNB2 end of the serializer (through the first diode D1), the SW1 end of the first signal switch 1031, and the SW2 end of the second signal switch 1032. The communication end I2C-1 of the MCU is connected to the first communication end of the first signal switch 1031.
[0145] The two control ends GPIO5 and GPIO6 of the SOC are respectively connected to the two control ends of the second signal switch 1032. The communication end I2C-2 of the SOC is connected to the second communication end of the first signal switch 1031. Moreover, the MCU is also connected to the SOC to determine whether the SOC starts successfully.
[0146] In addition, the third communication terminal of the first signal switch 1031 is respectively connected to the communication terminals of the deserialization unit and the serialization unit (specifically connected through the connection line L2). The second control terminal of the second signal switch 1032 is respectively connected to the PWDNB1 terminal of the deserialization unit and the PWDNB2 terminal of the serialization unit, and the third control terminal of the second signal switch 1032 is further connected to the EN terminal of the load switch 106.
[0147] Exemplarily, the MCU can output a control signal to the EN terminal of the load switch 106 through the GPIO1 terminal to power down and restart the load switch 106. The MCU can output control signals to the PWDNB1 terminal of the deserialization unit and the PWDNB2 terminal of the serialization unit respectively through the GPIO2 terminal to power down and restart the deserialization unit and the serialization unit.
[0148] The MCU can output corresponding switching signals to the SW1 terminal of the first signal switch 1031 and the SW2 terminal of the second signal switch 1032 through the GPIO3 and GPIO4 terminals respectively to change the signal forwarding relationship between the first signal switch 1031 and the second signal switch 1032. And connect to the deserialization unit and the serialization unit based on the first signal switch 1031 through the I2C-1 terminal to determine whether the deserialization unit and the serialization unit need to be restarted due to a fault.
[0149] After the SOC is successfully started and the MCU controls the first signal switch 1031 and the second signal switch 1032 to switch, the SOC can output a control signal to the EN terminal of the load switch 106 based on the second signal switch 1032 through the GPIO6 terminal to power down and restart the load switch 106. The SOC can output control signals to the PWDNB1 terminal of the deserialization unit and the PWDNB2 terminal of the serialization unit respectively based on the second signal switch 1032 through the GPIO5 terminal to power down and restart the deserialization unit and the serialization unit. [[ID=1�]]
[0150] In this way, the transfer of control rights between the SOC and the MCU can be achieved.
[0151] The following describes the electrical equipment including the control switching circuit provided in this application. For the specific implementation process and technical effects, refer to the above, and will not be elaborated below.
[0152] An embodiment of the present application provides an electrical equipment, which at least includes: an output device X, a collection device, and the control switching circuit 101 provided in any of the above embodiments.
[0153] Optionally, the electrical equipment can be any device that may have two control units, such as a vehicle, a drone, an unmanned ship, etc., and the embodiments of the present application do not limit this.
[0154] Optionally, the electrical device may further include any other possible devices, such as a power supply device, a power device, etc. The embodiments of the present application do not limit this.
[0155] The above electrical device includes the control switching circuit 101 provided in the foregoing embodiment. The electrical device and the control switching circuit 101 belong to the same inventive concept, and their implementation principles and technical effects are similar, and will not be described herein again.
[0156] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present application, and all of them should be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
[0157] The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A control switching circuit, characterized in that: The control switching circuit includes: a signal processing unit, a signal switching unit, a first control unit and a second control unit; The signal processing unit is used to connect the acquisition device and the output device, the signal processing unit is electrically connected to the signal switching unit, and the signal processing unit is electrically connected to the first control unit; the signal processing unit is used to restart under the control of the first control unit or the second control unit; The signal switching unit is electrically connected to the first control unit, and the signal switching unit is electrically connected to the second control unit; the signal switching unit is used to forward each signal output by the second control unit to the signal processing unit under the action of the switching signal output by the first control unit; The first control unit is electrically connected to the second control unit; the first control unit is further configured to output the switching signal to the signal switching unit according to a startup state of the second control unit.
2. The control switching circuit according to claim 1, wherein: The input end of the signal processing unit is used to connect to the acquisition device, the output end of the signal processing unit is used to connect to the output device, the communication end of the signal processing unit is connected to the first communication end of the signal switching unit, and the first control end and the second control end of the signal processing unit are connected to the first end of the first control unit and the first control end of the signal switching unit respectively; The second control end, the third control end, and the second communication end of the signal switching unit are connected to the second end, the third end, and the fourth end of the first control unit respectively, and the third communication end and the fourth control end of the signal switching unit are connected to the first end and the second end of the second control unit respectively; The fifth end of the first control unit is connected to the third end of the second control unit.
3. The control switching circuit according to claim 2, wherein: The signal processing unit includes: a signal input unit and a signal output unit; The input end of the signal input unit is used to connect to the acquisition device, the output end and the control end of the signal input unit are respectively connected to the input end of the signal output unit and the first end of the first control unit, and the communication end of the signal input unit is respectively connected to the communication end of the signal output unit and the first communication end of the signal switching unit; the signal input unit is used to restart under the control of the first control unit or the second control unit; The output end of the signal output unit is used to connect to the output device, and the control end of the signal output unit is respectively connected to the first control end of the signal switching unit and the control end of the signal input unit; the signal output unit is used to restart under the control of the first control unit or the second control unit.
4. The control switching circuit according to claim 3, wherein: The signal switching unit includes: a first signal switch; The switching end of the first signal switch is connected to the second end of the first control unit, the first communication end of the first signal switch is connected to the fourth end of the first control unit, the second communication end of the first signal switch is connected to the first end of the second control unit, and the third communication end of the first signal switch is connected to the communication end of the signal input unit and the communication end of the signal output unit respectively; Wherein, the first signal switch is used to enable the first control unit to communicate with the signal input unit and the signal output unit when the first switching signal output by the first control unit is not received; The first signal switch is further configured to enable the second control unit to be communicatively connected with the signal input unit and the signal output unit upon receiving the first switching signal.
5. The control switching circuit according to claim 4, wherein: The signal switching unit further includes: a second signal switch; The switching end of the second signal switch is connected to the third end of the first control unit, the first control end of the second signal switch is respectively connected to the second end of the second control unit, and the second control end of the second signal switch is respectively connected to the control end of the signal output unit and the control end of the signal input unit; Wherein, the second signal switch is used to be turned off when the second switching signal output by the first control unit is not received; The second signal switch is further configured to be turned on upon receiving the second switching signal, so that the second control unit controls the signal output unit and / or the signal input unit to restart.
6. The control switching circuit according to claim 3, wherein: The control switching circuit further includes: a first diode; The anode of the first diode is connected to the control end of the signal input unit and the control end of the signal output unit respectively, and the cathode of the first diode is connected to the first end of the first control unit.
7. The control switching circuit according to claim 3, wherein: The control switching circuit further includes a load switch; The output terminal of the load switch is connected to the input terminal of the signal processing unit, and the control terminal of the load switch is connected to the sixth terminal of the first control unit and the fourth terminal of the second control unit respectively; and the fourth terminal of the second control unit is also connected to the fifth control terminal of the signal switching unit; The load switch is configured to output a bias voltage to the input terminal of the signal processing unit and to restart under the control of the first control unit or the second control unit.
8. The control switching circuit according to claim 7, wherein: The control switching circuit further includes a second diode; The anode of the second diode is connected to the control end of the load switch and the fourth end of the second control unit respectively, and the cathode of the second diode is connected to the sixth end of the first control unit.
9. The control switching circuit according to claim 3, wherein: The signal input unit is a deserializer; the signal output unit is a serializer.
10. The control switching circuit according to any one of claims 1 to 9, wherein: The first control unit is a micro control unit, and the second control unit is a system on a chip; The startup time of the first control unit is shorter than the startup time of the second control unit.
11. An electrical device, characterized in that: The electrical equipment at least includes an output device, a collection device and the control switching circuit according to any one of claims 1 to 10.