Communication circuit, v2x device, vehicle, and communication method
Patent Information
- Application Number
- CN202211430195.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2042-11-15
AI Technical Summary
电路设计相对简单,设备正常工作时、主控模块和V2X通信模组可以进行正常通信,但是当V2X设备处于硬件前期调测阶段或者后期需要维护测试时,主控模块和V2X通信模组的USB2.0调测接口都被占用,无法对V2X设备进行维测
[0038] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the communication method as described above.
Smart Images

Figure CN115776310B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle-to-everything (V2X) technology, and more particularly to a communication circuit, V2X equipment, vehicle, and communication method. Background Technology
[0002] V2X (vehicle to everything) devices, as the basic functional units in the field of vehicle-to-everything (V2X) communication, can provide communication between vehicles, vehicles and roads, vehicles and the cloud, and roads and the cloud. Currently, the communication part of V2X devices is usually implemented using highly integrated modules, which typically interact with the main control module via a USB interface. Figure 1 This is one of the circuit structure diagrams of V2X devices provided by existing technology, such as... Figure 1 As shown: The USB 3.0 and USB 2.0 signal lines of the USB controller in the main control module are directly connected to the USB interface of the V2X communication module for data communication. The circuit design is relatively simple. When the device is working normally, the main control module and the V2X communication module can communicate normally. However, when the V2X device is in the early hardware debugging stage or requires maintenance and testing in the later stage, the USB 2.0 debugging interfaces of the main control module and the V2X communication module are occupied, making it impossible to perform maintenance and testing on the V2X device.
[0003] In existing technologies, both the main control module and the V2X communication module's USB 2.0 debugging interfaces are brought out. Figure 2 This is the second schematic diagram of the circuit structure of a V2X device provided by existing technology, such as... Figure 2 As shown, this approach presents several problems: First, two USB debugging sockets need to be connected to the corresponding interfaces of the main control module and the V2X communication module, respectively. Second, when the debugging device is connected to the main control module or the V2X communication module for debugging, the communication between the main control module and the V2X communication module is not disconnected, which will prevent the debugging device from connecting and thus prevent the debugging of the main control module and the V2X communication module. Summary of the Invention
[0004] The communication circuit, V2X device, vehicle, and communication method provided by this invention are used to solve the above-mentioned problems existing in the prior art. By designing a first switching selector and a second switching selector to debug and control the main control module and the V2X communication module, it is convenient to debug the main control module and the V2X communication module. At the same time, the circuit design is simple, reliable, and highly practical.
[0005] The present invention provides a communication circuit comprising:
[0006] A first switching selector is used to control the connection status between the main control module and the V2X communication module through a switch. The first switching selector includes the switch, which includes a first terminal and an output terminal. The first terminal is connected to the main control module through a first signal transmission line, and the second terminal is connected to the V2X communication module through the first signal transmission line.
[0007] The second switching selector is used to control the connection status between the main control module and the debugging equipment through the first switching switch, and to control the connection status between the V2X communication module and the debugging equipment through the second switching switch. The second switching selector includes the first switching switch and the second switching switch. The first switching switch is connected to the second switching switch. The first switching switch is connected to the main control module and the debugging equipment through the second signal transmission line. The second switching switch is connected to the V2X communication module and the debugging equipment through the second signal transmission line.
[0008] According to a communication circuit provided by the present invention, the first switching selector is further configured to:
[0009] When the debugging equipment needs to debug the main control module or the V2X communication module, the connection status between the main control module and the V2X communication module can be changed from the disconnected state by the switch.
[0010] Accordingly, the second switching selector is further configured to, when the debugging equipment needs to debug the main control module, set the connection state between the main control module and the debugging equipment to the conducting state through the first switching switch, and set the connection state between the V2X communication module and the debugging equipment to the disconnected state through the second switching switch; or, when the debugging equipment needs to debug the V2X communication module, set the connection state between the main control module and the debugging equipment to the disconnected state through the first switching switch, and set the connection state between the V2X communication module and the debugging equipment to the conducting state through the second switching switch.
[0011] According to a communication circuit provided by the present invention, the first switching selector is further configured to:
[0012] When the debugging equipment does not require debugging of the main control module or the V2X communication module, the connection status between the main control module and the V2X communication module is set to the on state by the switch;
[0013] Accordingly, the second switching selector is further configured to, when the debugging device does not need to debug the main control module or the V2X communication module, set the connection state between the main control module and the debugging device to a disconnected state through the first switching switch, and set the connection state between the V2X communication module and the debugging device to the disconnected state through the second switching switch.
[0014] According to a communication circuit provided by the present invention, the first switching switch includes:
[0015] The first control terminal and the first output terminal are connected to the main control module via the second signal transmission line, and the first output terminal is connected to the second switching switch or the debugging equipment.
[0016] According to a communication circuit provided by the present invention, the second switching switch includes:
[0017] The second control terminal and the second output terminal are connected to the V2X communication module via the second signal transmission line, and the second output terminal is connected to the first switching switch or the debugging equipment.
[0018] A communication circuit according to the present invention further includes:
[0019] A socket is used to connect the debugging equipment and is connected to the second signal transmission line connected to the main control module via the first switch, and is also connected to the second signal transmission line connected to the V2X communication module via the second switch.
[0020] According to a communication circuit provided by the present invention, the first signal transmission line includes: a transmit signal line and a receive signal line for a USB 3.0 interface; the second signal transmission line includes: a differential data transmission line for a USB 2.0 interface.
[0021] A communication circuit according to the present invention further includes:
[0022] A control device, connected to the main control module, is used to send control signals to the main control module. The control signals are used by the main control module to determine whether the debugging device needs to debug the main control module, the V2X communication module, or neither the main control module nor the V2X communication module needs to be debugged.
[0023] The present invention also provides a communication method, comprising:
[0024] The connection status between the main control module and the V2X communication module is controlled by a switch in the first switching selector. The switch includes a first end and a second end. The first end is connected to the main control module through a first signal transmission line, and the second end is connected to the V2X communication module through the first signal transmission line.
[0025] The connection status between the main control module and the debugging equipment is controlled by the first switching switch in the second switching selector;
[0026] The connection status between the V2X communication module and the debugging device is controlled by the second switch in the second selector.
[0027] The first switch is connected to the second switch. The first switch is connected to the main control module and the debugging equipment via the second signal transmission line. The second switch is connected to the V2X communication module and the debugging equipment via the second signal transmission line.
[0028] According to the communication method provided by the present invention, the step of controlling the connection state between the main control module and the V2X communication module by means of a switch in the first switching selector includes: when the debugging equipment needs to debug the main control module or the V2X communication module, setting the connection state between the main control module and the V2X communication module to a disconnected state by means of means of means;
[0029] Accordingly, controlling the connection status between the V2X communication module and the debugging equipment via the second switch in the second selector includes:
[0030] When the debugging equipment needs to debug the main control module, the connection between the main control module and the debugging equipment is set to an on state via the first switch, and the connection between the V2X communication module and the debugging equipment is set to an off state via the second switch; or...
[0031] When the debugging equipment needs to debug the V2X communication module, the connection between the main control module and the debugging equipment is set to disconnected by the first switch, and the connection between the V2X communication module and the debugging equipment is set to connected by the second switch.
[0032] According to the communication method provided by the present invention, the step of controlling the connection state between the main control module and the V2X communication module through the switch in the first switching selector further includes:
[0033] When the debugging equipment does not require debugging of the main control module or the V2X communication module, the connection status between the main control module and the V2X communication module is changed from the on state to the conducting state by the switch;
[0034] Accordingly, the step of controlling the connection status between the V2X communication module and the debugging equipment via the second switch in the second selector further includes:
[0035] When the debugging equipment does not require debugging of the main control module or the V2X communication module, the connection status between the main control module and the debugging equipment is set to the disconnected state by the first switch, and the connection status between the V2X communication module and the debugging equipment is set to the disconnected state by the second switch.
[0036] The present invention also provides an electronic device, including a processor and a memory storing a computer program, wherein the processor executes the program to implement the communication method described above.
[0037] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the communication method as described above.
[0038] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the communication method as described above.
[0039] The present invention also provides a V2X device, including the communication circuit described in any of the above.
[0040] The present invention also provides a vehicle including any of the communication circuits described above or the V2X devices described above.
[0041] The communication circuit, V2X device, vehicle, and communication method provided by this invention address the problem that the main control module and V2X communication module of the V2X device cannot be debugged under normal connection conditions. By designing a first switching selector and a second switching selector to debug and control the main control module and V2X communication module, it is possible to conveniently debug the main control module and V2X communication module. At the same time, the circuit design is simple, reliable, and highly practical. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0043] Figure 1 This is one of the circuit structure diagrams of V2X devices provided by existing technology;
[0044] Figure 2 This is the second schematic diagram of the circuit structure of V2X equipment provided by existing technology;
[0045] Figure 3 This is a schematic diagram of the communication circuit provided by the present invention;
[0046] Figure 4 This is a schematic diagram of the software control flow of the communication circuit provided by the present invention;
[0047] Figure 5 This is a flowchart illustrating the communication method provided by the present invention;
[0048] Figure 6 This is a schematic diagram of the physical structure of the electronic device provided by the present invention. Attached image description:
[0050] 10: First switching selector; 11: Main control module; 12: V2X communication module;
[0051] 13: Second selector; 131: First switch; 132: Second switch;
[0052] 14: Debugging equipment; 15: Socket; 16: Control equipment. Detailed Implementation
[0053] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0054] The main control module of a V2X device typically communicates with the V2X communication module via a USB interface. When the V2X device is working normally, the main control module and the V2X communication module can be effectively connected. However, conventional direct connection or simple connection sockets make it impossible for hardware R&D personnel to debug the device, which will bring difficulties to the device's R&D, debugging and maintenance.
[0055] Based on this, the present invention provides a communication circuit. By designing corresponding circuits and control logic, the V2X device can perform maintenance and testing on the main control module and the V2X communication module while operating normally. The circuit design is reliable and highly practical. The specific implementation is as follows:
[0056] Figure 3 This is a schematic diagram of the communication circuit provided by the present invention, as shown below. Figure 3 As shown, the communication circuit may specifically include:
[0057] The first switching selector 10 is used to control the connection status between the main control module 11 and the V2X communication module 12 through a switch. The first switching selector 10 includes the switch, which includes a first end and a second end. The first end is connected to the main control module 11 through a first signal transmission line, and the second end is connected to the V2X communication module 12 through the first signal transmission line.
[0058] The second switching selector 13 is used to control the connection status between the main control module 11 and the debugging device 14 through the first switching switch 131, and to control the connection status between the V2X communication module 12 and the debugging device 14 through the second switching switch 132. The second switching selector 13 includes the first switching switch 131 and the second switching switch 132. The first switching switch 131 is connected to the second switching switch 132. The first switching switch 131 is connected to the main control module 11 and the debugging device 14 through the second signal transmission line. The second switching switch 132 is connected to the V2X communication module 12 and the debugging device 14 through the second signal transmission line.
[0059] In this embodiment of the invention, the first switching selector 10 can be specifically a switch, more specifically a USB 3.0 switching switch S1. The USB 3.0 switching switch S1 can switch between on and off states based on the signal level of the logic control signal USB_control3 sent by the main control module 11, thereby controlling the connection and disconnection between the main control module 11 and the V2X communication module 12. Specifically, the first switching selector can be used to control the connection state between the main control module 11 and the V2X communication module 12 by turning the switch on and off. This connection state can specifically include an on state and a off state. For example, when the switch is on, the connection between the main control module 11 and the V2X communication module 12 is established; when the switch is off, the connection between the main control module 11 and the V2X communication module 12 is established.
[0060] In this embodiment, the switch may specifically include a first terminal and an output terminal. The first terminal may be connected to the main control module 11 via a first signal transmission line with 5G transmission standard, and more specifically, it may be connected to the USB 3.0 interface in the USB 3.0 controller of the main control module 11 via the first signal transmission line. The second terminal may be connected to the V2X communication module 12 via the first signal transmission line, and more specifically, it may be connected to the USB 3.0 interface in the USB 3.0 controller of the V2X communication module 12 via the first signal transmission line. The USB 3.0 controller includes both a USB 3.0 interface and a USB 2.0 interface.
[0061] In this embodiment of the invention, the second switching selector 13 may specifically include a first switching switch 131 and a second switching switch 132 connected to each other. The first switching switch 131 may specifically be a USB 2.0 switching switch S2. The USB 2.0 switching switch S2 can switch between the testing channel and the data channel according to the signal level of the logic control signal USB_control1 sent by the main control module 11, thereby controlling the connection and disconnection between the main control module 11 and the debugging device 14. The testing channel may specifically refer to the channel connecting the main control module 11 to the debugging device 14, and the data channel may specifically refer to the channel directly connected between the main control module 11 and the V2X communication module 12.
[0062] In this embodiment of the invention, the second switching switch 132 can specifically be a USB 2.0 switching switch S3. The USB 2.0 switching switch S3 can switch between the testing channel and the data channel according to the signal level of the logic control signal USB_control2 sent by the main control module 11, thereby controlling the connection and disconnection between the V2X communication module 12 and the debugging device 14. The testing channel can specifically refer to the channel through which the V2X communication module 12 is connected to the debugging device 14, and the data channel can specifically refer to the channel through which the main control module 11 is directly connected to the V2X communication module 12.
[0063] In this embodiment of the invention, the second switching selector 13 can specifically control the connection state between the main control module 11 and the debugging device 14—whether it is in a conducting state or a disconnected state—by controlling the first switching switch 131. The second switching selector 13 can also specifically control the connection state between the V2X communication module 12 and the debugging device 14—whether it is in a conducting state or a disconnected state—by controlling the second switching switch 132.
[0064] In this embodiment of the invention, the first switch 131 can be specifically connected to the main control module 11 via a second signal transmission line with 4G transmission standard, and more specifically, it can be connected to the USB 2.0 interface of the USB 3.0 controller in the main control module 11 via the second signal transmission line. The second switch 132 can be specifically connected to the V2X communication module 1211 via the second signal transmission line, and more specifically, it can be connected to the USB 2.0 interface of the USB 3.0 controller in the V2X communication module 12 via the second signal transmission line.
[0065] In this embodiment of the invention, the first switching switch 131 is close to the main control module 11, and the second switching switch 132 is close to the V2X communication module 12.
[0066] In this embodiment of the invention, the debugging device 14 may specifically be a computer device and / or a terminal device.
[0067] The communication circuit provided by this invention addresses the problem that the main control module and V2X communication module of a V2X device cannot be debugged under normal connection conditions. By designing a first switching selector and a second switching selector to debug and control the main control module and V2X communication module, it is possible to conveniently debug the main control module and V2X communication module. At the same time, the circuit design is simple, reliable, and highly practical.
[0068] Furthermore, in one embodiment, the first switching selector 131 may also be specifically used for:
[0069] When the debugging device 14 needs to debug the main control module 11 or the V2X communication module 12, the connection status between the main control module 11 and the V2X communication module 12 is set to the disconnected state by the switch.
[0070] Accordingly, the second switching selector 132 is also used to, when the debugging device 14 needs to debug the main control module 11, set the connection state between the main control module 11 and the debugging device 14 to the conducting state through the first switching switch 131, and set the connection state between the V2X communication module 12 and the debugging device 14 to the disconnected state through the second switching switch 132; or, when the debugging device 14 needs to debug the V2X communication module 12, set the connection state between the main control module 11 and the debugging device 14 to the disconnected state through the first switching switch 131, and set the connection state between the V2X communication module 12 and the debugging device 14 to the conducting state through the second switching switch 132.
[0071] In this embodiment of the invention, when the V2X device is working normally (the main control module 11 and the V2X communication module 12 are in a conductive state), the USB 3.0 signal of the main control module 11 is connected to the V2X communication module 12. When the external debugging device 14 needs to debug the main control module 11 or the V2X communication module 12, the first switching selector 10 disconnects the switch connection between the main control module 11 and the V2X communication module 12 (at this time, the connection state between the main control module 11 and the V2X communication module 12 is switched from the conductive state to the disconnected state). At this time, the debugging device 14 can debug the main control module 11 or the V2X communication module 12 through the second switching selector 13.
[0072] In this embodiment of the invention, setting the connection state between the main control module 11 and the debugging device 14 to the "conducting state" via the first switching switch 131 can specifically mean that when the debugging device 14 needs to debug the main control module 11, the first switching switch 131 near the main control module 11 switches to the debugging channel to connect with the debugging device 14. Setting the connection state between the V2X communication module 12 and the debugging device 14 to the "disconnecting state" via the second switching switch 132 can specifically mean that the second switching switch 132 near the V2X communication module 12 remains connected to the data channel and connected to the V2X communication module 12; at this time, the connection between the second switching switch 132 and the debugging device 14 is disconnected.
[0073] In this embodiment of the invention, setting the connection state between the main control module 11 and the debugging device 14 to the disconnected state via the first switching switch 131 can specifically mean that when the V2X communication module 12 needs to be debugged, the second switching switch 132 near the V2X communication module 12 switches to the debugging channel and connects to the debugging device 14, while the first switching switch 131 near the main control module 11 remains connected to the data channel and connects to the main control module 11. At this time, the connection between the first switching switch 131 and the debugging device 14 is disconnected.
[0074] The communication circuit provided by this invention can control the connection state (including on and off states) between the main control module and the V2X communication module through a first switching selector and control the connection state (including on and off states) between the main control module / V2X communication module and the debugging equipment through a second switching selector when debugging the main control module or V2X communication module is required. This enables the debugging of the main control module and the V2X communication module.
[0075] Furthermore, in one embodiment, the first switching selector 10 may also be specifically used for:
[0076] When the debugging device 14 does not need to debug the main control module 11 or the V2X communication module 12, the connection state between the main control module 11 and the V2X communication module 12 can be switched to the on state by the switch.
[0077] Accordingly, the second switching selector 13 is also used to set the connection state between the main control module 11 and the debugging device 14 to a disconnected state through the first switching switch 131 when the debugging device 14 does not need to debug the main control module 11 or the V2X communication module 12, and to set the connection state between the V2X communication module 12 and the debugging device 14 to the disconnected state through the second switching switch 132.
[0078] The USB 3.0 interface of the main control module 11 is directly connected to the V2X communication module 12. When the external debugging device 14 (such as a PC) wants to debug the main control module 11 or the V2X communication module 12 through the socket 15 (such as a micro-USB socket), since both the main control module 11 and the V2X communication module 12 only have one USB 3.0 controller, and the USB 3.0 interface is already connected and occupied, the USB 2.0 interface can no longer be connected to the debugging device 14.
[0079] In this embodiment of the invention, by adding a first switching selector 10 between the main control module 11 and the V2X communication module 12, when the V2X device is working normally, that is, when the debugging device 14 does not need to debug the main control module 11 or the V2X communication module 12, the first switching selector 10 connects the main control module 11 and the V2X communication module 12, and the USB 3.0 interface of the main control module 11 is disconnected from the USB 3.0 interface of the V2X communication module 12 through the first switching selector 10. Specifically, by switching the first switching selector 10 to connect the data channel between the main control module 11 and the V2X communication module 12, the debugging device 14 can disconnect the connection between the main control module 11 or the V2X communication module 12 through the second switching selector 13.
[0080] In this embodiment of the invention, when the V2X device is working normally, the USB 2.0 interface of the main control module 11 is connected to the USB 2.0 interface of the V2X communication module 12. Specifically, the first switching switch 131 switches from the testing channel to the data channel, switching the connection between the main control module 11 and the debugging device 14 from the connected state to the disconnected state; the second switching switch 132 switches from the testing channel to the data channel, switching the connection between the V2X communication module 12 and the debugging device 14 from the connected state to the disconnected state.
[0081] The communication circuit provided by this invention can ensure the normal operation of V2X devices through a first switching selector and a second switching selector, without requiring debugging of the main control module or V2X communication module.
[0082] Furthermore, in one embodiment, the first switching switch 131 may specifically include:
[0083] The first control terminal and the first output terminal are connected to the main control module 11 via the second signal transmission line, and the first output terminal is connected to the second switching switch or the debugging device 14.
[0084] Furthermore, in one embodiment, the second switching switch 132 may specifically include:
[0085] The second control terminal and the second output terminal are connected to the V2X communication module 12 via the second signal transmission line, and the second output terminal is connected to the first switching switch or the debugging device 14.
[0086] In this embodiment of the invention, the first switching switch 131 may specifically include a first control terminal and a first output terminal. The first control terminal may specifically be one end of the second signal transmission line connected to the main control module 11 in the first switching switch 131. The first output terminal may specifically be one end of the first switching switch 131 connected to the second switching switch 132, or it may specifically be one end of the first switching switch 131 connected to the debugging device 14.
[0087] In this embodiment of the invention, the first switching switch 132 may specifically include a second control terminal and a second output terminal. The second control terminal may specifically be one end of the second signal transmission line connected to the V2X communication module in the second switching switch 132. The second output terminal may specifically be one end of the second switching switch 132 connected to the first switching switch 131, or it may specifically be one end of the second switching switch 132 connected to the debugging device 14.
[0088] The communication circuit provided by this invention can enable the debugging of the main control module or V2X communication module by means of the first and second switching switches in the second switching selector when the debugging equipment needs to debug the main control module or V2X communication module.
[0089] Furthermore, in one embodiment, the communication circuit may further include:
[0090] The socket 15 is used to connect the debugging device 14 and is connected to the second signal transmission line connected to the main control module 11 via the first switch 131, and is connected to the second signal transmission line connected to the V2X communication module 12 via the second switch 132.
[0091] In this embodiment of the invention, the socket 15 can be specifically used to connect the debugging device 14, a Micro USB socket, and connected to the second signal transmission line connected to the main control module 11 via a first switch 131, and connected to the second signal transmission line connected to the V2X communication module via a second switch 132. Specifically, the socket can be a Micro USB socket.
[0092] Furthermore, in one embodiment, the first signal transmission line includes: a transmit signal line and a receive signal line for a USB 3.0 interface; the second signal transmission line includes: a differential data transmission line for a USB 2.0 interface.
[0093] In this embodiment of the invention, the first signal transmission line can specifically be a transmit signal line SS_TX and a receive signal line SS_RX for a USB 3.0 interface. The second signal transmission line can specifically be a differential data transmission line DP / DM for a USB 2.0 interface.
[0094] The communication circuit provided by this invention, through a socket connected to a debugging device, enables the main control module to be connected to the debugging device via a first switch when debugging is required, or the V2X communication module to be connected to the debugging device via a second switch, thereby enabling the debugging and testing of the main control module and the V2X communication module.
[0095] Furthermore, in one embodiment, the communication circuit may further include:
[0096] Control device 14, connected to the main control module 11, is used to send control signals to the main control module 11. The control signals are used by the main control module 11 to determine whether the debugging device 14 needs to debug the main control module 11, the V2X communication module 12, or neither the main control module 11 nor the V2X communication module 12 needs to be debugged.
[0097] In this embodiment of the invention, a control device 16 is added to the USB 3.0 interface connecting the main control module 11 and the V2X communication module 12. By designing the control device 16 to be connected to the main control module 11, the main control module 11 is notified that it wants to debug the main control module 11 or the V2X communication module 12 through the Micro USB socket or that it does not need to debug the main control module 11 and the V2X communication module 12 (for example, the external debugging device 14 is not connected to the socket 15). The main control module 11 sends corresponding logic control signals to control the first switching switch 131 and the second switching switch 132.
[0098] In this embodiment of the invention, the control device 16 can be specifically used to send control signals to the main control module 11. The main control module 11 determines, based on the control signals, whether the debugging device 14 needs to debug the main control module 11 or the V2X communication module 12, or whether it does not need to debug the main control module 11 and the V2X communication module 12. The control device 16 can specifically be a control switch.
[0099] In this embodiment of the invention, the USB interface identification and logic control are described as follows:
[0100] 1. Debug PC insertion detection
[0101] When an external debugging device 14 connects to the device via a Micro USB socket and needs to debug the main control module 11 or the V2X communication module 12, the main control module 11 needs to obtain the corresponding status and make a judgment. This function can be achieved through the USB_VCC signal pin of the Micro USB socket. When the V2X device is working normally, the USB_VCC signal pin is low. When an external debugging device 14 is connected, the USB interface of the debugging device 14 will provide a 5V power signal to this pin, and the USB_VCC signal pin will obtain a high level, thereby notifying the device's main control module 11 that an external debugging device 14 has been connected.
[0102] 2. Signal detection for control device 14 (control switch):
[0103] When the external debugging device 14 is connected, the main control module 11 needs to know whether it is to debug the main control module 11 or the V2X communication module 12. The R&D personnel need to send a control signal to the main control module 11. This control signal can be a control switch signal, which can be implemented through a button or a DIP switch.
[0104] By default, the main control module 11 needs to be debugged, and the control signal is low. When the V2X communication module 12 needs to be debugged, the control signal is set to high to notify the main control module 11.
[0105] 3. Signal switching switch and control logic:
[0106] The system defaults to normal operating state, where the USB 3.0 and USB 2.0 signals of the main control module 11 are directly connected to the corresponding signal lines of the USB interface of the V2X communication module 12. When an external debugging device 14 is connected, the main control module 11 disconnects the first switching selector 10 (e.g., USB 3.0 switch) connected to the V2X communication module 12, and then decides whether to connect its own USB 2.0 interface to the debugging port of the Micro USB socket to connect to the debugging channel or connect the USB 2.0 interface of the V2X communication module 12 to the debugging port of the Micro USB socket to connect to the debugging channel, based on the signal of the control switch.
[0107] Figure 4 This is a schematic diagram of the software control flow of the communication circuit provided by the present invention, such as... Figure 4 As shown, it includes:
[0108] Step 10: Power on the system and start the program.
[0109] Step 20: The main control module sets USB_Control1 / 2 / 3 to low level, and the USB controller 2.0 / 3.0 signal is turned on to the V2X communication module;
[0110] Step 30: The main control module determines whether USB_VCC is high. If not, proceed to step 301; if yes, proceed to step 305.
[0111] Step 301: No debugging equipment is connected. Step 301 includes steps 3011 to 3013.
[0112] Step 3011: The main control module sets USB_Control1, USB_Control2, and USB_Control3 to low level;
[0113] Step 3012: The main control module's USB 2.0 signal is connected to the V2X communication module through the first switch and the second switch; the main control module's USB 3.0 signal is connected to the V2X communication module through the USB 3.0 switch.
[0114] Step 3013: USB controller 2.0 signal and USB controller 3.0 signal are connected to the V2X communication module;
[0115] Step 302: Confirm that a debugging device has been connected. Step 302 includes steps 3021 to 3024.
[0116] Step 3021: The main control module sets USB_Control3 to a high level and disconnects the USB 3.0 switch, that is, disconnects the USB 3.0 signal of the main control module from the USB 3.0 signal of the V2X communication module;
[0117] Step 3022: The main control module determines whether the control switch signal is low. If yes, proceed to step 3023; otherwise, proceed to step 3024.
[0118] Step 3023: The external debugging equipment needs to debug the main control module. Step 3023 includes steps 30231 to 30232.
[0119] Step 30231: The main control module sets USB_Control1 to high level and USB_Control2 to low level;
[0120] Step 30232: Connect the main control module's USB 2.0 signal to the debugging port of the Micro USB socket;
[0121] Step 3024: The external debugging equipment needs to debug the V2X communication module. Step 3024 includes steps 30241 to 30242.
[0122] Step 30241: The main control module sets USB_Control2 to high level and USB_Control1 to low level;
[0123] Step 30242: Connect the USB 2.0 signal of the V2X communication module to the debugging port of the Micro USB socket.
[0124] The communication circuit provided by this invention adds a control device between the main control module and the V2X communication module, and uses the control device to send control signals to the main control module. This allows the main control module to determine whether it needs to be debugged or the V2X communication module needs to be debugged, and which specific debugging object needs to be debugged. This lays the foundation for subsequent debugging of the main control module or the V2X communication module by controlling the first and second switching selectors.
[0125] Figure 5 This is a flowchart illustrating the communication method provided by the present invention, as shown below. Figure 5 As shown, the method includes:
[0126] Step 110: Control the connection status between the main control module and the V2X communication module through the switch in the first switching selector. The switch includes a first end and a second end. The first end is connected to the main control module through a first signal transmission line, and the second end is connected to the V2X communication module through the first signal transmission line.
[0127] Step 120: Control the connection status between the main control module and the debugging equipment through the first switching switch in the second switching selector;
[0128] Step 130: Control the connection status between the V2X communication module and the debugging device through the second switch in the second selector;
[0129] The first switch is connected to the second switch. The first switch is connected to the main control module and the debugging equipment via the second signal transmission line. The second switch is connected to the V2X communication module and the debugging equipment via the second signal transmission line.
[0130] The communication method provided by this invention addresses the problem that the main control module and V2X communication module of a V2X device cannot be debugged under normal connection conditions. By designing a first switching selector and a second switching selector to debug and control the main control module and V2X communication module, it is possible to conveniently debug the main control module and V2X communication module. At the same time, the circuit design is simple, reliable, and highly practical.
[0131] Furthermore, in one embodiment, controlling the connection status between the main control module and the V2X communication module via the switch in the first switching selector may specifically include:
[0132] When the debugging equipment needs to debug the main control module or the V2X communication module, the connection status between the main control module and the V2X communication module is set to the disconnected state by the switch;
[0133] Accordingly, controlling the connection status between the V2X communication module and the debugging equipment via the second switch in the second selector includes:
[0134] When the debugging equipment needs to debug the main control module, the connection between the main control module and the debugging equipment is set to an on state via the first switch, and the connection between the V2X communication module and the debugging equipment is set to an off state via the second switch; or...
[0135] When the debugging equipment needs to debug the V2X communication module, the connection between the main control module and the debugging equipment is set to disconnected by the first switch, and the connection between the V2X communication module and the debugging equipment is set to connected by the second switch.
[0136] The communication method provided by this invention can control the connection status (including on and off states) between the main control module and the V2X communication module through a first switching selector and control the connection status (including on and off states) between the main control module / V2X communication module and the debugging equipment through a second switching selector when debugging the main control module or V2X communication module is required. This enables the debugging of the main control module and the V2X communication module.
[0137] Furthermore, in one embodiment, controlling the connection status between the main control module and the V2X communication module via the switch in the first switching selector may specifically include:
[0138] When the debugging equipment does not require debugging of the main control module or the V2X communication module, the connection status between the main control module and the V2X communication module is changed from the on state to the conducting state by the switch;
[0139] Accordingly, the step of controlling the connection status between the V2X communication module and the debugging equipment via the second switch in the second selector further includes:
[0140] When the debugging equipment does not require debugging of the main control module or the V2X communication module, the connection status between the main control module and the debugging equipment is set to the disconnected state by the first switch, and the connection status between the V2X communication module and the debugging equipment is set to the disconnected state by the second switch.
[0141] The communication method provided by this invention can ensure the normal operation of V2X devices through a first switching selector and a second switching selector, without requiring debugging of the main control module or V2X communication module during equipment debugging.
[0142] The present invention also provides a V2X device, including any of the above-described communication circuits.
[0143] The V2X device provided by this invention addresses the problem that the main control module and V2X communication module of a V2X device cannot be debugged under normal connection conditions. By designing a first switching selector and a second switching selector to debug and control the main control module and V2X communication module, it is possible to conveniently debug the main control module and V2X communication module. At the same time, the circuit design is simple, reliable, and highly practical.
[0144] The present invention also provides a vehicle including any of the above-described communication circuits or the above-described V2X devices.
[0145] The vehicle provided by this invention addresses the problem that the main control module and V2X communication module of the V2X device cannot be debugged under normal connection conditions. By designing a first switching selector and a second switching selector to debug and control the main control module and V2X communication module, it is possible to conveniently debug the main control module and V2X communication module. At the same time, the circuit design is simple, reliable, and highly practical.
[0146] Figure 6 This is a schematic diagram of the physical structure of an electronic device provided by the present invention, such as... Figure 6 As shown, the electronic device may include a processor 610, a communication interface 611, a memory 612, and a bus 613. The processor 610, communication interface 611, and memory 612 communicate with each other via the bus 613. The processor 610 can call logical instructions from the memory 612 to execute the following methods:
[0147] The connection status between the main control module and the V2X communication module is controlled by a switch in the first switching selector. The switch includes a first end and a second end. The first end is connected to the main control module through a first signal transmission line, and the second end is connected to the V2X communication module through the first signal transmission line.
[0148] The connection status between the main control module and the debugging equipment is controlled by the first switching switch in the second switching selector;
[0149] The connection status between the V2X communication module and the debugging device is controlled by the second switch in the second selector.
[0150] The first switch is connected to the second switch. The first switch is connected to the main control module and the debugging equipment via the second signal transmission line. The second switch is connected to the V2X communication module and the debugging equipment via the second signal transmission line.
[0151] Furthermore, the logical instructions in the aforementioned memory can be implemented as software functional units and sold or used as independent products, and can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer power supply (which may be a personal computer, server, or network power supply, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0152] Furthermore, this invention discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, and when these instructions are executed by a computer, the computer is able to execute the communication methods provided in the above-described method embodiments, such as:
[0153] The connection status between the main control module and the V2X communication module is controlled by a switch in the first switching selector. The switch includes a first end and a second end. The first end is connected to the main control module through a first signal transmission line, and the second end is connected to the V2X communication module through the first signal transmission line.
[0154] The connection status between the main control module and the debugging equipment is controlled by the first switching switch in the second switching selector;
[0155] The connection status between the V2X communication module and the debugging device is controlled by the second switch in the second selector.
[0156] The first switch is connected to the second switch. The first switch is connected to the main control module and the debugging equipment via the second signal transmission line. The second switch is connected to the V2X communication module and the debugging equipment via the second signal transmission line.
[0157] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the communication methods provided in the above embodiments, including, for example:
[0158] The connection status between the main control module and the V2X communication module is controlled by a switch in the first switching selector. The switch includes a first end and a second end. The first end is connected to the main control module through a first signal transmission line, and the second end is connected to the V2X communication module through the first signal transmission line.
[0159] The connection status between the main control module and the debugging equipment is controlled by the first switching switch in the second switching selector;
[0160] The connection status between the V2X communication module and the debugging device is controlled by the second switch in the second selector.
[0161] The first switch is connected to the second switch. The first switch is connected to the main control module and the debugging equipment via the second signal transmission line. The second switch is connected to the V2X communication module and the debugging equipment via the second signal transmission line.
[0162] The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0163] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer power supply (which may be a personal computer, server, or network power supply, etc.) to execute the methods described in various embodiments or some parts of the embodiments.
[0164] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A communication circuit, characterized in that, include: A first switching selector is used to control the connection status between the main control module and the V2X communication module through a switch. The first switching selector includes the switch, which includes a first end and a second end. The first end is connected to the main control module through a first signal transmission line, and the second end is connected to the V2X communication module through the first signal transmission line. The second switching selector is used to control the connection status between the main control module and the debugging equipment through the first switching switch, and to control the connection status between the V2X communication module and the debugging equipment through the second switching switch. The second switching selector includes the first switching switch and the second switching switch. The first switching switch is connected to the second switching switch. The first switching switch is connected to the main control module and the debugging equipment through the second signal transmission line. The second switching switch is connected to the V2X communication module and the debugging equipment through the second signal transmission line.
2. The communication circuit according to claim 1, characterized in that, The first switching selector is also used for: When the debugging equipment needs to debug the main control module or the V2X communication module, the connection status between the main control module and the V2X communication module is set to the disconnected state by the switch; Accordingly, the second switching selector is further configured to, when the debugging equipment needs to debug the main control module, set the connection state between the main control module and the debugging equipment to an on state via the first switching switch, and set the connection state between the V2X communication module and the debugging equipment to an off state via the second switching switch; or, when the debugging equipment needs to debug the V2X communication module, set the connection state between the main control module and the debugging equipment to an off state via the first switching switch, and set the connection state between the V2X communication module and the debugging equipment to an on state via the second switching switch.
3. The communication circuit according to claim 1, characterized in that, The first switching selector is also used for: When the debugging equipment does not require debugging of the main control module or the V2X communication module, the connection status between the main control module and the V2X communication module is changed from the on state to the conducting state by the switch; Accordingly, the second switching selector is further configured to, when the debugging device does not need to debug the main control module or the V2X communication module, set the connection state between the main control module and the debugging device to a disconnected state through the first switching switch, and set the connection state between the V2X communication module and the debugging device to the disconnected state through the second switching switch.
4. The communication circuit according to claim 1, characterized in that, The first switching switch includes: A first control terminal and a first output terminal are provided. The first control terminal is connected to the main control module via the second signal transmission line, and the first output terminal is connected to the second switching switch or the debugging equipment.
5. The communication circuit according to claim 1, characterized in that, The second switching switch includes: The second control terminal and the second output terminal are connected to the V2X communication module via the second signal transmission line, and the second output terminal is connected to the first switching switch or the debugging equipment.
6. The communication circuit according to any one of claims 1-5, characterized in that, Also includes: A socket is used to connect the debugging equipment and is connected to the second signal transmission line connected to the main control module via the first switch, and is also connected to the second signal transmission line connected to the V2X communication module via the second switch.
7. The communication circuit according to claim 6, characterized in that, The first signal transmission line includes a transmit signal line and a receive signal line for a USB 3.0 interface; the second signal transmission line includes a differential data transmission line for a USB 2.0 interface.
8. The communication circuit according to claim 7, characterized in that, Also includes: A control device, connected to the main control module, is used to send control signals to the main control module. The control signals are used by the main control module to determine whether the debugging device needs to debug the main control module, the V2X communication module, or neither the main control module nor the V2X communication module needs to be debugged.
9. A V2X device, characterized in that, Includes the communication circuit described in any one of claims 1-8.
10. A vehicle, characterized in that, Includes the communication circuit as described in any one of claims 1-8 or the V2X device as described in claim 9.
11. A communication method, characterized in that, include: The connection status between the main control module and the V2X communication module is controlled by a switch in the first switching selector. The switch includes a first end and a second end. The first end is connected to the main control module through a first signal transmission line, and the second end is connected to the V2X communication module through the first signal transmission line. The connection status between the main control module and the debugging equipment is controlled by the first switching switch in the second switching selector; The connection status between the V2X communication module and the debugging device is controlled by the second switch in the second selector. The first switch is connected to the second switch. The first switch is connected to the main control module and the debugging equipment via the second signal transmission line. The second switch is connected to the V2X communication module and the debugging equipment via the second signal transmission line.
12. The communication method according to claim 11, characterized in that, The method of controlling the connection status between the main control module and the V2X communication module through the switch in the first switching selector includes: when the debugging equipment needs to debug the main control module or the V2X communication module, setting the connection status between the main control module and the V2X communication module to a disconnected state through the switch; Accordingly, controlling the connection status between the V2X communication module and the debugging equipment via the second switch in the second selector includes: When the debugging equipment needs to debug the main control module, the connection between the main control module and the debugging equipment is set to an on state via the first switch, and the connection between the V2X communication module and the debugging equipment is set to an off state via the second switch; or... When the debugging equipment needs to debug the V2X communication module, the connection between the main control module and the debugging equipment is set to disconnected by the first switch, and the connection between the V2X communication module and the debugging equipment is set to connected by the second switch.
13. The communication method according to claim 11, characterized in that, The method of controlling the connection status between the main control module and the V2X communication module through the switch in the first switching selector also includes: When the debugging equipment does not require debugging of the main control module or the V2X communication module, the connection status between the main control module and the V2X communication module is changed from the on state to the conducting state by the switch; Accordingly, the step of controlling the connection status between the V2X communication module and the debugging equipment via the second switch in the second selector further includes: When the debugging equipment does not require debugging of the main control module or the V2X communication module, the connection status between the main control module and the debugging equipment is set to the disconnected state by the first switch, and the connection status between the V2X communication module and the debugging equipment is set to the disconnected state by the second switch.
14. An electronic device comprising a processor and a memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the communication method according to any one of claims 11 to 13.
15. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the communication method as described in any one of claims 11 to 13.
Citation Information
Patent Citations
V2X antenna vehicle-mounted radio frequency signal line loss open-loop compensation system
CN111245458A
Working mode switching circuit, working mode switching method and robot
CN112131160A