CAN optical fiber conversion device and system
By introducing a programmable logic control module into the CAN fiber optic conversion device, the direct conversion and transmission between the CAN signal and the fiber optic signal is realized, and the problems of storage and forwarding delay and high cost in the prior art are solved, and signal transmission without delay and low cost are realized.
Patent Information
- Application Number
- CN202411752239.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-03-14
AI Technical Summary
The existing CAN optical fiber conversion device adopts storage and forwarding, and each storage and forwarding of information has a delay, and the device cost is relatively high.
A CAN optical fiber conversion device is designed, including a CAN transceiver module, a programmable logic control module, a first optical fiber transceiver module and a second optical fiber transceiver module. The direct conversion and transmission between the CAN signal and the optical fiber signal is realized through the preset logic operation of the programmable logic control module, avoiding delays in the storage and forwarding process, and no CAN controller and a central processor CPU are required.
The delay-free conversion transmission between the CAN signal and the optical fiber signal is realized, reducing device costs and simplifying the configuration process.
Smart Images

Figure CN119628737A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication equipment, and in particular to a CAN optical fiber conversion device and system. Background Art
[0002] The CAN optical fiber converter generally has a CAN interface and an optical fiber interface. The CAN interface is used to receive CAN bus signals and convert them into optical fiber signals. The optical fiber interface is used to transmit optical fiber signals to another device. The CAN optical fiber converter can transmit CAN signals to other devices at a faster speed and longer distance, thereby improving transmission efficiency.
[0003] Traditional CAN fiber optic converters are all store-and-forward devices, with CAN controllers and central processing units (CPUs). After receiving information from the CAN interface, the information is processed by the central processing unit (CPU) and stored in the cache before being sent out through the fiber optic interface. Conversely, information is received from the fiber optic interface and sent out from the CAN interface. The disadvantage of this type of CAN fiber optic converter is that it is expensive (configured with a CAN controller and a central processing unit (CPU)), the CAN fiber optic converter needs to be configured before each use, and there is a delay of several milliseconds for each storage and forwarding of information. Summary of the invention
[0004] The embodiment of the present invention provides a CAN optical fiber conversion device and system to solve the technical problems that the existing CAN optical fiber conversion device in the related art adopts a store-and-forward type, has a delay in each storage and forwarding of information, and has a high device cost.
[0005] In a first aspect, a CAN optical fiber conversion device is provided, comprising: a CAN transceiver module, a programmable logic control module, a first optical fiber transceiver module and a second optical fiber transceiver module;
[0006] The programmable logic control module is connected to the CAN transceiver module, the first optical fiber transceiver module and the second optical fiber transceiver module;
[0007] The CAN transceiver module is used to receive data from the programmable logic control module and convert it into electrical signals and send it out through the CAN bus, while receiving data on the CAN bus and transmitting it to the programmable logic control module;
[0008] The first optical fiber transceiver module or the second optical fiber transceiver module is used to receive data from the programmable logic control module and convert it into an optical signal and send it out through an optical fiber, and at the same time receive data on the optical fiber and transmit it to the programmable logic control module;
[0009] The programmable logic control module is used to receive data from any two transceiver modules among the CAN transceiver module, the first optical fiber transceiver module and the second optical fiber transceiver module, and transmit the received data to the third transceiver module after a preset logic operation.
[0010] In some embodiments, the CAN transceiver module includes a CAN transceiver, a common-mode inductor and a fourth resistor, the data input pin and the data output pin of the CAN transceiver are connected to the programmable logic control module, the low signal pin and the high signal pin of the CAN transceiver are respectively connected to the first end and the second end of the common-mode inductor, the third end of the common-mode inductor is connected to the first end of the fourth resistor and the low signal line of the CAN bus, and the fourth end of the common-mode inductor is connected to the second end of the fourth resistor and the high signal line of the CAN bus.
[0011] In some embodiments, the programmable logic control module includes a programmable logic controller, an input end of the programmable logic controller is connected to a data output pin of the CAN transceiver, and an output end of the programmable logic controller is connected to a data input pin of the CAN transceiver.
[0012] In some embodiments, the first optical fiber transceiver module includes a first optical fiber transceiver, a fifth resistor, a first optical fiber transmitting connector, and a first optical fiber receiving connector;
[0013] The first end of the fifth resistor is connected to a DC power supply, and the second end of the fifth resistor is connected to the first end of the first optical fiber transmitting connector;
[0014] The first end of the first optical fiber transceiver is connected to a DC power supply, the second end of the first optical fiber transceiver is connected to an output end of the programmable logic controller, and the third end of the first optical fiber transceiver is connected to the second end of the first optical fiber transmitting connector;
[0015] The first end of the first optical fiber receiving connector is connected to an input end of the programmable logic controller.
[0016] In some embodiments, the second optical fiber transceiver module has the same circuit structure as the first optical fiber transceiver module.
[0017] In some embodiments, the CAN optical fiber conversion device further includes:
[0018] A delay module, wherein the delay module comprises a delay chip, and the delay chip is connected to the programmable logic controller.
[0019] In some embodiments, the CAN optical fiber conversion device further includes:
[0020] A signal indication module, the signal indication module comprising a first resistor, a second resistor, a third resistor, a first light emitting diode, a second light emitting diode and a third light emitting diode;
[0021] The positive electrode of the first light emitting diode is connected to a DC power supply, the negative electrode of the first light emitting diode is connected to a first end of the first resistor, and the second end of the first resistor is connected to an output end of the programmable logic controller;
[0022] The positive electrode of the second light emitting diode is connected to a DC power supply, the negative electrode of the second light emitting diode is connected to a first end of the second resistor, and the second end of the second resistor is connected to an output end of the programmable logic controller;
[0023] The positive electrode of the third light emitting diode is connected to a DC power supply, the negative electrode of the third light emitting diode is connected to a first end of the third resistor, and the second end of the third resistor is connected to an output end of the programmable logic controller.
[0024] In some embodiments, the CAN optical fiber conversion device further includes:
[0025] A power processing module, wherein the power processing module comprises a voltage stabilizer, wherein an input terminal and a ground terminal of the voltage stabilizer are connected to a positive electrode and a ground of an external power supply.
[0026] In some embodiments, the power processing module further includes a varistor and a transient suppression diode;
[0027] The two ends of the varistor are respectively connected to the input end and the ground end of the voltage stabilizer;
[0028] The cathode and anode of the transient voltage suppression diode are connected to the input terminal and the ground terminal of the voltage regulator respectively.
[0029] In a second aspect, a CAN optical fiber conversion system is provided, comprising at least one of the aforementioned CAN optical fiber conversion devices.
[0030] The beneficial effects brought about by the technical solution provided by the present invention include:
[0031] The embodiment of the present invention provides a CAN optical fiber conversion device and system. The CAN optical fiber conversion device is provided with a CAN transceiver module, a programmable logic control module, a first optical fiber transceiver module and a second optical fiber transceiver module. The programmable logic control can realize the conversion and transmission of CAN signals and optical fiber signals between the CAN transceiver module and the optical fiber transceiver module through preset logical operations. The conversion and transmission between the CAN signal and the optical fiber signal has no delay, does not require a CAN controller and a central processing unit CPU, does not require configuration, and has low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 A principle block diagram of a CAN optical fiber conversion device provided by an embodiment of the present invention;
[0034] Figure 2 A circuit diagram of a CAN transceiver module provided in an embodiment of the present invention;
[0035] Figure 3 A circuit diagram of a programmable logic control module provided by an embodiment of the present invention;
[0036] Figure 4 A circuit diagram of a first optical fiber transceiver module provided in an embodiment of the present invention;
[0037] Figure 5 A circuit diagram of a second optical fiber transceiver module provided in an embodiment of the present invention;
[0038] Figure 6 Another principle block diagram of a CAN optical fiber conversion device provided by an embodiment of the present invention;
[0039] Figure 7 A circuit diagram of a delay module provided by an embodiment of the present invention;
[0040] Figure 8 A circuit diagram of a signal indication module provided by an embodiment of the present invention;
[0041] Fig. 9 A circuit diagram of a power processing module provided by an embodiment of the present invention;
[0042] Fig.10 A principle block diagram of a CAN optical fiber conversion system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] The embodiment of the present invention provides a CAN optical fiber conversion device, which can solve the technical problems that the existing CAN optical fiber conversion device adopts a store-and-forward type, has a delay in each storage and forwarding of information, and has a high device cost.
[0045] See also Figure 1 As shown, an embodiment of the present invention provides a CAN optical fiber conversion device, including: a CAN transceiver module, a programmable logic control module, a first optical fiber transceiver module and a second optical fiber transceiver module.
[0046] The programmable logic control module is connected to the CAN transceiver module, the first optical fiber transceiver module and the second optical fiber transceiver module.
[0047] The CAN transceiver module is used to receive data from the programmable logic control module and convert it into electrical signals and send it out through the CAN bus, while receiving data on the CAN bus and transmitting it to the programmable logic control module.
[0048] The first optical fiber transceiver module or the second optical fiber transceiver module is used to receive data from the programmable logic control module and convert it into an optical signal and send it out through the optical fiber, and at the same time receive data on the optical fiber and transmit it to the programmable logic control module.
[0049] The programmable logic control module is used to receive data from any two transceiver modules among the CAN transceiver module, the first optical fiber transceiver module and the second optical fiber transceiver module, and transmit the received data to the third transceiver module after a preset logic operation.
[0050] Specifically, the preset logic operation of the programmable logic control module is as follows:
[0051] CANTX=RX1&RX2;
[0052] TX1 = RX2 & CANRX;
[0053] TX2 = RX1 & CANRX;
[0054] Among them, CANTX is the data sent by the programmable logic control module to the CAN transceiver module, TX1 is the data sent by the programmable logic control module to the first optical fiber transceiver module, TX2 is the data sent by the programmable logic control module to the second optical fiber transceiver module, CANRX is the data received by the programmable logic control module from the CAN transceiver module, RX1 is the data received by the programmable logic control module from the first optical fiber transceiver module, and RX2 is the data received by the programmable logic control module from the second optical fiber transceiver module.
[0055] The CAN optical fiber conversion device in the embodiment of the present invention is provided with a CAN transceiver module, a programmable logic control module, a first optical fiber transceiver module and a second optical fiber transceiver module. The programmable logic control can realize the conversion and transmission of CAN signals and optical fiber signals between the CAN transceiver module and the optical fiber transceiver module through preset logical operations. The conversion and transmission between the CAN signal and the optical fiber signal has no delay, does not require a CAN controller and a central processing unit CPU, does not require configuration, and has low cost.
[0056] As an optional implementation, in an embodiment of the invention, see Figure 2 As shown, the CAN transceiver module includes a CAN transceiver U4, a common mode inductor L1 and a fourth resistor R4, the data input pin TXD and the data output pin RXD of the CAN transceiver U4 are connected to the programmable logic control module, the low signal pin CANL and the high signal pin CANH of the CAN transceiver are respectively connected to the first end and the second end of the common mode inductor L1, the third end of the common mode inductor L1 is connected to the first end of the fourth resistor R4 and the low signal line of the CAN bus, and the fourth end of the common mode inductor L1 is connected to the second end of the fourth resistor R4 and the high signal line of the CAN bus. Optionally, the CAN transceiver U4 adopts an isolated CAN transceiver ISO1050.
[0057] As an optional implementation, in an embodiment of the invention, see Figure 3 As shown, the programmable logic control module includes a programmable logic controller U1, an input terminal IN2 of the programmable logic controller U1 is connected to the data output pin RXD of the CAN transceiver U4, and an output terminal IO6 of the programmable logic controller U1 is connected to the data input pin TXD of the CAN transceiver U4.
[0058] As an optional implementation, in an embodiment of the invention, see Figure 4 As shown, the first optical fiber transceiver module includes a first optical fiber transceiver U2A, a fifth resistor R5, a first optical fiber receiving connector and a first optical fiber transmitting connector;
[0059] A first end of the fifth resistor R5 is connected to a DC power supply VCC, and a second end of the fifth resistor is connected to a first end of the first optical fiber transmitting connector Transmit1;
[0060] The first end of the first fiber optic transceiver U2A is connected to a DC power supply VCC, the second end of the first fiber optic transceiver U2A is connected to an output end IO7 of the programmable logic controller U1, and the third end of the first fiber optic transceiver U2A is connected to the second end of the first fiber optic transmitting connector Transmit1.
[0061] The first end of the first optical fiber receiving connector Receive1 is connected to an input end IN1 of the programmable logic controller.
[0062] Further, see Figure 4 and Figure 5 As shown, the circuit structure of the second optical fiber transceiver module is the same as that of the first optical fiber transceiver module.
[0063] As an optional implementation, in an embodiment of the invention, see Figure 6 and Figure 7 As shown, the CAN optical fiber conversion device also includes: a delay module, the delay module includes a delay chip U6, and the delay chip U6 is connected to the programmable logic controller U1. The input terminal IN of the delay chip U6 is connected to an output terminal IO6 of the programmable logic controller U1, and multiple output terminals of the delay chip U6 are connected to multiple input terminals of the programmable logic controller U1. The TX signal and the RX signal have a strict timing relationship. The signal received from the optical fiber is sent through the TX of the CAN transceiver U4 and then returned through RX. There is a delay of tens of nanoseconds in the middle, which may affect the communication. By adding the delay chip U6 and the delay link, the preset logic operation of the programmable logic control module is adjusted to:
[0064] CANTX=RX1&RX2;
[0065] TX1 = RX2 & (CANRX#! DY);
[0066] TX2 = RX1 & (CANRX#! DY);
[0067] Among them, DY is the output signal of the delay chip U6, which can delay the CANTX signal by 50 nanoseconds. After adding the delay, normal communication can be guaranteed.
[0068] As an optional implementation, in an embodiment of the invention, see Figure 8 As shown, the CAN optical fiber conversion device also includes: a signal indication module, which includes a first resistor R1, a second resistor R2, a third resistor R2, a first light emitting diode CANLED, a second light emitting diode R1LED and a third light emitting diode R2LED.
[0069] The positive electrode of the first light emitting diode CANLED is connected to the DC power supply VCC, the negative electrode of the first light emitting diode CANLED is connected to the first end of the first resistor R1, and the second end of the first resistor R1 is connected to an output end IO5 of the programmable logic controller U1.
[0070] The positive electrode of the second light emitting diode R1LED is connected to the DC power supply VCC, the negative electrode of the second light emitting diode R1LED is connected to the first end of the second resistor R2, and the second end of the second resistor R2 is connected to an output end IO4 of the programmable logic controller U1.
[0071] The anode of the third light emitting diode R2LED is connected to the DC power supply VCC, the cathode of the third light emitting diode R2LED is connected to the first end of the third resistor R3, and the second end of the third resistor R3 is connected to an output end IO0 of the programmable logic controller U1.
[0072] By setting the signal indication module, the programmable logic controller U1 can be instructed to send data to the CAN transceiver module, the first optical fiber transceiver module and the second optical fiber transceiver module, so that the staff can judge whether the CAN optical fiber conversion device is working normally.
[0073] As an optional implementation, in an embodiment of the invention, see Fig. 9 As shown, the CAN optical fiber conversion device further includes: a power processing module, the power processing module includes a voltage regulator U5, and the voltage regulator U5 can be a 7805 three-terminal voltage regulator. The input terminal and the ground terminal of the voltage regulator U5 are connected to the positive pole and the ground of the external power supply (24V). The voltage regulator U5 can provide a nominal 5V voltage to stably supply power to the related devices of the CAN optical fiber conversion device.
[0074] Further, see Fig. 9 As shown, the power processing module further includes a transient suppression diode D1 and a varistor RV1. The two ends of the varistor RV1 are respectively connected to the input end and the ground end of the voltage regulator U5, and the cathode and anode of the transient suppression diode D1 are respectively connected to the input end and the ground end of the voltage regulator U5. The varistor RV1 and the transient suppression diode D1 can protect the voltage regulator U5 from working normally.
[0075] The embodiment of the present invention provides a CAN optical fiber conversion system, see Fig.10 As shown, it includes at least one of the aforementioned CAN optical fiber conversion devices.
[0076] The battery system consists of multiple battery clusters, each of which consists of multiple battery packs connected in series, with a series voltage of 1500VDC. Each PACK is equipped with a battery voltage and temperature detection module, which is connected through a CAN bus and then to an optical fiber module. Each cluster is equipped with a CAN optical fiber conversion device to convert the CAN signal into an optical fiber signal. The CAN optical fiber conversion devices are connected in series in a hand-in-hand manner and then connected to the main control unit.
[0077] Fig.10 The CAN bus is a hybrid bus of optical fiber and twisted pair. It can be flexibly configured in practical applications. For low voltage levels, such as less than 800V, and low electromagnetic interference, twisted pair can be used to form the CAN bus. If there is high voltage, high current, and more electromagnetic interference, this hybrid bus is used.
[0078] In the description of the present invention, it should be noted that the terms "upper", "lower", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.
[0079] It should be noted that, in the present invention, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0080] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features of the present invention.
Claims
1. A CAN optical fiber conversion device, characterized in that: include: CAN transceiver module, programmable logic control module, first optical fiber transceiver module and second optical fiber transceiver module; The programmable logic control module is connected to the CAN transceiver module, the first optical fiber transceiver module and the second optical fiber transceiver module; The CAN transceiver module is used to receive data from the programmable logic control module and convert it into electrical signals and send it out through the CAN bus, while receiving data on the CAN bus and transmitting it to the programmable logic control module; The first optical fiber transceiver module or the second optical fiber transceiver module is used to receive data from the programmable logic control module and convert it into an optical signal and send it out through an optical fiber, and at the same time receive data on the optical fiber and transmit it to the programmable logic control module; The programmable logic control module is used to receive data from any two transceiver modules among the CAN transceiver module, the first optical fiber transceiver module and the second optical fiber transceiver module, and transmit the received data to the third transceiver module after a preset logic operation.
2. The CAN optical fiber conversion device according to claim 1, characterized in that: The CAN transceiver module includes a CAN transceiver, a common-mode inductor and a fourth resistor. The data input pin and the data output pin of the CAN transceiver are connected to the programmable logic control module. The low signal pin and the high signal pin of the CAN transceiver are respectively connected to the first end and the second end of the common-mode inductor. The third end of the common-mode inductor is connected to the first end of the fourth resistor and the low signal line of the CAN bus. The fourth end of the common-mode inductor is connected to the second end of the fourth resistor and the high signal line of the CAN bus.
3. The CAN optical fiber conversion device according to claim 2, characterized in that: The programmable logic control module includes a programmable logic controller, one input end of the programmable logic controller is connected to the data output pin of the CAN transceiver, and one output end of the programmable logic controller is connected to the data input pin of the CAN transceiver.
4. The CAN optical fiber conversion device according to claim 3, characterized in that: The first optical fiber transceiver module includes a first optical fiber transceiver, a fifth resistor, a first optical fiber transmitting connector and a first optical fiber receiving connector; The first end of the fifth resistor is connected to a DC power supply, and the second end of the fifth resistor is connected to the first end of the first optical fiber transmitting connector; The first end of the first optical fiber transceiver is connected to a DC power supply, the second end of the first optical fiber transceiver is connected to an output end of the programmable logic controller, and the third end of the first optical fiber transceiver is connected to the second end of the first optical fiber transmitting connector; The first end of the first optical fiber receiving connector is connected to an input end of the programmable logic controller.
5. The CAN optical fiber conversion device according to claim 4, characterized in that: The circuit structure of the second optical fiber transceiver module is the same as that of the first optical fiber transceiver module.
6. The CAN optical fiber conversion device according to claim 3, characterized in that: The CAN optical fiber conversion device also includes: A delay module, wherein the delay module comprises a delay chip, and the delay chip is connected to the programmable logic controller.
7. The CAN optical fiber conversion device according to claim 3, characterized in that: The CAN optical fiber conversion device also includes: A signal indication module, the signal indication module comprising a first resistor, a second resistor, a third resistor, a first light emitting diode, a second light emitting diode and a third light emitting diode; The positive electrode of the first light emitting diode is connected to a DC power supply, the negative electrode of the first light emitting diode is connected to a first end of the first resistor, and the second end of the first resistor is connected to an output end of the programmable logic controller; The positive electrode of the second light emitting diode is connected to a DC power supply, the negative electrode of the second light emitting diode is connected to a first end of the second resistor, and the second end of the second resistor is connected to an output end of the programmable logic controller; The positive electrode of the third light emitting diode is connected to a DC power supply, the negative electrode of the third light emitting diode is connected to a first end of the third resistor, and the second end of the third resistor is connected to an output end of the programmable logic controller.
8. The CAN optical fiber conversion device according to claim 1, characterized in that: The CAN optical fiber conversion device also includes: A power processing module, wherein the power processing module comprises a voltage stabilizer, wherein an input terminal and a ground terminal of the voltage stabilizer are connected to a positive electrode and a ground of an external power supply.
9. The CAN optical fiber conversion device according to claim 8, characterized in that: The power processing module also includes a varistor and a transient suppression diode; The two ends of the varistor are respectively connected to the input end and the ground end of the voltage stabilizer; The cathode and anode of the transient voltage suppression diode are connected to the input terminal and the ground terminal of the voltage regulator respectively.
10. A CAN optical fiber conversion system, characterized in that: The method comprises at least one CAN optical fiber conversion device according to any one of claims 1 to 9.
Citation Information
Cited By
Data transmission device
RU240487U1