Signal conversion circuit and signal conversion system
By designing a controller and multiple conversion modules in the signal conversion circuit, compatible conversion between various communication methods was achieved. This solved the problems of complex testing environment and high error rate caused by the single nature of signal converters in existing technologies, and improved testing efficiency.
Patent Information
- Application Number
- CN202423135031.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2034-12-18
AI Technical Summary
Existing signal converters can only enhance a single signal in BMS equipment testing, which cannot meet the needs of multiple testing methods, resulting in a complex testing environment and a high error rate.
Design a signal conversion circuit, including a controller, multiple conversion modules and a transmission module. The controller enables compatible conversion between various communication methods, different conversion modules convert different types of signals, and the controller forwards the relayed signals to other conversion modules.
It simplifies the testing environment, improves testing efficiency, reduces error rates, and enables mutual compatibility and conversion between various communication methods.
Smart Images

Figure CN223502878U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of communication technology, and more specifically, to a signal conversion circuit and a signal conversion system. Background Technology
[0002] Currently, before mass production, BMS (Battery Management System) devices in energy storage systems often need to undergo relevant tests on their performance, accuracy, and functionality, and the testing process generally requires the use of multiple communication methods.
[0003] In the existing technology, in order to realize the interaction between various communication methods, signal converters can be used to process the signals, such as CAN repeaters, 485 isolation repeaters, etc. However, these devices can only realize single signal enhancement, and the conversion function is relatively simple. They cannot meet the multiple test methods required by testers. Therefore, in order to realize communication between different communication methods, testers need to build complex test environments, which not only increases unnecessary working time, but may also lead to a higher error rate. Utility Model Content
[0004] The purpose of this invention is to provide a signal conversion circuit and a signal conversion system that can achieve mutual compatibility conversion between multiple communication methods, thereby simplifying the testing environment, improving testing efficiency and reducing the error rate.
[0005] The embodiments of this utility model can be implemented as follows:
[0006] In a first aspect, this utility model provides a signal conversion circuit, including a controller, multiple conversion modules, and multiple transmission modules. The conversion modules and transmission modules are electrically connected in a one-to-one correspondence, and the controller is electrically connected to multiple conversion modules. Different conversion modules are used to convert different types of signals.
[0007] The conversion module is used to convert the first signal to be transmitted sent by the transmission module into a relay signal and send it to the controller, or the conversion module is used to convert the relay signal sent by the controller into a second signal to be transmitted and send it to the transmission module;
[0008] The controller is used to forward relay signals sent by any of the conversion modules to other conversion modules.
[0009] In an optional implementation, the conversion module includes a CAN signal conversion module, the transmission module includes a CAN signal transmission module, and the controller includes a first connection terminal, with the CAN signal conversion module electrically connected to the first connection terminal.
[0010] The CAN signal conversion module is used to convert the first CAN signal sent by the CAN signal transmission module into a relay signal and send the relay signal to the first connection terminal of the controller; or the CAN signal conversion module is used to receive the relay signal sent by the controller through the first connection terminal, convert the relay signal into a second CAN signal, and send the second CAN signal to the CAN signal transmission module.
[0011] In an optional implementation, the conversion module further includes a daisy-chain signal conversion module, and the transmission module includes a daisy-chain signal transmission module; the controller includes a second connection terminal, and the daisy-chain signal conversion module is electrically connected to the second connection terminal;
[0012] The daisy-chain signal conversion module is used to convert the first daisy-chain signal sent by the daisy-chain signal transmission module into a relay signal, and send the relay signal to the second connection terminal of the controller; or the daisy-chain signal conversion module is used to receive the relay signal sent by the controller through the second connection terminal, convert the relay signal into a second daisy-chain signal, and send the second daisy-chain signal to the daisy-chain signal transmission module.
[0013] In an optional implementation, the conversion module further includes an RS232 signal conversion module, and the transmission module includes an RS232 signal transmission module; the controller includes a third connection terminal, and the RS232 signal conversion module is electrically connected to the third connection terminal;
[0014] The RS232 signal conversion module is used to convert the first RS232 signal sent by the RS232 signal transmission module into a relay signal and send the relay signal to the third connection terminal of the controller; or the RS232 signal conversion module is used to receive the relay signal sent by the controller through the third connection terminal, convert the relay signal into a second RS232 signal, and send the second RS232 signal to the RS232 signal transmission module.
[0015] In an optional embodiment, the conversion module further includes an RS485 signal conversion module, and the transmission module includes an RS485 signal transmission module; the controller includes a fourth connection terminal, and the RS485 signal conversion module is electrically connected to the fourth connection terminal;
[0016] The RS485 signal conversion module is used to convert the first RS485 signal sent by the RS485 signal transmission module into a relay signal and send the relay signal to the fourth connection terminal of the controller; or the RS485 signal conversion module is used to receive the relay signal sent by the controller through the fourth connection terminal, convert the relay signal into a second RS485 signal, and send the second RS485 signal to the RS485 signal transmission module.
[0017] In an optional implementation, the conversion module further includes a USB signal conversion module, and the transmission module includes a USB signal transmission module; the controller includes a fifth connection terminal, and the USB signal conversion module is electrically connected to the fifth connection terminal;
[0018] The USB signal conversion module is used to convert the first USB signal sent by the USB signal transmission module into a relay signal and send the relay signal to the fifth connection terminal of the controller; or the USB signal conversion module is used to receive the relay signal sent by the controller through the fifth connection terminal, convert the relay signal into a second USB signal, and send the second USB signal to the USB signal transmission module.
[0019] In an optional implementation, the USB signal conversion module further includes a first diode, the anode of which is electrically connected to the power supply terminal of the USB signal conversion module, and the cathode of which is connected to the power supply terminal of other modules.
[0020] In an optional embodiment, the signal conversion circuit further includes a power supply module, which is electrically connected to the controller, each of the conversion modules, and each of the transmission modules.
[0021] The power module is used to provide multiple power supply voltages to power the controller, each of the conversion modules and each of the transmission modules.
[0022] In an optional embodiment, the power module includes a first power module, a second power module, a third power module, and a second diode. The first power module is electrically connected to the second power module, the second power module is electrically connected to the third power module, the anode of the second diode is electrically connected to the output terminal of the second power module, and the cathode of the second diode is electrically connected to the third power module.
[0023] The second power module is used to convert the first voltage output by the first power module into a second voltage;
[0024] The third power supply module is used to convert the second voltage output by the second power supply module into a third voltage; the various power supply voltages include the second voltage and the third voltage.
[0025] Secondly, this utility model provides a signal conversion system, including the signal conversion circuit described in any of the foregoing embodiments.
[0026] The beneficial effects of the signal conversion circuit and signal conversion system provided in this embodiment of the invention include: the signal conversion circuit includes a controller, multiple conversion modules, and multiple transmission modules. Each conversion module is electrically connected to a transmission module, and the controller is electrically connected to multiple conversion modules. Different conversion modules are used to convert different types of signals. Specifically, a conversion module converts a first signal to be transmitted sent by a transmission module into a relay signal and sends it to the controller, or converts a relay signal sent by the controller into a second signal to be transmitted and sends it to the transmission module. The controller forwards the relay signal sent by any conversion module to other conversion modules. This enables compatible conversion between multiple communication methods, thus simplifying the testing environment, improving testing efficiency, and reducing the error rate. Attached Figure Description
[0027] To more clearly illustrate the technical solutions of the embodiments of this utility model, the drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this utility model and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1 A block diagram of a signal conversion circuit provided in an embodiment of this utility model;
[0029] Figure 2 This is a schematic diagram of a circuit structure for an MCU.
[0030] Figure 3 This is a schematic diagram of another circuit structure for an MCU;
[0031] Figure 4 This is a schematic diagram of the circuit structure of the programming port;
[0032] Figure 5 This is a schematic diagram of the circuit structure of the indicator module;
[0033] Figure 6 This is a schematic diagram of the circuit structure of the storage module;
[0034] Figure 7 This is a schematic diagram of the circuit structure of the power module;
[0035] Figure 8 This is a schematic diagram of the circuit structure of the CAN signal conversion module and the CAN signal transmission module;
[0036] Figure 9 This is a schematic diagram of the circuit structure of the daisy-chain signal conversion module and the daisy-chain signal transmission module;
[0037] Figure 10 This is a schematic diagram of the circuit structure of the RS232 signal conversion module and the RS232 signal transmission module;
[0038] Figure 11 This is a schematic diagram of the circuit structure of the RS485 signal conversion module and the RS485 signal transmission module;
[0039] Figure 12 This is a diagram of a USB interface;
[0040] Figure 13 This is a schematic diagram of a circuit structure for a USB signal conversion module and a USB signal transmission module.
[0041] Icons: 10 - Controller; 20 - Conversion Module; 30 - Transmission Module. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of the embodiments of this utility model clearer, the technical solutions of the embodiments of this utility model will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this utility model, and not all embodiments. The components of the embodiments of this utility model described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0043] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0044] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0045] In the description of this utility model, it should be noted that if terms such as "upper," "lower," "inner," or "outer" are used to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship in which the utility model product is usually placed during use, they are only for the convenience of describing this utility model and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this utility model.
[0046] Furthermore, the terms "first" and "second" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.
[0047] It should be noted that, where there is no conflict, the features in the embodiments of this utility model can be combined with each other.
[0048] The signal conversion circuit provided by the present invention will now be described by way of example through embodiments and in conjunction with the accompanying drawings.
[0049] Figure 1 Please refer to the block diagram of a signal conversion circuit provided in an embodiment of this utility model. Figure 1 The signal conversion circuit includes a controller 10, multiple conversion modules 20 and multiple transmission modules 30, and the conversion modules 20 and the transmission modules 30 are electrically connected in a one-to-one correspondence.
[0050] In this embodiment, different conversion modules can be used to convert different types of signals.
[0051] In this embodiment, the conversion module 20 is used to convert the first signal to be transmitted sent by the transmission module into a relay signal and send it to the controller, or the conversion module is used to convert the relay signal sent by the controller into a second signal to be transmitted and send it to the transmission module, and the controller 10 is used to forward the relay signal sent by any conversion module to other conversion modules.
[0052] Optionally, when multiple communication methods are required, the transmission module can send the first signal to be transmitted to the conversion module, which can convert the first signal to be transmitted into a relay signal and then send the relay signal to the controller, which can then forward the relay signal to other conversion modules.
[0053] Optionally, after receiving the relay signal, the conversion module can convert the relay signal into a second signal to be transmitted and send it to the transmission module for transmission.
[0054] In this embodiment, forwarding the relay signal through the controller simplifies the connection lines between multiple conversion modules.
[0055] The signal conversion circuit provided in this embodiment includes a controller, multiple conversion modules, and multiple transmission modules. Each conversion module is electrically connected to a transmission module, and the controller is electrically connected to multiple conversion modules. Different conversion modules are used to convert different types of signals. Specifically, a conversion module converts a first signal to be transmitted sent by a transmission module into a relay signal and sends it to the controller, or converts a relay signal sent by the controller into a second signal to be transmitted and sends it to the transmission module. The controller forwards the relay signal sent by any conversion module to other conversion modules. This enables compatible conversion between multiple communication methods, thus simplifying the testing environment, improving testing efficiency, and reducing the error rate.
[0056] In one possible implementation, the relay signal can be a TTL (Transistor-Transistor Logic) signal.
[0057] In one possible implementation, the controller can be an MCU (Microcontroller Unit).
[0058] In one example Figure 2 For a schematic diagram of the MCU circuit structure, please refer to [link / reference]. Figure 2 The MCU can be an STM32F103RCT6 chip. Its pins VSS_1, VSS_2, VSS_3, VSS_4, and VSSA are all grounded. Pins VDD_1, VDD_2, VDD_3, VDD_4, and VDDA are all connected to the power module through multiple parallel capacitors and inductors to filter the voltage input to the power module. Pin VBAT is connected to VCCTemp.
[0059] Optionally, a computer program may be pre-programmed into the controller, which can then execute the program to perform the relevant functions.
[0060] In one possible implementation, the controller can determine, based on a computer program, which conversion module should forward the relay signal to after receiving it.
[0061] Optionally, the signal conversion circuit may also include a programming module, which can be used to program the controller.
[0062] In one example Figure 3 For another circuit structure diagram of the MCU, please refer to [link / reference]. Figure 3 The STM32F103RCT6 chip may also include programming pins TMS / SWDIO and TCK / SWCLK, specifically pins PA13 and PA14. Figure 4 For a schematic diagram of the programming port circuit, please refer to [link / reference]. Figure 4 The programming module may include SIP4. Pins 2 and 3 of SIP4 can be connected to the programming pins PA13 and PA14 of the MCU, respectively. Pin 1 is connected to the power supply, and pin 4 is grounded.
[0063] Optionally, to better reflect the operating status of the signal conversion circuit, the signal conversion circuit may further include an indicator module. This indicator module may include a first light-emitting diode (LED) and a second LED. The first LED indicates whether the signal conversion circuit is powered on and operating, and the second LED indicates whether the controller is running. In this embodiment, the positive terminal of the first LED can be connected to the power supply module, and the negative terminal can be grounded. The positive terminal of the second LED can be connected to the power supply module, and the negative terminal is connected to the indicator connection terminal of the controller.
[0064] In one example, please see [link to example]. Figure 3 The MCU may also include an indicator connection IO-LED-RUN, specifically pin PA10. Figure 5 For a schematic diagram of the circuit structure of the indicator module, please refer to [link / reference]. Figure 5 The positive terminal of the first LED D1 is connected to the power module, and the negative terminal can be grounded through resistor R1. The positive terminal of the second LED D2 is connected to the power module, and the negative terminal can be connected to the indicator terminal PA10 of the MCU through resistor R2.
[0065] In this example, when the signal conversion circuit is powered on, the first LED D1 can light up to indicate that the signal conversion circuit is powered on and working. When the controller forwards the relay signal, it will set the indicator connection terminal PA10 to a low level to light up the second LED, thereby indicating that the controller is running.
[0066] Optionally, considering that relevant parameters also need to be configured for the signal during signal transmission, the signal conversion circuit may also include a storage module, which may store configuration parameters such as the signal baud rate and serial port baud rate. The controller can then obtain the configuration parameters from the storage module for configuration when transmitting the relay signal.
[0067] In addition, the storage module can also store signal conversion parameters, such as directly configuring the conversion of CAN signals to USB signals, etc., so that the controller can transmit relay signals according to the signal conversion parameters in the storage module.
[0068] Optionally, the storage module can support power-off storage, meaning that after a power outage and subsequent power-on, the configuration parameters will not be lost, and the controller can still retrieve the configuration parameters from it.
[0069] In one possible implementation, the storage module can be an EEPROM.
[0070] In one example, please see [link to example]. Figure 3 The MCU may also include storage connection terminals I2C2_SCL and I2C2_SDA, specifically pins PB6 and PB7. Figure 6 For a circuit diagram of this storage module, please refer to [link / reference]. Figure 6 The storage module may include a 24LC512T-I / SN chip, wherein pins A0, A1, A2 and VSS can be grounded, pin VDD is connected to the power module through resistor R3 and grounded through capacitor C1, pin WP is grounded, pin SCL is connected to the power module through resistors R3 and R4, and pin SDA is electrically connected to the power module through resistors R3 and R5.
[0071] Optionally, to facilitate the normal operation of the controller, the controller may further include a reset pin and a clock signal connection terminal. The reset pin is used to reset the controller, and the clock signal connection terminal is used to acquire a clock signal.
[0072] Optionally, the reset pin can also be connected to a watchdog chip, which can be used to control the reset pin to reset and restart the controller in the event of a malfunction in the controller.
[0073] In one example, please see [link to example]. Figure 3 The MCU may also include a reset pin NRST, which can be connected to the power supply module via a resistor and grounded via a capacitor; in addition, the MCU may also include clock signal connection terminals OSC_IN and OSC_OUT, which are connected to the clock circuit.
[0074] Optionally, the signal conversion circuit also includes a power supply module, which is electrically connected to the controller, each conversion module and each transmission module respectively. The power supply module is used to provide multiple power supply voltages to power the controller, each conversion module and each transmission module.
[0075] In this embodiment, different modules may require different power supply voltages, so multiple power supply modules can be set up.
[0076] In one possible implementation, the power module may include a first power module, a second power module, a third power module, and a second diode. The first power module is electrically connected to the second power module, the second power module is electrically connected to the third power module, the anode of the second diode is electrically connected to the output terminal of the second power module, and the cathode of the second diode is electrically connected to the third power module.
[0077] The second power module is used to convert the first voltage output by the first power module into a second voltage, and the third power module is used to convert the second voltage output by the second power module into a third voltage.
[0078] Understandably, multiple supply voltages include a second voltage and a third voltage.
[0079] Optionally, the first voltage is greater than the second voltage, and the second voltage is greater than the third voltage.
[0080] Alternatively, to avoid potential issues arising from multiple power supplies, a diode can be provided for the second power module to protect it using the unidirectional conductivity of the diode.
[0081] In one example Figure 7 Please refer to the circuit structure diagram of the power module. Figure 7 The first power module can be 2EDG381-2, the second power module can be LM7805T, and the third power module can be AMS1117-3.3. The VIN pin of the second power module can be connected to the first power module and grounded through capacitor C2, and the GND pin can be grounded. The VOUT pin can be connected to the third power module through parallel capacitors C3, C4, and C5 and the second diode D3, or connected to other modules to power other modules. The VIN pin of the third power module can be connected to the second power module and grounded through capacitor C6, and the GND pin can be grounded. The VOUT pin can be connected to other modules through parallel capacitors C7, C8, and C9 to power other modules.
[0082] In this example, the first power module can output 12V voltage to the second power module, the second power module can convert the 12V voltage to 5V voltage and output it to the third power module or a module that requires 5V power, and the third power module can convert the 5V voltage to 3.3V voltage and output it to a module that requires 3.3V power.
[0083] Optionally, the conversion module may include a CAN signal conversion module, the transmission module may include a CAN signal transmission module, and the controller may include a first connection terminal, with the CAN signal conversion module electrically connected to the first connection terminal.
[0084] In this case, the first signal to be transmitted can be a first CAN signal, and the second signal to be transmitted can be a second CAN signal.
[0085] In this embodiment, the CAN signal conversion module is used to convert the first CAN signal sent by the CAN signal transmission module into a relay signal and send the relay signal to the first connection terminal of the controller. Alternatively, the CAN signal conversion module is used to receive the relay signal sent by the controller through the first connection terminal, convert the relay signal into a second CAN signal, and send the second CAN signal to the CAN signal transmission module.
[0086] In one possible implementation, the CAN signal conversion module can receive the first CAN signal sent by the CAN signal transmission module, convert it into a relay signal, and then send the relay signal to the controller.
[0087] In another possible implementation, the controller can send the relay signal to the CAN signal conversion module, which can then convert the relay signal into a second CAN signal and send it to the CAN signal transmission module for transmission.
[0088] In one example, please see [link to example]. Figure 3 The first connection terminal can be CAN1_RX and CAN1_TX, specifically pins PB8 and PB9 of the MCU chip. CAN1_RX is the signal input terminal, and CAN1_TX is the signal output terminal.
[0089] In this example, the MCU can receive relay signals sent by the CAN signal conversion module via CAN1_RX, and send relay signals to the CAN signal conversion module via CAN1_TX.
[0090] In this example, Figure 8 For circuit diagrams of the CAN signal conversion module and the CAN signal transmission module, please refer to [link / reference]. Figure 8 The CAN signal conversion module can be TJA1051T / 1J. The TXD pin of the CAN signal conversion module can be electrically connected to the CAN1_TX terminal of the MCU via resistor R6, and the RXD pin can be electrically connected to the CAN1_RX terminal of the MCU via resistor R7.
[0091] Understandably, resistors R6 and R7 can provide some protection for signal transmission.
[0092] In this example, the VCC pin of the CAN signal conversion module can be connected to the power supply module through a resistor and grounded through a capacitor. The S and GND pins are both grounded, and the CANH and CANL pins are grounded through capacitors respectively. They are also electrically connected to the CAN signal transmission module through the common-mode inductor CL1 and the electrostatic protection diode D4.
[0093] Understandably, common-mode inductors can be used to remove common-mode interference from CAN signals, and electrostatic discharge (ESD) protection diodes can be used to provide ESD protection for CAN signals.
[0094] In this example, the CAN signal transmission module can be 2EDG381-2, which can send CAN signals to the CAN signal conversion module by inputting differential signals.
[0095] Optionally, the conversion module may further include a daisy-chain signal conversion module, the transmission module may further include a daisy-chain signal transmission module, the controller may include a second connection terminal, and the daisy-chain signal conversion module is electrically connected to the second connection terminal.
[0096] In this case, the first signal to be transmitted can be a first daisy-chain signal, and the second signal to be transmitted can be a second daisy-chain signal.
[0097] In this embodiment, the daisy-chain signal can be an SPI (Serial Peripheral Interface) signal.
[0098] In this embodiment, the daisy-chain signal conversion module can be used to convert the first daisy-chain signal sent by the daisy-chain signal transmission module into a relay signal and send the relay signal to the second connection terminal of the controller. Alternatively, the daisy-chain conversion module can be used to receive the relay signal sent by the controller through the second connection terminal, convert the relay signal into a second daisy-chain signal, and send the second daisy-chain signal to the daisy-chain signal transmission module.
[0099] In one possible implementation, the daisy-chain signal conversion module can receive the first daisy-chain signal sent by the daisy-chain signal transmission module, convert it into a relay signal, and then send the relay signal to the controller.
[0100] In another possible implementation, the controller can send the relay signal to the daisy-chain signal conversion module, which can then convert the relay signal into a second daisy-chain signal and send it to the daisy-chain signal transmission module for transmission.
[0101] In this embodiment, the daisy-chain signal conversion module can be connected to the controller via an SPI bus pin.
[0102] In one example, please see [link to example]. Figure 3The second connection terminal can be SPI1_NSS, SPI1_SCK, SPI1_MISO, or SPI1_MOSI, specifically pins PA4, PA5, PA6, and PA7 of the MCU chip. Among them, SPI1_MOSI is the signal input terminal, SPI1_MISO is the signal output terminal, SPI1_SCK is the clock signal input terminal, and SPI1_NSS is the chip select signal input terminal.
[0103] In this example, the MCU can receive relay signals sent by the daisy-chain signal conversion module via SPI1_MOSI, and send relay signals to the daisy-chain signal conversion module via SPI1_MISO.
[0104] In this example, Figure 9 Please refer to the circuit structure diagrams for the daisy-chain signal conversion module and the daisy-chain signal transmission module. Figure 9 The daisy-chain signal conversion module can be an LTC6820IMS. The MOSI pin of the daisy-chain signal conversion module can be electrically connected to the MCU's SPI1_MOSI pin through resistor R8, the MOSI pin can be electrically connected to the MCU's SPI1_MISO pin through resistor R9, the SCK pin can be electrically connected to the MCU's SPI1_SCK pin through resistor R10, and the *CS pin can be electrically connected to the MCU's SPI1_NSS pin through resistor R11.
[0105] In this example, resistors R8 to R11 can be used to provide some protection for signal transmission.
[0106] In this example, pins IP and IM of the daisy-chain signal conversion module can be electrically connected to the daisy-chain signal transmission module via a common-mode inductor T.
[0107] Understandably, common-mode inductors can be used to remove common-mode interference from CAN signals.
[0108] In this example, the daisy-chain signal transmission module can be 2EDG381-2, which can send SPI signals to the daisy-chain signal conversion module by inputting differential signals.
[0109] Optionally, the conversion module may further include an RS232 signal conversion module, the transmission module includes an RS232 signal transmission module, and the controller includes a third connection terminal, with the RS232 signal conversion module electrically connected to the third connection terminal.
[0110] In this case, the first signal to be transmitted can be a first RS232 signal, and the second signal to be transmitted can be a second RS232 signal.
[0111] In this embodiment, the RS232 signal conversion module can be used to convert the first RS232 signal sent by the RS232 signal transmission module into a relay signal and send the relay signal to the third connection terminal of the controller. Alternatively, the RS232 signal conversion module can be used to receive the relay signal sent by the controller through the third connection terminal, convert the relay signal into a second RS232 signal, and send the second RS232 signal to the RS232 signal transmission module.
[0112] In one possible implementation, the RS232 signal conversion module can receive the first RS232 signal sent by the RS232 signal transmission module, convert it into a relay signal, and then send the relay signal to the controller.
[0113] In another possible implementation, the controller can send the relay signal to the RS232 signal conversion module, which can then convert the relay signal into a second RS232 signal and send it to the RS232 signal transmission module for transmission.
[0114] In one example, please see [link to example]. Figure 3 The third connection terminal may include 232-RX and 232-TX, specifically pins PA2 and PA3 of the MCU chip, where 232-RX is the signal input terminal and 232-TX is the signal output terminal.
[0115] In this example, the MCU can receive relay signals from the RS232 signal conversion module via 232-RX, and send relay signals to the RS232 signal transmission module via 232-TX.
[0116] In this example, Figure 10 For circuit diagrams of the RS232 signal conversion module and the RS232 signal transmission module, please refer to [link / reference]. Figure 10 The RS232 signal conversion module can be SP3232EEN. The R1OUT pin of the RS232 signal conversion module can be electrically connected to the MCU's 232-RX pin through resistor R12, and the T1IN pin can be electrically connected to the MCU's 232-TX pin through resistor R13. The T1OUT pin of the RS232 signal conversion module can be electrically connected to pin 2 of the female connector through resistor R15, and the R1IN pin can be electrically connected to pin 3 of the female connector through resistor R14.
[0117] In this example, resistors R12 to R15 can be used to protect the signal transmission to a certain extent.
[0118] In this example, the RS232 signal transmission module can be a DB9 232 female connector, which can send the first RS232 signal to the RS232 signal conversion module through pin 3, and receive the second RS232 signal sent by the RS232 signal conversion module through pin 2.
[0119] Optionally, the conversion module further includes an RS485 signal conversion module, and the transmission module includes an RS485 signal transmission module; the controller includes a fourth connection terminal, and the RS485 signal conversion module is electrically connected to the fourth connection terminal.
[0120] In this case, the first signal to be transmitted can be a first RS485 signal, and the second signal to be transmitted can be a second RS485 signal.
[0121] In this embodiment, the RS485 signal conversion module is used to convert the first RS485 signal sent by the RS485 signal transmission module into a relay signal and send the relay signal to the fourth connection terminal of the controller. Alternatively, the RS485 signal conversion module is used to receive the relay signal sent by the controller through the fourth connection terminal, convert the relay signal into a second RS485 signal, and send the second RS485 signal to the RS485 signal transmission module.
[0122] In one possible implementation, the RS485 signal conversion module can receive the first RS485 signal sent by the RS485 signal transmission module, convert it into a relay signal, and then send the relay signal to the controller.
[0123] In another possible implementation, the controller can send the relay signal to the RS485 signal conversion module, which can then convert the relay signal into a second RS485 signal and send it to the RS485 signal transmission module for transmission.
[0124] In one example, please see [link to example]. Figure 3 The fourth connection terminal may include 485-RX and 485-TX, specifically pins PC10 and PC11 of the MCU chip, where 485-RX is the signal input terminal and 485-TX is the signal output terminal.
[0125] In this example, the MCU can receive relay signals sent by the RS485 signal conversion module via 485-RX, and send relay signals to the RS485 signal conversion module via 485-TX.
[0126] In this example, Figure 11 For circuit diagrams of the RS485 signal conversion module and the RS485 signal transmission module, please refer to [link / reference]. Figure 11The RS485 signal conversion module can be MAX13487EESA. Pin RO of the RS485 signal conversion module can be electrically connected to the 485-RX of the MCU, and pin DI can be electrically connected to the 485-TX of the MCU. Pin B of the RS485 signal conversion module can be connected to terminal 2 of the RS485 signal transmission module through resistor R16, and pin A can be connected to terminal 1 of the RS485 signal transmission module through resistor R17.
[0127] In this example, the RS485 signal transmission module can be 2EDG381-2.
[0128] Optionally, the conversion module further includes a USB signal conversion module, the transmission module includes a USB signal transmission module, the controller includes a fifth connection terminal, and the USB signal conversion module is electrically connected to the fifth connection terminal.
[0129] In this case, the first signal to be transmitted can be a first USB signal, and the second signal to be transmitted can be a second USB signal.
[0130] In this embodiment, the USB signal conversion module is used to convert the first USB signal sent by the USB signal transmission module into a relay signal and send the relay signal to the fifth connection terminal of the controller, or to receive the relay signal sent by the controller through the fifth connection terminal, convert the relay signal into a second USB signal, and send the second USB signal to the USB signal transmission module.
[0131] In one possible implementation, the USB signal conversion module can receive the first USB signal sent by the USB signal transmission module, convert it into a relay signal, and then send the relay signal to the controller.
[0132] In another possible implementation, the controller can send the relay signal to the USB signal conversion module, which can then convert the relay signal into a second USB signal and send it to the USB signal transmission module for transmission.
[0133] Optionally, the USB signal conversion module may include two different board-side interface types. Figure 12 For a diagram of the USB interface, please refer to [link / reference]. Figure 12 The USB signal conversion module can be configured with J4 and J6 interfaces to accommodate different interfaces, thus providing users with multiple options when choosing a USB cable.
[0134] Alternatively, the two ports of the USB cable can be used as a USB signal transmission module and a USB signal conversion module, respectively.
[0135] Optionally, considering that the USB conversion module can also be used as a power source to power other modules, such as connecting one end to a computer and the other end to other modules, in order to avoid the possible impact of multiple power supplies, the USB signal conversion module may also include a first diode, the positive terminal of the first diode being electrically connected to the power supply terminal of the USB signal conversion module, and the negative terminal of the first diode being connected to the power supply terminal of other modules.
[0136] In this embodiment, the USB conversion module can be protected under multiple power supply conditions by utilizing the unidirectional conductivity of the first diode.
[0137] In one example, please see [link to example]. Figure 3 The fifth connection terminal may include D+ and D-, specifically pins PA11 and PA12 of the MCU chip, where D+ and D- can output differential signals.
[0138] In this example, the MCU can receive relay signals sent by the USB conversion module via D+ and D-, and send relay signals to the USB conversion module via D+ and D-.
[0139] In this example, Figure 13 Please refer to the circuit diagram of a USB signal conversion module and a USB signal transmission module. Figure 13 The USB signal conversion module and the USB signal transmission module can be GT-USB-7038E. If J4 is a USB signal conversion module, its pins Dn2 and Dp2 can be electrically connected to the MCU's D- and D+ respectively. If J6 is a USB signal conversion module, its pins d- and d+ can be electrically connected to the MCU's D- and D+ respectively.
[0140] In this example, pins Dp1 and Dn1 are shorted to Dn2 and Dp2.
[0141] In this example, both J4 and J6 interfaces can be used as power supplies to power other modules. Therefore, pin VCC can be connected to the power supply terminals of other modules through diode D5, and pin VBUS can be connected to the power supply terminals of other modules through diode D6.
[0142] The signal conversion circuit provided in this embodiment of the utility model can realize compatible conversion between CAN signals, daisy chain signals, USB signals, 232 signals and 485 signals, thereby enabling relatively simple interaction between multiple communication methods. Therefore, it is not necessary to build a complex environment in application scenarios that require multiple communication methods, which improves work efficiency and reduces the error rate.
[0143] This utility model embodiment also provides a signal conversion system, including the signal conversion circuit provided in this utility model embodiment.
[0144] The above description is only a specific embodiment of this utility model, but the protection scope of this utility model is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this utility model should be included within the protection scope of this utility model.
Claims
1. A signal conversion circuit, characterized in that, It includes a controller, multiple conversion modules, and multiple transmission modules. The conversion modules and transmission modules are electrically connected in a one-to-one correspondence, and the controller is electrically connected to multiple conversion modules. Different conversion modules are used to convert different types of signals. The conversion module is used to convert the first signal to be transmitted sent by the transmission module into a relay signal and send it to the controller, or the conversion module is used to convert the relay signal sent by the controller into a second signal to be transmitted and send it to the transmission module; The controller is used to forward relay signals sent by any of the conversion modules to other conversion modules.
2. The signal conversion circuit according to claim 1, characterized in that, The conversion module includes a CAN signal conversion module, and the transmission module includes a CAN signal transmission module; the controller includes a first connection terminal, and the CAN signal conversion module is electrically connected to the first connection terminal. The CAN signal conversion module is used to convert the first CAN signal sent by the CAN signal transmission module into a relay signal and send the relay signal to the first connection terminal of the controller; or the CAN signal conversion module is used to receive the relay signal sent by the controller through the first connection terminal, convert the relay signal into a second CAN signal, and send the second CAN signal to the CAN signal transmission module.
3. The signal conversion circuit according to claim 1, characterized in that, The conversion module further includes a daisy-chain signal conversion module, and the transmission module includes a daisy-chain signal transmission module; the controller includes a second connection terminal, and the daisy-chain signal conversion module is electrically connected to the second connection terminal; The daisy-chain signal conversion module is used to convert the first daisy-chain signal sent by the daisy-chain signal transmission module into a relay signal, and send the relay signal to the second connection terminal of the controller; or the daisy-chain signal conversion module is used to receive the relay signal sent by the controller through the second connection terminal, convert the relay signal into a second daisy-chain signal, and send the second daisy-chain signal to the daisy-chain signal transmission module.
4. The signal conversion circuit according to claim 1, characterized in that, The conversion module further includes an RS232 signal conversion module, and the transmission module includes an RS232 signal transmission module; the controller includes a third connection terminal, and the RS232 signal conversion module is electrically connected to the third connection terminal. The RS232 signal conversion module is used to convert the first RS232 signal sent by the RS232 signal transmission module into a relay signal and send the relay signal to the third connection terminal of the controller; or the RS232 signal conversion module is used to receive the relay signal sent by the controller through the third connection terminal, convert the relay signal into a second RS232 signal, and send the second RS232 signal to the RS232 signal transmission module.
5. The signal conversion circuit according to claim 1, characterized in that, The conversion module further includes an RS485 signal conversion module, and the transmission module includes an RS485 signal transmission module; the controller includes a fourth connection terminal, and the RS485 signal conversion module is electrically connected to the fourth connection terminal. The RS485 signal conversion module is used to convert the first RS485 signal sent by the RS485 signal transmission module into a relay signal and send the relay signal to the fourth connection terminal of the controller; or the RS485 signal conversion module is used to receive the relay signal sent by the controller through the fourth connection terminal, convert the relay signal into a second RS485 signal, and send the second RS485 signal to the RS485 signal transmission module.
6. The signal conversion circuit according to claim 1, characterized in that, The conversion module further includes a USB signal conversion module, and the transmission module includes a USB signal transmission module; the controller includes a fifth connection terminal, and the USB signal conversion module is electrically connected to the fifth connection terminal. The USB signal conversion module is used to convert the first USB signal sent by the USB signal transmission module into a relay signal and send the relay signal to the fifth connection terminal of the controller; or the USB signal conversion module is used to receive the relay signal sent by the controller through the fifth connection terminal, convert the relay signal into a second USB signal, and send the second USB signal to the USB signal transmission module.
7. The signal conversion circuit according to claim 6, characterized in that, The USB signal conversion module also includes a first diode, the positive terminal of which is electrically connected to the power supply terminal of the USB signal conversion module, and the negative terminal of which is connected to the power supply terminal of other modules.
8. The signal conversion circuit according to claim 1, characterized in that, The signal conversion circuit also includes a power supply module, which is electrically connected to the controller, each of the conversion modules and each of the transmission modules. The power module is used to provide multiple power supply voltages to power the controller, each of the conversion modules and each of the transmission modules.
9. The signal conversion circuit according to claim 8, characterized in that, The power module includes a first power module, a second power module, a third power module, and a second diode. The first power module is electrically connected to the second power module, the second power module is electrically connected to the third power module, the anode of the second diode is electrically connected to the output terminal of the second power module, and the cathode of the second diode is electrically connected to the third power module. The second power module is used to convert the first voltage output by the first power module into a second voltage; The third power supply module is used to convert the second voltage output by the second power supply module into a third voltage; the various power supply voltages include the second voltage and the third voltage.
10. A signal conversion system, characterized in that, Includes the signal conversion circuit according to any one of claims 1-9.