An optical fiber communication switching system
By using the fiber optic transmission and reception modules of the fiber optic communication switching system, combined with the communication selection and judgment module, automatic switching between RS485 and RS2342 serial port channels was achieved, improving the anti-interference capability of data transmission and solving the problems of serial port mismatch and incompatibility.
Patent Information
- Application Number
- CN202211726815.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2026-11-06
- Estimated Expiration
- 2042-12-29
AI Technical Summary
Traditional data transmission suffers from problems such as long transmission distances, susceptibility to electromagnetic interference, poor stability, and serial port incompatibility, requiring manual switching.
An optical fiber communication switching system is adopted, including an optical fiber transmitting module, an optical fiber receiving module, a communication selection module, and a communication judgment module, to realize automatic switching between RS485 and RS2342 serial port channels. The optical fiber transmitting and receiving modules improve anti-interference capability and solve serial port mismatch and incompatibility problems.
It improves the anti-interference capability during data transmission, automatically switches serial port channels, and solves the problems of serial port mismatch and incompatibility.
Smart Images

Figure CN116015457B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical fiber communication technology, and in particular to an optical fiber communication switching system. Background Technology
[0002] Traditionally, data is usually transmitted using wire harnesses. However, using wire harnesses for data transmission has the problem of long communication signal transmission distances. In addition, the data communication signals are subject to many interference sources during transmission (such as being susceptible to electromagnetic interference), resulting in poor stability and anti-interference capabilities during data transmission. Furthermore, commonly used serial port channels on the market have serial port mismatch and incompatibility issues, requiring manual switching. Summary of the Invention
[0003] In view of this, the purpose of this application is to provide an optical fiber communication switching system that improves the anti-interference capability during data transmission, solves the problems of serial port mismatch and incompatibility, and realizes automatic switching.
[0004] This application provides an optical fiber communication switching system, which includes an optical fiber transmitting module, an optical fiber receiving module, a communication selection module, a communication judgment module, an RS485 serial port communication module, and an RS2342 serial port communication module.
[0005] The optical fiber transmitting module is connected to the optical fiber receiving module, the optical fiber receiving module is connected to the communication selection module, the communication selection module is connected to the communication judgment module, the RS485 serial port channel communication module, the RS2342 serial port channel communication module and the external communication device respectively, and the RS485 serial port channel communication module and the RS2342 serial port channel communication module are both connected to the external communication device.
[0006] The communication determination module is used to determine the target data channel type corresponding to the data based on the data acquisition request sent by the external communication device, and send the target data channel type to the communication selection module; wherein, the acquisition request includes a data channel type identifier;
[0007] The communication selection module is used to convert the fiber optic signal data into a format according to the target data channel type, generate target fiber optic signal data, and switch the target fiber optic signal data to the RS485 serial port channel communication module or the RS2342 serial port channel communication module.
[0008] Furthermore, the optical fiber transmitting module is used to receive optical fiber signal data transmitted by the optical fiber network in real time, and to transmit the optical fiber signal data to the optical fiber receiving module.
[0009] The optical fiber receiving module is used to receive optical fiber signal data in real time and send the optical fiber signal data to the communication selection module.
[0010] Furthermore, the communication selection module is specifically used to convert the fiber optic signal data into a format that corresponds to the level specification of the target data channel type in the acquisition request, thereby generating the target fiber optic signal data.
[0011] Furthermore, the RS485 serial communication module is used to convert the target optical fiber signal data into the RS485 serial communication format and send the converted target optical fiber signal data to an external communication device.
[0012] The RS2342 serial communication module is used to convert the target optical fiber signal data into the RS2342 serial communication format and send the converted target optical fiber signal data to an external communication device.
[0013] Furthermore, the optical fiber transmitting module and the optical fiber receiving module have the same circuit structure.
[0014] Furthermore, the optical fiber transmitting module or optical fiber receiving module includes an optical fiber transmitter G1, an optical fiber receiver G2, capacitors C1, C2, and C3, resistors R1, R2, R3, R4, R5, and R6, a diode D1, a logic controller U1, and an inverter N3.
[0015] The second and sixth pins of the fiber optic transmitter G1 are connected in parallel with the resistor R6 and the capacitor C1, respectively. The first pin of the fiber optic transmitter G1 is connected to an external +5V power supply. The sixth pin of the fiber optic transmitter G1 is connected to one end of the capacitor C3, and the other end of the capacitor C3 is grounded. The two ends of the capacitor C3 are connected in parallel with the resistor R5. The sixth pin of the fiber optic transmitter G1 is connected to the first pin of the inverter N3. The second pin of the inverter N3 is connected to the second pin of the logic controller U1. The ground terminal of the inverter N3 is grounded. The power supply terminals of the inverter N3 are connected to one end of the capacitor C2 and one end of the resistor R1, respectively. The other end of the capacitor C2 is grounded. The resistor R1 is connected to the first and sixth pins of the logic controller U1, respectively. The fourth pin of the logic controller U1 is grounded. The power supply terminal of the inverter N3 is connected to an external +5V power supply. A 5V external power supply is provided. The seventh pin of the logic controller U1 is connected to the data receiving end of the communication selection module. The power supply end of the logic controller U1 is connected to a +5V external power supply. The third pin of the logic controller U1 is connected to the anode of the diode D1, the data transmitting end of the communication selection module, and one end of the resistor R3. The fifth pin of the logic controller U1 is connected to one end of the resistor R4 and one end of the resistor R6. The cathode of the diode D1, the other end of the resistor R3, the other end of the resistor R4, and the other end of the resistor R6 are all connected to the +5V external power supply. The third and seventh pins of the fiber optic transmitter G1 are both connected to the third pin of the fiber optic receiver G2, and the third and seventh pins of the fiber optic transmitter G1 are grounded. The seventh, second, and sixth pins of the fiber optic receiver G2 are all connected to one end of the resistor R4.
[0016] Furthermore, the communication selection module includes transistor Q1, resistor R20, resistor R19, diode D3, and relay K1;
[0017] One end of resistor R20 is connected to the communication judgment module, and the other end of resistor R20 is connected to the base of transistor Q1. The collector of transistor Q1 is connected to one end of resistor R19, and the other end of resistor R19 is connected to the first pin of relay K1. The eighth pin of relay K1 is connected to the anode of diode D3. The cathode of diode D3 and the first pin of relay K1 are both connected to an external +15V power supply. The emitter of transistor Q1 is grounded. The data transmitting and receiving ends of relay K1 are both connected to the fiber optic transceiver module group. The fifth and fourth pins of relay K1 are both connected to the RS485 serial communication module. The seventh and second-fourth pins of relay K1 are both connected to the RS2342 serial communication module.
[0018] Furthermore, the RS2342 serial communication module includes a logic controller U2, capacitors C4, C5, C6, C7, and C8.
[0019] The first pin of the logic controller U2 is connected to one end of the capacitor C5, and the other end of the capacitor C5 is connected to the third pin of the logic controller U2. The second pin of the logic controller U2 is connected to one end of the capacitor C7. The other end of the capacitor C7 is connected to the fifteenth pin of the logic controller U2 and one end of the capacitor C4. The other end of the capacitor C4 is connected to the sixteenth pin of the logic controller U2 and the +5V external power supply. The other end of the capacitor C7 is grounded. The fourth pin of the logic controller U2 is connected to one end of the capacitor C6. The other end of the capacitor C6 is connected to the fifth pin of the logic controller U2. The sixth pin of the logic controller U2 is connected to one end of the capacitor C8. The other end of the capacitor C8 is connected to the other end of the capacitor C7. The fourteenth and thirteenth pins of the logic controller U2 are both connected to the communication selection module. The eleventh and twelfth pins of the logic controller U2 are both connected to the external communication device.
[0020] Furthermore, the RS485 serial communication module includes a logic controller U5, capacitors C9 and C10, resistors R7, R8, R9, R10, R11, R12, R13, R14, a time delay relay DT1, and a time delay relay DT2.
[0021] The first and second pins of the logic controller U5 are connected to the capacitor C9, and the first pin of the logic controller U5 is connected to a +5V external power supply. The second pin of the logic controller U5 is grounded. The third and sixth pins of the logic controller U5 are both connected to the communication selection module, and the third pin of the logic controller U5 is connected to a +5V external power supply through the resistor R8. The fourth and fifth pins of the logic controller U5 are connected in series with the resistor R13 and the resistor R12, and one end of the resistor R13 is connected to a +5V external power supply. The seventh pin of the logic controller U5 is connected to a +5V external power supply. The eighth pin of the logic controller U5 is grounded. The sixteenth and fifteenth pins of the logic controller U5 are connected to the capacitor C10, and the sixteenth pin of the logic controller U5 is connected to a +5V external power supply. The fifteenth pin of the logic controller U5 is grounded. The thirteenth pin of the logic controller U5 is connected to a +5V external power supply through resistors R7 and R9. The twelfth pin of the logic controller U5 is connected to a +5V external power supply through resistors R11 and R14. Resistor R10 is connected in parallel between resistors R14 and R7. The twelfth pin of the logic controller U5 is connected to one end of the time delay relay DT1. The thirteenth pin of the logic controller U5 is connected to one end of the time delay relay DT2. The other ends of both time delay relay DT1 and time delay relay DT2 are connected to the ninth pin of the logic controller U5, and the other ends of both time delay relay DT1 and time delay relay DT2 are grounded.
[0022] Furthermore, the communication judgment module includes resistors R15, R16, R17, and R18, inverter N2, diode D2, and switch S1.
[0023] The first and seventh pins of inverter N2 are both grounded. The second pin of inverter N2 is connected to the communication selection module through resistor R17. The third pin of inverter N2 is connected to the communication selection module through resistor R16. The eighth pin of inverter N2 is connected to one end of resistor R15 and an external +15V power supply. The seventh pin of inverter N2 is connected to one end of resistor R18, the other end of resistor R15, the anode of diode D2, and the communication selection module. The other end of resistor R18 is grounded. The cathode of diode D2 is connected to the normally open contact of switch S1 and one end of resistor R16. The normally closed contact of switch S1 is grounded.
[0024] Compared with existing fiber optic communication systems, the fiber optic communication switching system provided in this application, through a communication selection module and a communication judgment module, enables automatic switching between RS485 serial port channels and RS2342 serial port channels, and transmits data through a fiber optic transmitting module and a fiber optic receiving module. This not only improves the anti-interference capability during data transmission, but also solves the problems of serial port mismatch and incompatibility, thus achieving automatic switching.
[0025] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0026] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This paper shows a structural diagram of an optical fiber communication switching system provided in an embodiment of this application;
[0028] Figure 2 The diagram shows a circuit diagram of an optical fiber transmitting module or an optical fiber receiving module in an optical fiber communication switching system provided in an embodiment of this application.
[0029] Figure 3 The diagram shows a circuit diagram of a communication selection module in an optical fiber communication switching system provided in an embodiment of this application.
[0030] Figure 4 The circuit diagram of an RS2342 serial port channel communication module and an RS485 serial port channel communication module in an optical fiber communication switching system provided in this application embodiment is shown.
[0031] Figure 5 The circuit diagram of an RS485 serial port channel communication module in an optical fiber communication switching system provided in an embodiment of this application is shown.
[0032] Figure 6 The diagram shows a circuit diagram of a communication judgment module in an optical fiber communication switching system provided in an embodiment of this application.
[0033] In the picture:
[0034] 10 - Fiber optic communication switching system; 100 - Fiber optic transmitting module; 200 - Fiber optic receiving module; 300 - Communication selection module; 400 - Communication judgment module; 500 - RS485 serial port channel communication module; 600 - RS2342 serial port channel communication module. Detailed Implementation
[0035] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. Based on the embodiments of this application, every other embodiment obtained by those skilled in the art without inventive effort falls within the scope of protection of this application.
[0036] First, the applicable application scenarios of this application will be introduced. This application can be applied to the field of optical fiber communication technology.
[0037] Research has found that traditional data transmission usually uses wire harnesses. However, using wire harnesses for data transmission has the problem of long communication signal transmission distances. In addition, the data communication signals are subject to many interference sources during transmission (such as being susceptible to electromagnetic interference), resulting in poor stability and anti-interference ability during data transmission. Furthermore, the serial port channels commonly used in the market have serial port mismatch and incompatibility issues, requiring manual switching.
[0038] Based on this, the embodiments of this application provide an optical fiber communication switching system, which not only improves the anti-interference capability during data transmission, but also solves the problems of serial port mismatch and incompatibility, and realizes automatic switching.
[0039] Please see Figure 1 , Figure 1 This is a structural diagram of an optical fiber communication switching system provided in an embodiment of this application. Figure 1 As shown in the figure, the optical fiber communication switching system 10 provided in this application embodiment includes an optical fiber transmitting module 100, an optical fiber receiving module 200, a communication selection module 300, a communication judgment module 400, an RS485 serial port channel communication module 500, and an RS2342 serial port channel communication module 600.
[0040] The above-mentioned applications of using optical fiber to transmit data are very broad and can be selected according to different application scenarios. The embodiment provided in this application selects the application scenario of welding robot, specifically the optical fiber signal data of the welding process of welding robot.
[0041] Welding robots are industrial robots that perform welding (including cutting and spraying). According to the International Organization for Standardization (ISO) definition of industrial robots as standard welding robots, an industrial robot is a multi-purpose, reprogrammable, automated control manipulator with three or more programmable axes, used in industrial automation. To adapt to different applications, the mechanical interface of the last axis of a welding robot is usually a connecting flange, which can be used to attach different tools or end effectors. Welding robots are industrial robots with welding guns or welding (cutting) torches attached to the flange of the last axis, enabling them to perform welding, cutting, or thermal spraying.
[0042] Fiber optic communication offers advantages such as long transmission distance, high transmission speed, low loss, and strong anti-interference capabilities. Therefore, it is a superior solution for transmitting fiber optic signal data during the welding process.
[0043] The optical fiber transmitting module 100 is connected to the optical fiber receiving module 200, and the optical fiber receiving module 200 is connected to the communication selection module 300. The communication selection module 300 is connected to the communication judgment module 400, the RS485 serial port channel communication module 500, the RS2342 serial port channel communication module 600, and an external communication device. The RS485 serial port channel communication module 500 and the RS2342 serial port channel communication module 600 are both connected to an external communication device.
[0044] Here, the RS485 serial port channel and the RS2342 serial port channel use different transmission methods. The RS2342 serial port channel uses an unbalanced transmission method, also known as single-ended transmission; while the RS485 serial port channel uses a balanced transmission method, also known as differential transmission.
[0045] The RS2342 serial port transmit channel outputs a positive voltage of 5-15V and a negative voltage of -5-15V. When there is no data, the line operates at TTL. The receiver operates at 3-12V and -3-12V. It has poor common-mode rejection capability.
[0046] The positive voltage level between RS485 serial port channels is +2 to +6V, and the negative voltage level is -2 to -6V. Between receivers A and B, a voltage greater than +200mV is considered a positive logic level, and a voltage less than -200mV is considered a negative logic level.
[0047] The communication determination module 400 is used to determine the target data channel type corresponding to the data based on the data acquisition request sent by the external communication device, and send the target data channel type to the communication selection module 300; wherein, the acquisition request includes a data channel type identifier;
[0048] The communication selection module 300 is used to convert the optical fiber signal data into a format according to the target data channel type, generate target optical fiber signal data, and switch the target optical fiber signal data to the RS485 serial port channel communication module 500 or the RS2342 serial port channel communication module 600.
[0049] In the above, the optical fiber transmitting module 100 is used to receive optical fiber signal data transmitted by the optical fiber network in real time and send the optical fiber signal data to the optical fiber receiving module 200.
[0050] The optical fiber receiving module 200 is used to receive optical fiber signal data in real time and send the optical fiber signal data to the communication selection module 300.
[0051] In the above, the optical fiber transmitting module 100 and the optical fiber receiving module 200 have the same circuit structure, and the optical fiber signal data received in real time by the optical fiber transmitting module 100 and the optical fiber receiving module 200 are level signal data.
[0052] The communication judgment module 400 is used to receive an acquisition request for optical fiber signal data sent by an external communication device, and determine the target data channel type corresponding to the optical fiber signal data according to the acquisition request, and send the target data channel type to the communication selection module 300; wherein, the acquisition request includes a data channel type identifier.
[0053] The communication selection module 300 is used to convert the optical fiber signal data into a format according to the target data channel type, generate target optical fiber signal data, and switch the target optical fiber signal data to be sent to the RS485 serial port channel communication module 500 or the RS2342 serial port channel communication module 600.
[0054] In the above, the communication selection module 300 is specifically used to convert the optical fiber signal data into a format according to the level specification of the target data channel type corresponding to the acquisition request, and generate the target optical fiber signal data of the welding process.
[0055] Here, the level signal is defined as follows: +5V is equivalent to logic "1", and 0V is equivalent to logic "0" (when using binary to represent data).
[0056] The RS485 serial port communication module 500 is used to convert the target optical fiber signal data according to the RS485 serial port channel format, generate the corresponding RS485 serial port target optical fiber signal data for the welding process, and send the RS485 serial port target optical fiber signal data to an external communication device.
[0057] The RS2342 serial communication module 600 is used to convert the target optical fiber signal data according to the RS2342 serial channel format, generate the RS2342 serial target optical fiber signal data corresponding to the welding process, and send the RS2342 serial target optical fiber signal data to the external communication device.
[0058] Compared with existing fiber optic communication systems, the fiber optic communication switching system 10 provided in this application, through the communication selection module 300 and the communication judgment module 400, enables automatic switching between RS485 serial port channels and RS2342 serial port channels, and transmits data through the fiber optic transmitting module 100 and the fiber optic receiving module 200. While improving the data transmission process and anti-interference capabilities, it can also solve the problems of serial port mismatch and incompatibility, and realize automatic switching.
[0059] Please see Figure 2 , Figure 2 This is a circuit diagram of an optical fiber transmitting module 100 or an optical fiber receiving module 200 in an optical fiber communication switching system according to an embodiment of this application. Figure 2 As shown in the embodiments of this application, the optical fiber transmitting module 100 or the optical fiber receiving module 200 includes:
[0060] Compared with existing fiber optic communication systems, the fiber optic communication switching system 10 provided in this application, through the communication selection module 300 and the communication judgment module 400, enables automatic switching between RS485 serial port channels and RS2342 serial port channels, and transmits data through the fiber optic transmitting module 100 and the fiber optic receiving module 200. While improving the data transmission process and anti-interference capabilities, it can also solve the problems of serial port mismatch and incompatibility, and realize automatic switching.
[0061] Please see Figure 3 , Figure 3 This is a circuit diagram of a communication selection module 300 in an optical fiber communication switching system 10 provided in one embodiment of this application. Figure 3 As shown in the figure, the communication selection module 300 provided in this application embodiment includes a transistor Q1, a resistor R20, a resistor R19, a diode D3, and a relay K1.
[0062] One end of resistor R20 is connected to communication judgment module 400, and the other end of resistor R20 is connected to the base of transistor Q1. The collector of transistor Q1 is connected to one end of resistor R19, and the other end of resistor R19 is connected to the first pin of relay K1. The eighth pin of relay K1 is connected to the anode of diode D3. The cathode of diode D3 and the first pin of relay K1 are both connected to an external +15V power supply. The emitter of transistor Q1 is grounded. The data transmitting and receiving ends of relay K1 are both connected to the fiber optic transceiver module group. The fifth and fourth pins of relay K1 are both connected to RS485 serial communication module 500, and the seventh and second-fourth pins of relay K1 are both connected to RS2342 serial communication module 600.
[0063] In the above, relay K1 is used to switch the receiving end between RS2342 serial port channel and RS485 serial port channel.
[0064] Compared with existing fiber optic communication systems, the fiber optic communication switching system 10 provided in this application, through the communication selection module 300 and the communication judgment module 400, enables automatic switching between RS485 serial port channels and RS2342 serial port channels, and transmits data through the fiber optic transmitting module 100 and the fiber optic receiving module 200. While improving the data transmission process and anti-interference capabilities, it can also solve the problems of serial port mismatch and incompatibility, and realize automatic switching.
[0065] Please see Figure 4 , Figure 4 This is a circuit diagram of an RS2342 serial port channel communication module 600 in an optical fiber communication switching system provided in one embodiment of this application. Figure 4 As shown in the figure, the RS2342 serial communication module 600 provided in this application embodiment includes a logic controller U2, capacitors C4, C5, C6, C7 and C8.
[0066] The first pin of the logic controller U2 is connected to one end of the capacitor C5, and the other end of the capacitor C5 is connected to the third pin of the logic controller U2. The second pin of the logic controller U2 is connected to one end of the capacitor C7. The other end of the capacitor C7 is connected to the fifteenth pin of the logic controller U2 and one end of the capacitor C4. The other end of the capacitor C4 is connected to the sixteenth pin of the logic controller U2 and the +5V external power supply. The other end of the capacitor C7 is grounded. The fourth pin of the logic controller U2 is connected to one end of the capacitor C6. The other end of the capacitor C6 is connected to the fifth pin of the logic controller U2. The sixth pin of the logic controller U2 is connected to one end of the capacitor C8. The other end of the capacitor C8 is connected to the other end of the capacitor C7. The fourteenth and thirteenth pins of the logic controller U2 are both connected to the communication selection module 300. The eleventh and twelfth pins of the logic controller U2 are both connected to external communication devices.
[0067] In the above, the RS2342 serial communication module 600 is used to convert TTL level signals into RS232 serial communication signals.
[0068] Compared with existing fiber optic communication systems, the fiber optic communication switching system 10 provided in this application, through the communication selection module 300 and the communication judgment module 400, enables automatic switching between RS485 serial port channels and RS2342 serial port channels, and transmits data through the fiber optic transmitting module 100 and the fiber optic receiving module 200. While improving the data transmission process and anti-interference capabilities, it can also solve the problems of serial port mismatch and incompatibility, and realize automatic switching.
[0069] Please see Figure 5 , Figure 5 This application provides a circuit diagram of an RS485 serial port channel communication module 500 in an optical fiber communication switching system, as an embodiment of the present application. Figure 5 As shown in the embodiment of this application, a communication RS485 serial port channel communication module 500 logic controller U5, capacitor C9, capacitor C10, resistor R7, resistor R8, resistor R9, resistor R10, resistor R11, resistor R12, resistor R13, resistor R14, time delay relay DT1, and time delay relay DT2 are provided.
[0070] The first and second pins of the logic controller U5 are connected to the capacitor C9, and the first pin of the logic controller U5 is connected to a +5V external power supply. The second pin of the logic controller U5 is grounded. The third and sixth pins of the logic controller U5 are both connected to the communication selection module 300, and the third pin of the logic controller U5 is connected to a +5V external power supply through the resistor R8. The fourth and fifth pins of the logic controller U5 are connected in series with the resistor R13 and the resistor R12, and one end of the resistor R13 is connected to a +5V external power supply. The seventh pin of the logic controller U5 is connected to a +5V external power supply. The eighth pin of the logic controller U5 is grounded. The sixteenth and fifteenth pins of the logic controller U5 are connected to the capacitor C10, and the sixteenth pin of the logic controller U5 is connected to a +5V external power supply. The fifteenth pin of the logic controller U5 is grounded. The thirteenth pin of the logic controller U5 is connected to a +5V external power supply through resistors R7 and R9. The twelfth pin of the logic controller U5 is connected to a +5V external power supply through resistors R11 and R14. Resistor R10 is connected in parallel between resistors R14 and R7. The twelfth pin of the logic controller U5 is connected to one end of the time delay relay DT1. The thirteenth pin of the logic controller U5 is connected to one end of the time delay relay DT2. The other ends of both time delay relay DT1 and time delay relay DT2 are connected to the ninth pin of the logic controller U5, and the other ends of both time delay relay DT1 and time delay relay DT2 are grounded.
[0071] In the above, the RS485 serial communication module 500 is used to convert TTL level signals into RS485 serial communication signals.
[0072] Compared with existing fiber optic communication systems, the fiber optic communication switching system 10 provided in this application, through the communication selection module 300 and the communication judgment module 400, enables automatic switching between RS485 serial port channels and RS2342 serial port channels, and transmits data through the fiber optic transmitting module 100 and the fiber optic receiving module 200. While improving the data transmission process and anti-interference capabilities, it can also solve the problems of serial port mismatch and incompatibility, and realize automatic switching.
[0073] Please see Figure 6 , Figure 6 This is a circuit diagram of a communication judgment module 400 in an optical fiber communication switching system according to an embodiment of this application. Figure 6As shown in the figure, the communication judgment module 400 provided in this application embodiment includes resistors R15, R16, R17, and R18, inverter N2, diode D2, and switch S1.
[0074] The first and seventh pins of inverter N2 are both grounded. The second pin of inverter N2 is connected to the communication selection module 300 through resistor R17. The third pin of inverter N2 is connected to the communication selection module 300 through resistor R16. The eighth pin of inverter N2 is connected to one end of resistor R15 and an external +15V power supply. The seventh pin of inverter N2 is connected to one end of resistor R18, the other end of resistor R15, the anode of diode D2, and the communication selection module 300. The other end of resistor R18 is grounded. The cathode of diode D2 is connected to the normally open contact of switch S1 and one end of resistor R16. The normally closed contact of switch S1 is grounded.
[0075] In the above, the communication judgment module 400 is used to determine whether the received data needs to be converted into RS485 interface format or RS232 interface format, and automatically switches the corresponding serial port channel after the determination is completed.
[0076] In this embodiment, the RS232 logic "0" level is +5V to +15V. The RS485 logic "0" level is -6V to +6V. At this time, the communication judgment module 400 determines whether the receiving end is communicating via RS485 or RS232 serial port by judging the TX signal voltage. The communication judgment module 400 is equipped with a self-locking function to ensure that the selected serial port communication is always maintained. When the serial port communication changes, button S1 is used to reset.
[0077] Compared with existing fiber optic communication systems, the fiber optic communication switching system 10 provided in this application, through the communication selection module 300 and the communication judgment module 400, enables automatic switching between RS485 serial port channels and RS2342 serial port channels, and transmits data through the fiber optic transmitting module 100 and the fiber optic receiving module 200. While improving the data transmission process and anti-interference capabilities, it can also solve the problems of serial port mismatch and incompatibility, and realize automatic switching.
[0078] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0079] In the several embodiments provided in this application, it should be understood that the disclosed systems and devices can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0080] 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 units can be selected to achieve the purpose of this embodiment according to actual needs.
[0081] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0082] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion 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 device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. 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.
[0083] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The scope of protection of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application. Such modifications, changes, 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 this application, and should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A fiber optic communication switching system, characterized in that, The fiber optic communication switching system includes a fiber optic transmitting module, a fiber optic receiving module, a communication selection module, a communication judgment module, an RS485 serial port communication module, and an RS2342 serial port communication module. The optical fiber transmitting module is connected to the optical fiber receiving module, the optical fiber receiving module is connected to the communication selection module, the communication selection module is connected to the communication judgment module, the RS485 serial port channel communication module, the RS2342 serial port channel communication module and the external communication device respectively, and the RS485 serial port channel communication module and the RS2342 serial port channel communication module are both connected to the external communication device. The communication determination module is used to determine the target data channel type corresponding to the data based on the data acquisition request sent by the external communication device, and send the target data channel type to the communication selection module; wherein, the acquisition request includes a data channel type identifier; The communication judgment module is also used to determine whether the receiving end is communicating via RS485 serial port or RS232 serial port by judging the TX signal voltage. The communication selection module is used to convert the fiber optic signal data into a format according to the target data channel type, generate target fiber optic signal data, and switch the target fiber optic signal data to the RS485 serial port channel communication module or the RS2342 serial port channel communication module.
2. The fiber optic communication switching system according to claim 1, characterized in that, The optical fiber transmitting module is used to receive optical fiber signal data transmitted by the optical fiber network in real time, and to transmit the optical fiber signal data to the optical fiber receiving module. The optical fiber receiving module is used to receive optical fiber signal data in real time and send the optical fiber signal data to the communication selection module.
3. The fiber optic communication switching system according to claim 1, characterized in that, The communication selection module is specifically used to convert the fiber optic signal data into a format that corresponds to the level specification of the target data channel type of the acquisition request, thereby generating the target fiber optic signal data.
4. The fiber optic communication switching system according to claim 1, characterized in that, The RS485 serial communication module is used to convert the target optical fiber signal data into the RS485 serial communication format and send the converted target optical fiber signal data to an external communication device. The RS2342 serial communication module is used to convert the target optical fiber signal data into the RS2342 serial communication format and send the converted target optical fiber signal data to an external communication device.
5. The fiber optic communication switching system according to claim 1, characterized in that, The optical fiber transmitting module and the optical fiber receiving module have the same circuit structure.
6. The fiber optic communication switching system according to claim 1, characterized in that, The optical fiber transmitting module or optical fiber receiving module includes an optical fiber transmitter G1, an optical fiber receiver G2, capacitors C1, C2, and C3, resistors R1, R2, R3, R4, R5, and R6, a diode D1, a logic controller U1, and an inverter N3. The second and sixth pins of the fiber optic transmitter G1 are connected in parallel with the resistor R6 and the capacitor C1, respectively. The first pin of the fiber optic transmitter G1 is connected to an external +5V power supply. The sixth pin of the fiber optic transmitter G1 is connected to one end of the capacitor C3, and the other end of the capacitor C3 is grounded. The two ends of the capacitor C3 are connected in parallel with the resistor R5. The sixth pin of the fiber optic transmitter G1 is connected to the first pin of the inverter N3. The second pin of the inverter N3 is connected to the second pin of the logic controller U1. The ground terminal of the inverter N3 is grounded. The power supply terminals of the inverter N3 are connected to one end of the capacitor C2 and one end of the resistor R1, respectively. The other end of the capacitor C2 is grounded. The resistor R1 is connected to the first and sixth pins of the logic controller U1, respectively. The fourth pin of the logic controller U1 is grounded. The power supply terminal of the inverter N3 is connected to an external +5V power supply. A 5V external power supply is provided. The seventh pin of the logic controller U1 is connected to the data receiving end of the communication selection module. The power supply end of the logic controller U1 is connected to a +5V external power supply. The third pin of the logic controller U1 is connected to the anode of the diode D1, the data transmitting end of the communication selection module, and one end of the resistor R3. The fifth pin of the logic controller U1 is connected to one end of the resistor R4 and one end of the resistor R6. The cathode of the diode D1, the other end of the resistor R3, the other end of the resistor R4, and the other end of the resistor R6 are all connected to the +5V external power supply. The third and seventh pins of the fiber optic transmitter G1 are both connected to the third pin of the fiber optic receiver G2, and the third and seventh pins of the fiber optic transmitter G1 are grounded. The seventh, second, and sixth pins of the fiber optic receiver G2 are all connected to one end of the resistor R4.
7. The fiber optic communication switching system according to claim 1, characterized in that, The communication selection module includes transistor Q1, resistor R20, resistor R19, diode D3, and relay K1; One end of resistor R20 is connected to the communication judgment module, and the other end of resistor R20 is connected to the base of transistor Q1. The collector of transistor Q1 is connected to one end of resistor R19, and the other end of resistor R19 is connected to the first pin of relay K1. The eighth pin of relay K1 is connected to the anode of diode D3. The cathode of diode D3 and the first pin of relay K1 are both connected to an external +15V power supply. The emitter of transistor Q1 is grounded. The data transmitting and receiving ends of relay K1 are both connected to the fiber optic transceiver module group. The fifth and fourth pins of relay K1 are both connected to the RS485 serial communication module. The seventh and second-fourth pins of relay K1 are both connected to the RS2342 serial communication module.
8. The fiber optic communication switching system according to claim 7, characterized in that, The RS2342 serial communication module includes a logic controller U2, capacitors C4, C5, C6, C7, and C8. The first pin of the logic controller U2 is connected to one end of the capacitor C5, and the other end of the capacitor C5 is connected to the third pin of the logic controller U2. The second pin of the logic controller U2 is connected to one end of the capacitor C7. The other end of the capacitor C7 is connected to the fifteenth pin of the logic controller U2 and one end of the capacitor C4. The other end of the capacitor C4 is connected to the sixteenth pin of the logic controller U2 and the +5V external power supply. The other end of the capacitor C7 is grounded. The fourth pin of the logic controller U2 is connected to one end of the capacitor C6. The other end of the capacitor C6 is connected to the fifth pin of the logic controller U2. The sixth pin of the logic controller U2 is connected to one end of the capacitor C8. The other end of the capacitor C8 is connected to the other end of the capacitor C7. The fourteenth and thirteenth pins of the logic controller U2 are both connected to the communication selection module. The eleventh and twelfth pins of the logic controller U2 are both connected to the external communication device.
9. The fiber optic communication switching system according to claim 7, characterized in that, The RS485 serial communication module includes a logic controller U5, capacitors C9 and C10, resistors R7, R8, R9, R10, R11, R12, R13, R14, a time delay relay DT1, and a time delay relay DT2. A capacitor C9 is connected between the first and second pins of the logic controller U5. The first pin of the logic controller U5 is connected to a +5V external power supply. The second pin of the logic controller U5 is grounded. The third and sixth pins of the logic controller U5 are both connected to the communication selection module. The third pin of the logic controller U5 is connected to a +5V external power supply through a resistor R8. Resistors R13 and R12 are connected in series between the fourth and fifth pins of the logic controller U5, with one end of resistor R13 connected to a +5V external power supply. The seventh pin of the logic controller U5 is connected to a +5V external power supply. The eighth pin of the logic controller U5 is grounded. A capacitor C10 is connected between the sixteenth and fifteenth pins of the logic controller U5. The pins are connected to a +5V external power supply. The fifteenth pin of the logic controller U5 is grounded. The thirteenth pin of the logic controller U5 is connected to the +5V external power supply through resistors R7 and R9. The twelfth pin of the logic controller U5 is connected to the +5V external power supply through resistors R11 and R14. Resistor R10 is connected in parallel between resistors R14 and R7. The twelfth pin of the logic controller U5 is connected to one end of the time delay relay DT1. The thirteenth pin of the logic controller U5 is connected to one end of the time delay relay DT2. The other ends of the time delay relays DT1 and DT2 are both connected to the ninth pin of the logic controller U5, and the other ends of the time delay relays DT1 and DT2 are both grounded.
10. The fiber optic communication switching system according to claim 1, characterized in that, The communication judgment module includes resistors R15, R16, R17, and R18, inverter N2, diode D2, and switch S1. The first and seventh pins of inverter N2 are both grounded. The second pin of inverter N2 is connected to the communication selection module through resistor R17. The third pin of inverter N2 is connected to the communication selection module through resistor R16. The eighth pin of inverter N2 is connected to one end of resistor R15 and an external +15V power supply. The seventh pin of inverter N2 is connected to one end of resistor R18, the other end of resistor R15, the anode of diode D2, and the communication selection module. The other end of resistor R18 is grounded. The cathode of diode D2 is connected to the normally open contact of switch S1 and one end of resistor R16. The normally closed contact of switch S1 is grounded.
Citation Information
Patent Citations
Conversion unit between optical fiber and RS485 or RS232
CN203206249U
Serial port communication switching system
CN214896592U
