Debugging interface switching circuit, vehicle machine and vehicle
By introducing debug interface switching circuits into the on-board system, interface switching between the debugging stage and the non-debug stage is achieved, and the problem that the existing debugging interface cannot meet the on-board information security requirements is solved, ensuring information security and function retention.
Patent Information
- Application Number
- CN202311091720.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2025-02-28
AI Technical Summary
The existing debugging interface cannot meet the security requirements of on-board information and cannot guarantee the security of on-board information.
A debug interface switching circuit is provided, by setting the first external interface to connect to the second communication end of the debug switch module, and setting the second external interface to connect to the third communication end of the debug switch module, interface switching is realized in the debug stage and the non-debug stage to ensure information security.
The interface debugging function is implemented in the debugging stage, while the debugging function is retained through the product interface in the non-debug stage. It is confusing and can protect information security and meet the needs of information security.
Smart Images

Figure CN119527200A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of information security technology, and in particular, relates to a debugging interface switching circuit, a vehicle computer and a vehicle. Background Art
[0002] With the continuous development of the new energy vehicle field, the popularity of new energy vehicles continues to rise. In order to achieve the intelligent driving experience of new energy vehicles, the car computer is usually connected to multiple multimedia peripherals, such as display screens, cameras, audio amplifiers, etc., to provide users with a variety of functional experiences in different scenarios, enriching the user's driving experience during the car driving process.
[0003] In order to achieve a multi-functional driving experience, it is necessary to integrate multiple processing chips such as MCU (Microcontroller Unit) and SoC (System on Chip) inside the car computer. Due to the large number of processing chips and the complex system logic, in order to avoid abnormalities in the car computer, debugging of various chips in the car computer is very critical.
[0004] The currently popular debugging interface products cannot meet the security requirements for in-vehicle information and cannot guarantee the security of in-vehicle information. Summary of the invention
[0005] The embodiments of the present application provide a debugging interface switching circuit, a vehicle computer and a vehicle, which can solve the problem that the existing debugging interface cannot meet the safety requirements.
[0006] In a first aspect, an embodiment of the present application provides a debugging interface switching circuit, the debugging interface switching circuit comprising:
[0007] The debugging switching module comprises a first communication terminal, a second communication terminal and a third communication terminal; the first communication terminal of the debugging switching module is used to connect with the communication terminal of the control module, and the debugging switching module is used to connect the first communication terminal with the strobing communication terminal; wherein the strobing communication terminal is one of the second communication terminal and the third communication terminal;
[0008] A first external interface, an interface input end of the first external interface is connected to the second communication end of the debugging switching module; the first external interface is used to connect to the debugging device in the debugging stage;
[0009] The second external interface, the interface input end of the second external interface is connected to the third communication end of the debugging switching module; the second external interface is used to connect to the debugging device in the non-debugging stage.
[0010] In some embodiments, the debug switching module includes:
[0011] Multiple gating units are respectively connected to multiple control modules in a one-to-one correspondence; the first end of each gating unit is connected to the communication end of the corresponding control module, the second end of each gating unit is connected to the interface input end of the first external interface, and the third end of each gating unit is connected to the interface input end of the second external interface; the gating unit is used to connect one of the second end and the third end to the first end.
[0012] In some embodiments, the gating unit includes a first type switch, the first type switch including:
[0013] A first pad and a second pad, the first pad is connected to the communication end of the control module, and the second pad is connected to the interface input end of the first external interface;
[0014] The third pad is connected to the communication terminal of the control module, and the fourth pad is connected to the interface input terminal of the second external interface;
[0015] The first resistor or the second resistor is connected between the first pad and the second pad, and the second resistor is connected between the third pad and the fourth pad.
[0016] In some embodiments, the first pad and the third pad are stacked, and an angle between a line connecting the center points of the first pad and the second pad and a line connecting the center points of the third pad and the fourth pad is a first angle.
[0017] In some embodiments, the first angle is 90°, 180°, or 270°.
[0018] In some embodiments, the gating unit includes:
[0019] A second type switch, wherein the first end of the second type switch is connected to the communication end of the control module, the second end of the second type switch is connected to the interface input end of the first external interface, the third end of the second type switch is connected to the interface input end of the second external interface, and the enable end of the second type switch is connected to the control signal end; the second type switch is used to connect the first end with the second end when receiving the first control signal; and connect the first end with the third end when receiving the second control signal.
[0020] In some embodiments, the first external interface includes:
[0021] At least two debug interface connectors, each debug interface connector comprising at least one interface input terminal; wherein,
[0022] Any second communication terminal of the debugging switching module is connected to at least one debugging interface connector.
[0023] In some embodiments, the second external interface includes:
[0024] A product interface connector, the product interface connector includes multiple unconfigured pins; some of the unconfigured pins of the product interface connector are respectively connected to multiple third communication terminals of the debugging switching module; the line sequence of the product interface connector is defined according to the connection relationship between some of the unconfigured pins and the communication terminals of each control module.
[0025] In a second aspect, an embodiment of the present application further provides a vehicle computer, which includes multiple control modules and the debugging interface switching circuit of the first aspect.
[0026] In a third aspect, an embodiment of the present application further provides a vehicle, the vehicle comprising the vehicle computer as in the second aspect.
[0027] The debugging interface switching circuit, vehicle computer and vehicle provided in the embodiment of the present application can connect the first communication end of the debugging switching module with the corresponding second communication end in the debugging stage by setting the first external interface to be connected with the second communication end of the debugging switching module and setting the second external interface to be connected with the third communication end of the debugging switching module, so as to realize the interface debugging function by connecting the debugging device with the first external interface in the debugging stage; and in the non-debugging stage, the debugging switching module can be set to connect the first communication end with the corresponding third communication end, at which time the first external interface cannot realize the debugging function in the non-debugging stage, and the debugging device needs to realize the debugging function through the second external interface. The first external interface is usually a debugging interface, and the second external interface is usually a product interface. In the non-debugging stage, the debugging interface cannot be used, and the debugging function is retained through the product interface, which has a certain degree of confusion and can protect information security. In addition, on the basis that the second external interface can realize the debugging function, the abolition of the first external interface can also be realized by adjusting the selection signal end of the debugging switching module, thereby meeting the needs of information security. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 It is a schematic diagram of the module structure of a debugging interface switching circuit provided in an embodiment of the present application;
[0030] Figure 2 is a schematic diagram of the module structure of a debugging interface switching circuit provided in another embodiment of the present application;
[0031] Figure 3 is a schematic diagram of the circuit structure of a gating unit provided in an embodiment of the present application;
[0032] Figure 4 is a schematic diagram of a circuit structure of a gating unit provided in another embodiment of the present application;
[0033] Figure 5 is a schematic diagram of a circuit structure of a gating unit provided in another embodiment of the present application;
[0034] Figure 6 It is a circuit structure diagram of a debugging interface switching circuit provided in yet another embodiment of the present application.
[0035] In the attached figure:
[0036] 10. Debug switching module; 20. Control module; 30. First external interface; 40. Second external interface; 11. Selection unit; Com1. First communication terminal; Com2. Second communication terminal; Com3. Third communication terminal; Pad1. First pad; Pad2. Second pad; Pad3. Third pad; Pad4. Fourth pad; K1. First type switch; K2. Second type switch; PORT1. Product interface connector. DETAILED DESCRIPTION
[0037] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0038] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0039] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0040] With the continuous development of the new energy vehicle field, the popularity of new energy vehicles continues to rise. In order to achieve the intelligent driving experience of new energy vehicles, the car computer is usually connected to multiple multimedia peripherals, such as display screens, cameras, audio amplifiers, etc., to provide users with a variety of functional experiences in different scenarios, enriching the user's driving experience during the car driving process.
[0041] In order to achieve a multi-functional driving experience, it is necessary to integrate multiple processing chips such as MCU (Microcontroller Unit) and SoC (System on Chip) inside the car computer. Due to the large number of processing chips and the complex system logic, in order to avoid abnormalities in the car computer, debugging of various chips in the car computer is very critical.
[0042] The currently popular debugging interface products cannot meet the security requirements for in-vehicle information and cannot guarantee the security of in-vehicle information.
[0043] In order to solve the above technical problems, the embodiments of the present application provide a debugging interface switching circuit, a vehicle computer and a vehicle. The debugging interface switching circuit provided by the embodiments of the present application is described in detail below with reference to the accompanying drawings through some embodiments and their application scenarios.
[0044] Figure 1 The schematic diagram of the module structure of the debug interface switching circuit provided by an embodiment of the present application is shown. The debug interface switching circuit comprises a debug switching module 10 , a first external interface 30 and a second external interface 40 .
[0045] The debugging switching module 10 includes a first communication terminal Com1, a second communication terminal Com2 and a third communication terminal Com3. The first communication terminal Com1 of the debugging switching module 10 can be connected to the communication terminal of the control module 20. The debugging switching module 10 can connect the first communication terminal Com1 to the gating communication terminal. The gating communication terminal can be one of the second communication terminal Com2 and the third communication terminal Com3.
[0046] When there are multiple control modules 20, the debugging switching module 10 may also include multiple first communication terminals Com1, multiple second communication terminals Com2 and multiple third communication terminals Com3, the multiple first communication terminals Com1 correspond one-to-one to the multiple second communication terminals Com2, and the multiple first communication terminals Com1 correspond one-to-one to the multiple third communication terminals Com3.
[0047] The multiple first communication terminals Com1 of the debugging switching module 10 can be respectively connected to the communication terminals of each control module 20. The control module 20 can be a SoC (System on Chip), an MCU (Microcontroller Unit), a 5G module or other modules capable of realizing functional control.
[0048] The number of control modules 20 and the number of first communication terminals Com1 of the debug switching module 10 may be the same or different. For example, when each control module 20 includes only a single communication interface, the debug switching module 10 may include the same number of first communication terminals Com1 as the control modules 20, and each first communication terminal Com1 is connected to the communication interface of the corresponding control module 20. While there may be more than two communication interfaces in a single control module 20, for example, when the SoC includes at least two of USB (Universal Serial Bus), UART (Universal Asynchronous Receiver / Transmitter), SPI (Serial Peripheral Interface), JTAG (Joint Test Action Group) or other communication interfaces, the debug switching module 10 should include first communication terminals Com1 corresponding to all communication interfaces of all control modules 20. The above-mentioned control module 20 can realize the analysis and export of the log Log, the control of the Android debug bridge ADB and other functions involving signal transmission interaction through the corresponding communication interface.
[0049] As an exemplary implementation, when the device includes three control modules 20, two of which include USB and UART interfaces, and the other control module 20 includes only a UART interface, the debugging switching module 10 should include at least five first communication ports Com1, and at least the same number of second communication ports Com2 and third communication ports Com3 as the first communication ports Com1.
[0050] The debugging switching module 10 may connect each first communication terminal Com1 to a gated communication terminal, and the gated communication terminal may be one of the second communication terminal Com2 and the third communication terminal Com3.
[0051] The first external interface 30 includes a plurality of interface input terminals, each of which is connected to a corresponding second communication terminal Com2 in the debugging switching module 10 .
[0052] The second external interface 40 includes a plurality of interface input terminals, each of which is connected to a corresponding third communication terminal Com3 in the debugging switching module 10 .
[0053] During the debugging stage, the debugging switching module 10 can set the selected communication terminal to the second communication terminal Com2. At this time, each first communication terminal Com1 is connected to the corresponding second communication terminal Com2, and the multiple interface input terminals of the first external interface 30 can be respectively connected to the communication interface of the control module 20 through the multiple second communication terminals Com2 of the debugging switching module 10. After the first external interface 30 is connected to the debugging device (not shown), the communication connection between the control module 20 and the debugging device can be realized to realize the debugging of each control module 20.
[0054] It is understandable that, in order to facilitate debugging during the debugging phase, the first external interface 30 can be configured to be exposed outside the housing or on a PCB (Printed Circuit Board) so that the debugging device can be easily connected to the first external interface 30 .
[0055] In the non-debugging stage, in order to ensure information security, the debugging interface cannot be directly exposed outside the housing of the device. Therefore, if the first external interface 30 is continued to be used to implement the debugging function in the non-debugging stage, the information security requirement cannot be met.
[0056] In order to ensure information security, the first external interface 30 may be deleted or closed in the non-debugging stage to prevent debugging of each control module 20 through the first external interface 30 in the non-debugging stage.
[0057] In the non-debugging stage, since the first external interface 30 is deleted or closed, the debugging device cannot achieve communication connection with the control module 20 through the first external interface 30. The debugging switching module 10 can set the selected communication terminal to the third communication terminal Com3, so that each first communication terminal Com1 is connected to the corresponding third communication terminal Com3. The debugging device can be connected to the second external interface 40 to achieve communication connection between the control module 20 and the debugging device, so that the debugging requirements of each control module 20 can be realized in the non-debugging stage.
[0058] In the debugging stage, each first communication terminal Com1 in the debugging switching module 10 is connected to the corresponding second communication terminal Com2, and the second external interface 40 cannot be connected to the first communication terminal Com1 through the third communication terminal Com3. Therefore, in the debugging stage, the second external interface 40 cannot play the role of debugging connection. That is, the first external interface 30 is a dedicated debugging interface in the debugging stage, and the second external interface 40 is a normal external interface in the non-debugging stage.
[0059] In this embodiment, by setting the first external interface 30 to be connected to each second communication terminal Com2 of the debugging switching module 10 and setting the second external interface 40 to be connected to each third communication terminal Com3 of the debugging switching module 10, each first communication terminal Com1 of the debugging switching module 10 can be connected to the corresponding second communication terminal Com2 in the debugging stage, so as to realize the interface debugging function by connecting the debugging device to the first external interface 30 in the debugging stage. In the non-debugging stage, the debugging switching module 10 can be set to connect each first communication terminal Com1 with the corresponding third communication terminal Com3. At this time, the first external interface 30 cannot realize the debugging function in the non-debugging stage, and the debugging device needs to realize the debugging function through the second external interface 40. The first external interface 30 is usually a debugging interface, and the second external interface 40 is usually a product interface. In the non-debugging stage, the debugging interface cannot be used, and the debugging function is retained through the product interface, which has a certain degree of confusion and can protect information security. In addition, on the basis that the second external interface 40 can realize the debugging function, the first external interface 30 can also be abolished by adjusting the selection signal terminal of the debugging switching module 10, thereby meeting the needs of information security.
[0060] It should be noted that, in the non-debugging stage, since the selection signal terminal of the debugging switching module 10 is switched from the second communication terminal Com2 to the third communication terminal Com3, even if the debugging device is connected to the first external interface 30, the communication connection with the control module 20 cannot be achieved through the second communication terminal Com2. That is, the first external interface 30 does not have debugging authority in the non-debugging stage. Similarly, the second external interface 40 does not have debugging authority in the debugging stage.
[0061] Please refer to Figure 2 In some embodiments, the debug switching module 10 may include a plurality of gating units 11 .
[0062] When the number of control modules 20 is multiple, multiple gating units 11 can be connected to multiple control modules 20 in a one-to-one correspondence. Each gating unit 11 includes a first end, a second end and a third end. The first end of each gating unit 11 is connected to the communication end of the corresponding control module 20, the second end of each gating unit 11 is connected to the interface input end of the first external interface 30, and the third end of each gating unit 11 is connected to the interface input end of the second external interface 40. That is, each gating unit 11 is connected to the first external interface 30 and the second external interface 40.
[0063] The gating unit 11 can connect one of the second end and the third end to the first end. When the debugging switching module 10 sets the gating communication end to the second communication end Com2, each gating unit 11 can connect the first end to the second end; when the debugging switching module 10 sets the gating communication end to the third communication end Com3, each gating unit 11 can connect the first end to the third end.
[0064] The number of the gating units 11 should at least be consistent with the total number of communication terminals of the multiple control modules 20. For example, when the device includes multiple control modules 20, and each control module 20 includes at least one communication terminal, the number of the gating units 11 should not be less than the total number of communication terminals included in all control modules 20.
[0065] Please refer to Figure 3 In some embodiments, the gating unit 11 may include a first type switch K1, and the first type switch K1 includes a first pad Pad1, a second pad Pad2, a third pad Pad3, and a fourth pad Pad4.
[0066] The first pad Pad1 is connected to the communication terminal of the control module 20 , and the second pad Pad2 is connected to the interface input terminal of the first external interface 30 .
[0067] The third pad Pad3 is connected to the communication terminal of the control module 20 , and the fourth pad Pad4 is connected to the interface input terminal of the second external interface 40 .
[0068] When the strobe communication terminal of the debug switch module 10 is the second communication terminal, the strobe unit 11 may include a first resistor, and the first resistor may be connected between the first pad Pad1 and the second pad Pad2 to connect the first pad Pad1 and the second pad Pad2.
[0069] When the enabling communication terminal of the debugging switching module 10 is the third communication terminal, the enabling unit 11 may include a second resistor, and the second resistor may be connected between the third pad Pad3 and the fourth pad Pad4 to connect the third pad Pad3 and the fourth pad Pad4.
[0070] It should be noted that the first resistor and the second resistor may be chip resistors, and the first resistor and the second resistor are set selectively. That is, when the first pad Pad1 and the second pad Pad2 are connected with the first resistor, the gating unit 11 does not include the second resistor. On the contrary, when the second resistor is connected between the third pad Pad3 and the fourth pad Pad4, the gating unit 11 does not include the first resistor.
[0071] Please refer to Figure 4In some embodiments, the first pad Pad1 and the third pad Pad3 are stacked, and the third pad Pad3 is rotated at a first angle relative to the first pad Pad1.
[0072] The third pad Pad3 is rotated by a first angle relative to the first pad Pad1, and the angle between the center line of the first pad Pad1 and the second pad Pad2 and the center line of the third pad Pad3 and the fourth pad Pad4 is the first angle.
[0073] Since the first pad Pad1 and the third pad Pad3 are stacked, after the pad is rotated to a certain angle based on the center point, the rotated pad will completely overlap with the pad before rotation. Taking the shape of the pad as a square as an example, when the pad is rotated at an angle of 90°, 180°, and 270°, it will completely overlap with the shape before rotation. Therefore, by setting the third pad Pad3 to rotate the first angle relative to the first pad Pad1, it can be ensured that the third pad Pad3 and the first pad Pad1 are completely overlapped.
[0074] It can be understood that when the pad is in other shapes, such as circular, polygonal or open, the first angle at which the third pad Pad3 rotates relative to the first pad Pad1 can be set according to the shape of the pad.
[0075] When the device is in the debugging stage, the first resistor can be selected for patching and welded between the first pad Pad1 and the second pad Pad2. At this time, the first end and the second end of the selection unit 11 can be connected through the first resistor.
[0076] When the device is in a non-debugging stage, a second resistor can be selected for patching and welded between the third pad Pad3 and the fourth pad Pad4. At this time, the first end and the third end of the selection unit 11 can be connected through the second resistor.
[0077] Through the above-mentioned resistor stacking mutually exclusive architecture, suitable resistors can be selected for patching according to the stage of the device to complete the connection between the first end and the second end or the first end and the third end of the selection unit 11, ensuring that the first external interface 30 is connected to the control module 20 only in the debugging stage, and the second external interface 40 is connected to the control module 20 only in the non-debugging stage.
[0078] In some embodiments, in order to ensure that the rotated pad can overlap with the rotated pad before rotation, the first angle of rotation of the third pad Pad3 relative to the first pad Pad1 can be 90°, 180° or 270°.
[0079] Please refer to Figure 5In some embodiments, the gating unit 11 may include a second type switch K2.
[0080] The second type switch K2 may include a first end, a second end, a third end, and an enable end. The first end of the second type switch K2 is connected to the communication end of the control module 20, the second end of the second type switch K2 is connected to the interface input end of the first external interface 30, the third end of the second type switch K2 is connected to the interface input end of the second external interface 40, and the enable end of the second type switch K2 is connected to the control signal end.
[0081] During the debugging stage, the control signal end can output a first control signal. At this time, the enable end of the second type switch K2 receives the first control signal and connects the first end with the second end, thereby realizing the connection between the communication end of the control module 20 and the interface input end of the first external interface 30.
[0082] In the non-debugging stage, the control signal end can output a second control signal. At this time, the enable end of the second type switch K2 receives the second control signal and connects the first end with the third end, thereby realizing the connection between the communication end of the control module 20 and the interface input end of the second external interface 40.
[0083] As an optional implementation, the second type switch K2 may be an electronic switch, which may connect one of the second end and the third end to the first end according to the enable signal received by the enable pin. In addition, the second type switch K2 may also be a SPDT (Single Pole Double Throw) switch or other modules or devices capable of enabling signal gating.
[0084] In some embodiments, the first external interface 30 may include at least two debugging interface connectors.
[0085] Each debugging interface connector includes at least one interface input terminal, and any second communication terminal of the debugging switching module 10 is connected to at least one debugging interface connector.
[0086] When multiple control modules 20 are used to realize multimedia display and playback, image acquisition, bus communication, remote data transmission and other functions respectively, different debugging interface connectors can be planned according to the functions realized by each control module 20, and the communication end of the control module 20 can be connected to the corresponding debugging interface connector through the second communication end of the debugging switching module 10, so that the debugging equipment for debugging different functions can debug the corresponding control module 20 according to the corresponding debugging interface connector.
[0087] Please refer to Figure 6As an optional implementation, taking multiple control modules 20 as an example, namely SoC, MCU and 5G module, the SoC includes two communication interfaces, USB and UART, the 5G module includes two communication interfaces, USB and UART, and the MCU includes a UART communication interface.
[0088] At this time, the first external interface 30 can be set to include two debug interface connectors DEBUG1 and DEBUG2. In the debug switching module 10, the two second communication terminals corresponding to the USB and UART communication interfaces of the SoC are connected to the debug interface connector DEBUG1, the two second communication terminals corresponding to the USB and UART communication interfaces of the 5G module are connected to the debug interface connector DEBUG1, and the second communication terminal corresponding to the UART communication interface of the MCU is connected to the debug interface connector DEBUG2.
[0089] When the SoC needs to be debugged, the debugging device can be connected to the debug interface connector DEBUG1 to achieve the debugging of the SoC. When the 5G module or MCU needs to be debugged, the debugging device can be connected to the debug interface connector DEBUG2 to achieve the debugging of the 5G module or MCU.
[0090] Please continue to refer to Figure 6 In some embodiments, the second external interface 40 may include a product interface connector PORT1.
[0091] The product interface connector PORT1 may include a plurality of unconfigured pins in addition to fixed power pins and ground pins.
[0092] By using some unconfigured pins of the product interface connector PORT1, the communication connection between the debugging device and the control module 20 can be realized. For example, by selecting some unconfigured pins of the product interface connector PORT1 to be respectively connected to the multiple third communication terminals of the debugging switching module 10, the product interface connector PORT1 can be connected to the communication terminals of each control module 20 through the multiple third communication terminals of the debugging switching module 10. The debugging device can be connected to the product interface connector PORT1 through the interface adapter board, and the connection relationship between each unconfigured pin and the UART interface or USB interface of each control module 20 can be defined by itself. According to the connection relationship between the unconfigured pins and the communication terminals of each control module 20, the line sequence of the product interface connector PORT1 can be customized.
[0093] Since the line sequence of the product interface connector PORT1 is a custom setting, the connection between the debugging device and the product interface connector PORT1 cannot be achieved without knowing the line sequence of the product interface connector PORT1, that is, by using the unused pins of the product interface connector PORT1, the debugging function can be retained in the non-debugging stage. By customizing the line sequence of the product interface connector PORT1, it is possible to prevent other users or related personnel from using the product interface connector PORT1 to debug the control module 20 without knowing the line sequence, thereby increasing the anti-cracking performance of the debugging function in the non-debugging stage and ensuring the information security of the device.
[0094] like Figure 6 As shown, the debug switching module 10 includes three switches, namely SW1, SW2 and SW3. The switch SW1 can connect the USB and UART communication interfaces of the SoC to the debug interface connector DEBUG1 and the product interface connector PORT1 respectively. Therefore, the switch SW1 includes at least two gating units 11. Similarly, the switch SW2 includes at least one gating unit 11, and the switch SW3 includes at least two gating units 11.
[0095] It should be noted that the above-mentioned debugging interface connectors DEBUG1 and DEBUG2 and the product interface connector PORT1 can be Type C connectors. The above-mentioned product interface connector PORT1 is usually used to connect to an external device, and to realize the function control of the external device through the control module 20. The product interface connector PORT1 can adopt a fool-proof connection method and is set to include USB2.0, USB3.0_RX and USB3.0_TX interfaces. Since the product interface connector PORT1 is usually used for connecting external devices, the remaining pins after realizing the above-mentioned USB2.0 and USB3.0 functions by using the product interface connector PORT1 retain the debugging function in the non-debugging stage, which is also confusing, making it difficult for other relevant personnel to think of it, thereby further improving the information security of the product.
[0096] The embodiment of the present application also provides a vehicle computer, which may include multiple control modules and the debugging interface switching circuit in the above embodiment. All implementation methods in the above debugging interface switching circuit embodiment are applicable to the embodiment of the vehicle computer and can achieve the same technical effect.
[0097] An embodiment of the present application also provides a vehicle, which may include the vehicle computer in the above embodiment.
[0098] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0099] It should be noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or apparatus.
[0100] This article uses specific examples to illustrate the principles and implementation methods of this application. The above examples are only used to help understand the methods and core ideas of this application. The above are only optional implementation methods of this application. It should be pointed out that due to the limitations of textual expression and the objective existence of infinite specific structures, ordinary technicians in this technical field can make several improvements, modifications or changes without departing from the principles of this application, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the concepts and technical solutions of this application to other occasions without improvement, should be regarded as the scope of protection of this application.
Claims
1. A debugging interface switching circuit, characterized in that: The debugging interface switching circuit comprises: A debugging switching module, comprising a first communication terminal, a second communication terminal and a third communication terminal; the first communication terminal of the debugging switching module is used to connect with the communication terminal of the control module, and the debugging switching module is used to connect the first communication terminal with the strobing communication terminal; wherein the strobing communication terminal is one of the second communication terminal and the third communication terminal; A first external interface, wherein an interface input end of the first external interface is connected to a second communication end of the debugging switching module; the first external interface is used to connect to a debugging device during a debugging phase; A second external interface, wherein the interface input end of the second external interface is connected to the third communication end of the debugging switching module; the second external interface is used to connect to the debugging device in the non-debugging stage.
2. The debugging interface switching circuit according to claim 1, wherein: The debugging switching module includes: A plurality of gating units are respectively connected to a plurality of control modules in a one-to-one correspondence; a first end of each of the gating units is connected to a communication end of a corresponding control module, a second end of each of the gating units is connected to an interface input end of a first external interface, and a third end of each of the gating units is connected to an interface input end of a second external interface; the gating unit is used to connect one of the second end and the third end to the first end.
3. The debugging interface switching circuit according to claim 2, wherein: The gating unit includes a first type switch, and the first type switch includes: A first pad and a second pad, wherein the first pad is connected to a communication terminal of a control module, and the second pad is connected to an interface input terminal of the first external interface; a third pad and a fourth pad, wherein the third pad is connected to the communication end of the control module, and the fourth pad is connected to the interface input end of the second external interface; A first resistor or a second resistor, wherein the first resistor is connected between the first pad and the second pad, and the second resistor is connected between the third pad and the fourth pad.
4. The debugging interface switching circuit according to claim 3, wherein: The first pad and the third pad are stacked, and an angle between a line connecting the center points of the first pad and the second pad and a line connecting the center points of the third pad and the fourth pad is a first angle.
5. The debugging interface switching circuit according to claim 4, characterized in that: The first angle is 90°, 180° or 270°.
6. The debugging interface switching circuit according to claim 2, wherein: The gating unit comprises: A second type switch, wherein the first end of the second type switch is connected to the communication end of the control module, the second end of the second type switch is connected to the interface input end of the first external interface, the third end of the second type switch is connected to the interface input end of the second external interface, and the enable end of the second type switch is connected to the control signal end; the second type switch is used to connect the first end with the second end when receiving the first control signal; and connect the first end with the third end when receiving the second control signal.
7. The debugging interface switching circuit according to claim 1, wherein: The first external interface includes: At least two debugging interface connectors, each of which includes at least one interface input terminal; wherein any second communication terminal of the debugging switching module is connected to at least one debugging interface connector.
8. The debugging interface switching circuit according to claim 1, wherein: The second external interface includes: A product interface connector, the product interface connector comprising a plurality of unconfigured pins; some of the unconfigured pins of the product interface connector are respectively connected to a plurality of third communication terminals of the debugging switching module; and a line sequence of the product interface connector is defined according to a connection relationship between the some of the unconfigured pins and the communication terminals of each control module.
9. A vehicle computer, characterized in that: The vehicle computer includes a plurality of control modules and a debugging interface switching circuit as described in any one of claims 1 to 8.
10. A vehicle, characterized in that: The vehicle comprises the vehicle machine as claimed in claim 9.