RJ45 control circuit and method of optical network conversion panel
By designing the RJ45 control circuit of the optical network conversion panel, using the STM32 microcontroller and the BCM54616 network processor chip, the problems of insufficient flexibility in network cable adaptation and single power supply mode of the traditional optical fiber access panel are solved, and flexible switching of network cable adaptation mode and stable power supply of the equipment are achieved.
Patent Information
- Application Number
- CN202510040504.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2045-01-10
AI Technical Summary
Traditional fiber access panels have poor flexibility in network cable adaptation and a single power supply mode.
An RJ45 control circuit of an optical network conversion panel is designed, including a monitoring circuit and a conversion circuit. The STM32 microcontroller and the BCM54616 network processor chip are used to realize the configuration and working status feedback of the optical transceiver chip parameters through serial port and SPI communication, and dynamically adjust the signal conversion and transmission.
It realizes flexible switching of network cable adaptation mode, supports single and dual network cable adaptation, and through reverse power supply mechanism and multi-component power supply optimization, the stable operation of the equipment under different power supply conditions is ensured.
Smart Images

Figure CN119814154A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of RJ45 interface, and in particular to an RJ45 control circuit and method of an optical network conversion panel. Background Art
[0002] With the rapid development of Internet technology, the scale and speed requirements of network data transmission are constantly rising. Fiber-optic communication, with its excellent high speed, large capacity, and low loss, has become a core element of modern network infrastructure construction. In many network application scenarios, whether it is massive data interaction in data centers, efficient information flow in corporate office environments, or high-speed broadband access to home networks, the popularity of fiber-optic networks is becoming increasingly widespread.
[0003] In the traditional fiber optic access panel technology solution, the mode of transferring the fiber optic signal to the network cable after conversion is relatively fixed. Most devices can only realize a single setting of the number of network cable transfers, that is, either only one network cable can be transferred, or only two network cables can be fixedly transferred. For example, in some scenarios where the network bandwidth demand is low and only a single terminal device needs to be connected, if a device that can only transfer two network cables is used, it will not only cause a waste of network cable resources, but also may introduce unnecessary signal interference and cost increase due to the existence of redundant lines; on the contrary, in some scenarios where the network bandwidth requirement is high and multiple devices need to be connected at the same time, if the device can only transfer one network cable, it cannot meet the data transmission needs, which seriously restricts the performance of the network and the normal development of the business. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides an RJ45 control circuit and method for an optical network conversion panel, which solves the technical problems of poor flexibility in network cable switching and a single power supply mode in traditional optical fiber access panels.
[0005] Technical Solution In order to achieve the above purpose, the present invention is implemented through the following technical solutions: The invention discloses an RJ45 control circuit of an optical network conversion panel, comprising a monitoring circuit and a conversion circuit, characterized in that: the monitoring circuit comprises an FTLX8571D3BCL optical transceiver chip and an STM32 microcontroller, the UART_TX pin of the FTLX8571D3BCL optical transceiver chip is connected to the PA9 pin of the STM32 microcontroller, the UART_RX pin is connected to the PA10 pin of the STM32 microcontroller, and the configuration of the optical transceiver chip parameters and the acquisition of its working state feedback information are realized through a serial communication connection to ensure the stable access and processing of optical fiber signals; the conversion circuit comprises a BCM54616 network processor chip, an H1102NL network transformer, and a first The invention relates to a common mode choke, a second common mode choke and at least one RJ45 interface, wherein the SPI_CLK, SPI_MISO and SPI_MOSI pins of the BCM54616 network processor chip are respectively connected to the PB13, PB14 and PB15 pins of the STM32 microcontroller, so as to receive configuration instructions and data interaction from the STM32 microcontroller; the FTLX8571D3BCL optical transceiver chip converts the received optical fiber optical signal into an electrical signal and transmits it to the BCM54616 network processor chip for data processing and protocol conversion, and the TXD0-TXD6 pins of the BCM54616 network processor chip are sequentially connected to the The primary winding pin 1 is connected to the primary winding pin 7, and the RXD0-RXD6 pins are connected to the secondary winding pin 8-primary winding pin 14 of the H1102NL network transformer in sequence; when a single network cable transfer is performed, in response to the single network cable transfer control signal issued by the STM32 microcontroller, the BCM54616 network processor chip selectively directs the processed signal to a group of lines connected to the RJ45 interface, and the TX+ pin and TX- pin on the RJ45 interface are respectively connected to the first pin and the third pin of the first common mode choke, the RX+ pin and the RX- pin are respectively connected to the first pin and the third pin of the second common mode choke, and the second and fourth pins of the first common mode choke are respectively connected to The secondary winding pin 10 and the secondary winding pin 13 on the H1102NL network transformer are connected, and the second and fourth pins of the second common mode choke are respectively connected to the secondary winding pin 11 and the secondary winding pin 12 on the H1102NL network transformer to convert the optical fiber signal into an electrical signal suitable for single network cable transmission and output it; when dual network cable switching is performed, in response to the dual network cable switching control signal issued by the STM32 microcontroller, the BCM54616 network processor chip guides the processed signal to two groups of lines connected to the RJ45 interface respectively, so that the two RJ45 interfaces can output the converted network signal, so as to realize the conversion of the optical fiber signal into an electrical signal suitable for transmission of two network cables and output it.
[0006] Preferably, a power supply circuit is provided with a rectifier bridge and a LM2596 conversion chip, the AC2 pin of the rectifier bridge is connected to the POE pin of the RJ45 interface, the rectifier bridge is used to convert the AC power from the POE pin of the RJ45 interface into DC power, the DC output terminal AC1 of the rectifier bridge is connected to the Vin pin of the LM2596 conversion chip, and the Vout pin of the LM2596 conversion chip is connected to the power distribution circuit input terminal of the optical network conversion panel.
[0007] Preferably, the monitoring circuit is also provided with an LM35 temperature sensor, a HIH-4000 humidity sensor and an AD8318 electromagnetic interference sensor, wherein the Vout pin of the LM35 temperature sensor is connected to the PA0 pin of the STM32 microcontroller, so as to transmit the collected temperature analog signal to the STM32 microcontroller; the OUT pin of the HIH-4000 humidity sensor is connected to the PA1 pin of the STM32 microcontroller, so as to transmit the humidity-related analog signal detected by the humidity sensor to the STM32 microcontroller; the AD8318 electromagnetic interference sensor is connected to the PA2 pin of the STM32 microcontroller through the OPA695 broadband amplifier to detect the electromagnetic interference signal strength around the optical network conversion panel, and after the signal is amplified by the OPA695 broadband amplifier, it is transmitted to the STM32 microcontroller, and the STM32 microcontroller determines the degree of electromagnetic interference based on the received signal.
[0008] Preferably, an optical signal strength monitoring circuit is also provided in the monitoring circuit, and an S120C optical power detector is provided in the optical signal strength monitoring circuit, the VCC pin of the S120C optical power detector is connected to a 5V power supply, the GND pin is grounded, and the OUT pin is connected to the PA3 pin of the STM32 microcontroller via a signal conditioning circuit.
[0009] Preferably, an OLED display screen, the VCC pin of the OLED display screen is connected to a 3.3V power supply, and the GND pin is grounded; the SCL pin is connected to the PB3 pin of the STM32 microcontroller, the SDA pin is connected to the PB5 pin of the STM32 microcontroller, and the reset pin RST of the display screen is connected to the PB4 pin of the STM32 microcontroller for initializing the display screen control.
[0010] Preferably, capacitors are connected in parallel on the connection lines between the TXD0-TXD6 pins of the BCM54616 network processor chip and the primary winding pins 1-7 of the H1102NL network transformer, and the negative electrodes of the capacitors are grounded.
[0011] Preferably, ESD protection diodes are connected in parallel on the connection lines between the RXD0-RXD6 pins of the BCM54616 network processor chip and the secondary winding pin 1-secondary winding pin 7 of the H1102NL network transformer, and the cathode of the ESD protection diode is grounded.
[0012] Preferably, a 0.1 μF capacitor C24 is added between the Vin pin of the LM2596 conversion chip and the ground near the chip, one end of the capacitor is connected to the Vin pin, and the other end is grounded for high-frequency decoupling, a precision resistor voltage divider is connected to the FB pin of the LM2596 conversion chip, the precision resistor voltage divider includes two series resistors, and one end of the precision resistor voltage divider is connected to the FB pin, and the other end is grounded, and the EN pin of the LM2596 conversion chip is connected to the PB6 pin of the STM32 microcontroller, and a Schottky diode and an inductor are connected in series between the Vout pin of the LM2596 conversion chip and the output end of the power distribution circuit, and a filtering network composed of multiple capacitors is connected in parallel.
[0013] Preferably, the photosensitive surface of the S120C optical power detector faces the optical output path or the optical fiber output port of the optical transceiver chip.
[0014] A RJ45 control method for an optical network conversion panel comprises the following steps: Startup and self-test phase: The STM32 microcontroller first executes the startup program to initialize and configure its internal registers, clocks, etc., and then sequentially detects whether the hardware connections with the FTlx8571D3BCL optical transceiver chip, BCM54616 network processor chip, LM2596 conversion chip, and various sensors (including LM35 temperature sensor, HIH-4000 humidity sensor, AD8318 electromagnetic interference sensor, S120C optical power detector) and OLED display are normal; if there is a connection failure, the corresponding error code or prompt message will be displayed on the OLED display; S2, data acquisition and environmental monitoring stage; the STM32 microcontroller simultaneously starts the data acquisition threads for multiple sensors; through the connection with the LM35 temperature sensor, the temperature analog signal is read according to the set sampling frequency and converted into a digital temperature value; the humidity analog signal from the HIH-4000 humidity sensor is processed in the same way to obtain the current environmental humidity information; for the AD8318 electromagnetic interference sensor, the electromagnetic interference signal amplified by the OPA695 broadband amplifier is continuously received, and the electromagnetic interference intensity is calculated by the internal algorithm; at the same time, the optical power signal of the S120C optical power detector processed by the signal conditioning circuit is periodically obtained to monitor the intensity of the optical signal; all the collected data are stored in the internal buffer area of the STM32 microcontroller for subsequent analysis and decision-making; S3, signal conversion and transmission decision stage; the STM32 microcontroller continuously monitors the working status feedback information from the FTlx8571D3BCL optical transceiver chip to determine whether there is fiber optic signal access and whether the signal quality is normal; if the fiber optic signal is normally accessed, the signal is processed according to the pre-set network connection mode; when single network cable transfer is required, the STM32 microcontroller sends a single network cable transfer control signal to the BCM54616 network processor chip, which selectively converts the processed signal through the common mode choke and H1102NL network transformer according to specific line guidance rules. Finally, the electrical signal suitable for single network cable transmission is output to the corresponding RJ45 interface; when dual network cable switching is required, the STM32 microcontroller sends a dual network cable switching control signal, and the BCM54616 network processor chip guides the processed signal to two groups of lines connected to the RJ45 interface respectively, so that both RJ45 interfaces can output the converted network signal; during the signal conversion and transmission process, the STM32 microcontroller will also dynamically adjust the working parameters of the BCM54616 network processor chip according to the collected environmental data and optical signal strength data to ensure that the signal can be transmitted stably and efficiently under different environmental conditions; S4, no power supply mode processing; the optical network conversion panel obtains power through the specific pins of the RJ45 interface and the reverse power supply mechanism between the terminal and the network cable; the STM32 microcontroller will configure each chip for low power consumption, adjust parameters such as the operating frequency and sampling frequency, and ensure that basic optical signal conversion and network transmission functions can be maintained in a low power state; at the same time, the user is informed that the no power supply mode is currently in use through the OLED display or other indication methods, and the power supply is monitored in real time; S5, information display and interaction stage; the STM32 microcontroller integrates and processes the collected information such as temperature, humidity, electromagnetic interference intensity, optical power and network connection status, and transmits the data to the OLED display screen through the I2C interface for display; so that users can intuitively understand the working status of the optical network conversion panel.
[0015] Beneficial effects: The present invention provides an RJ45 control circuit and method for an optical network conversion panel. Compared with the prior art, it has the following beneficial effects: 1. The STM32 microcontroller generates corresponding control signals according to the actual needs of the network, and transmits them to the BCM54616 network processor chip through a specific SPI pin connection; the latter processes and guides the signal based on this signal, combined with the precise line connection layout between itself and the H1102NL network transformer, common mode choke and RJ45 interface; when a single network cable transfer is required, the signal is accurately directed to the single line path; when a dual network cable transfer is required, the signal is reasonably allocated to the dual line channel, thereby realizing flexible switching of the network cable transfer mode.
[0016] 2. Rely on the coordination of multiple components such as the rectifier bridge, LM2596 conversion chip and STM32 microcontroller; the rectifier bridge connects the RJ45 interface POE pin and the LM2596 conversion chip, converts AC power into DC power and processes it through the chip, and configures decoupling capacitors, resistor dividers and other components on its pins to optimize the power supply performance; at the same time, when there is no external power supply, the RJ45 interface reverse power supply mechanism is used, and the STM32 microcontroller configures each chip for low power consumption and monitors power; in this way, a regular and emergency power supply system is built to get rid of the traditional single power supply dependence. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.
[0018] Figure 1 The diagram is the monitoring circuit diagram.
[0019] Figure 2 This is a schematic diagram of the conversion circuit.
[0020] Figure 3 This is a schematic diagram of the power supply circuit.
[0021] The reference numerals in the figure are: 1, conversion circuit; 2, power supply circuit. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention are clearly and completely described. 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.
[0023] The embodiment of the present application solves the problems of poor flexibility and single power supply mode of traditional fiber optic access panels in network cable switching by providing an RJ45 control circuit and method for an optical network conversion panel. When in use, the network cable switching can be flexibly switched between single and double network cables as required, and the power supply mode has stable protection both in normal and no-power conditions. The external power supply can provide stable power supply when normal, and reverse power supply and low-power configuration and monitoring can be used when there is no power, so as to ensure the continuous and effective operation of the equipment.
[0024] The technical solution in the embodiment of the present application is to solve the above technical problems, and the overall idea is as follows: In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0025] Reference Figure 1-Figure 3, an RJ45 control circuit of an optical network conversion panel, comprising a monitoring circuit and a conversion circuit 1, characterized in that: the monitoring circuit comprises an FTLX8571D3BCL optical transceiver chip and an STM32 microcontroller, the UART_TX pin of the FTLX8571D3BCL optical transceiver chip is connected to the PA9 pin of the STM32 microcontroller, the UART_RX pin is connected to the PA10 pin of the STM32 microcontroller, and the configuration of the optical transceiver chip parameters and the acquisition of its working status feedback information are realized through a serial communication connection to ensure stable access and processing of optical fiber signals; the conversion circuit 1 comprises a BCM54616 network processor chip, an H1102NL network The present invention relates to a transformer, a first common-mode choke, a second common-mode choke and at least one RJ45 interface, wherein the SPI_CLK, SPI_MISO and SPI_MOSI pins of the BCM54616 network processor chip are respectively connected to the PB13, PB14 and PB15 pins of the STM32 microcontroller, so as to receive configuration instructions and data interaction from the STM32 microcontroller; the FTLX8571D3BCL optical transceiver chip converts the received optical fiber optical signal into an electrical signal and transmits it to the BCM54616 network processor chip for data processing and protocol conversion, and the TXD0-TXD6 pins of the BCM54616 network processor chip are sequentially connected to the H1102NL network transformer The primary winding pin 1-primary winding pin 7 of the transformer is connected, and the RXD0-RXD6 pins are connected to the secondary winding pin 8-primary winding pin 14 of the H1102NL network transformer in sequence; when single network cable transfer is performed, in response to the single network cable transfer control signal issued by the STM32 microcontroller, the BCM54616 network processor chip selectively guides the processed signal to a group of lines connected to the RJ45 interface, and the TX+ pin and TX- pin on the RJ45 interface are respectively connected to the first pin and the third pin of the first common mode choke, and the RX+ pin and RX- pin are respectively connected to the first pin and the third pin of the second common mode choke, and the second and fourth pins of the first common mode choke are respectively connected. They are respectively connected to the secondary winding pin 10 and the secondary winding pin 13 on the H1102NL network transformer, and the second and fourth pins of the second common-mode choke are respectively connected to the secondary winding pin 11 and the secondary winding pin 12 on the H1102NL network transformer, so as to convert the optical fiber signal into an electrical signal suitable for single network cable transmission and output it; when dual network cable switching is performed, in response to the dual network cable switching control signal issued by the STM32 microcontroller, the BCM54616 network processor chip guides the processed signal to two groups of lines connected to the RJ45 interface respectively, so that the two RJ45 interfaces can output the converted network signal, so as to realize the conversion of the optical fiber signal into an electrical signal suitable for transmission of two network cables and output it.
[0026] The FTLX8571D3BCL optical transceiver chip is connected to the STM32 microcontroller through a serial port to achieve accurate parameter configuration and real-time working status monitoring of the optical transceiver chip, ensuring stable access and preliminary processing of optical fiber signals; the SPI connection between the BCM54616 network processor chip and the STM32 microcontroller realizes the flexible instruction transmission and data interaction between the STM32 microcontroller and the network processor chip, which is convenient for fine-tuning the conversion process; and the connection architecture of each chip and interface in the conversion circuit 1 is even more critical. When a single network cable is switched, the processed optical fiber electrical signal can be accurately directed to a group of RJ45 interface lines according to the STM32 microcontroller signal, and converted into an electrical signal output suitable for single network cable transmission. When dual network cables are switched, the control signal is responded to and directed to two groups of RJ45 interface lines respectively, and converted into a signal output suitable for dual network cable transmission. This flexibly meets the needs of different network connection scenarios and effectively improves the adaptability and efficiency of network switching.
[0027] A power supply circuit 2, wherein a rectifier bridge and an LM2596 conversion chip are provided in the power supply circuit 2, wherein the AC2 pin of the rectifier bridge is connected to the POE pin of the RJ45 interface, and the rectifier bridge is used to convert the alternating current from the POE pin of the RJ45 interface into direct current, and the DC output terminal AC1 of the rectifier bridge is connected to the Vin pin of the LM2596 conversion chip, and the Vout pin of the LM2596 conversion chip is connected to the power distribution circuit input terminal of the optical network conversion panel.
[0028] The connection between the rectifier bridge, the RJ45 interface POE pin and the LM2596 conversion chip realizes the efficient conversion of the AC power from the RJ45 interface into DC power, and further processes it into a stable power supply for various components of the optical network conversion panel, which effectively guarantees the stability and reliability of the power supply of the entire equipment, enabling it to continue to operate stably under normal external power access conditions.
[0029] The monitoring circuit is also provided with an LM35 temperature sensor, a HIH-4000 humidity sensor and an AD8318 electromagnetic interference sensor, wherein the Vout pin of the LM35 temperature sensor is connected to the PA0 pin of the STM32 microcontroller, so as to transmit the collected temperature analog signal to the STM32 microcontroller; the OUT pin of the HIH-4000 humidity sensor is connected to the PA1 pin of the STM32 microcontroller, so as to transmit the humidity-related analog signal detected by the humidity sensor to the STM32 microcontroller; the AD8318 electromagnetic interference sensor is connected to the PA2 pin of the STM32 microcontroller through the OPA695 broadband amplifier to detect the electromagnetic interference signal strength around the optical network conversion panel, and after the signal is amplified by the OPA695 broadband amplifier, it is transmitted to the STM32 microcontroller, and the STM32 microcontroller determines the degree of electromagnetic interference based on the received signal.
[0030] The LM35 temperature sensor is connected to the STM32 microcontroller to accurately monitor the working environment temperature of the equipment. It transmits the temperature analog signal to the STM32 microcontroller in a timely manner, so that the system can be optimized and adjusted or protective measures can be implemented according to temperature changes, ensuring that the equipment can operate stably in a suitable temperature environment and reduce the risk of failure; the HIH-4000 humidity sensor is connected to the STM32 microcontroller to effectively detect the ambient humidity and transmit humidity-related analog signals, so that the system can grasp the humidity conditions in real time, prevent electrical performance degradation or signal transmission problems caused by high humidity, and ensure that the equipment works normally in different humidity environments; the AD8318 electromagnetic interference sensor is connected to the STM32 microcontroller with the help of the OPA695 broadband amplifier to achieve sensitive detection, amplification and transmission of the surrounding electromagnetic interference signal strength, so that the STM32 microcontroller can accurately judge the degree of electromagnetic interference based on this, and then take measures such as adjusting signal transmission parameters to ensure stable signal transmission in complex electromagnetic environments and enhance the anti-interference ability of the equipment.
[0031] The monitoring circuit is also provided with an optical signal strength monitoring circuit, and the optical signal strength monitoring circuit is provided with an S120C optical power detector. The VCC pin of the S120C optical power detector is connected to a 5V power supply, the GND pin is grounded, and the OUT pin is connected to the PA3 pin of the STM32 microcontroller through a signal conditioning circuit.
[0032] The connection between the S120C optical power detector and the STM32 microcontroller through the signal conditioning circuit realizes the precise monitoring and data transmission of the optical signal intensity, enabling the system to grasp the intensity dynamics of the optical signal in real time, so as to promptly detect optical signal anomalies and take corrective measures, thereby ensuring the stability and reliability of optical signal transmission during the optical network conversion process and ensuring the quality of data transmission.
[0033] An OLED display screen, wherein a VCC pin of the OLED display screen is connected to a 3.3V power supply, a GND pin is grounded; an SCL pin is connected to a PB3 pin of an STM32 microcontroller, an SDA pin is connected to a PB5 pin of the STM32 microcontroller, and a reset pin RST of the display screen is connected to a PB4 pin of the STM32 microcontroller for initializing display screen control.
[0034] The multi-pin connection between the OLED display and the STM32 microcontroller enables the STM32 microcontroller to effectively control and initialize the OLED display, and can intuitively display various working status information of the device, such as temperature, humidity, electromagnetic interference, optical power, and network connection status, on the display, greatly improving the visualization and user interactivity of the device, making it convenient for users to understand the operation details of the device at any time.
[0035] Capacitors are connected in parallel on the connection lines between the TXD0-TXD6 pins of the BCM54616 network processor chip and the primary winding pin 1-primary winding pin 7 of the H1102NL network transformer, and the negative pole of the capacitor is grounded.
[0036] The capacitors on the line connecting the TXD0-TXD6 pins of the BCM54616 network processor chip and the H1102NL network transformer achieve high-frequency filtering of the transmission signal, effectively filter out high-frequency clutter interference, significantly improve the purity and accuracy of signal transmission, ensure stable and reliable data transmission on the line, and improve the quality of network data processing and transmission.
[0037] ESD protection diodes are connected in parallel on the connection lines between the RXD0-RXD6 pins of the BCM54616 network processor chip and the secondary winding pin 1-secondary winding pin 7 of the H1102NL network transformer, and the cathode of the ESD protection diode is grounded.
[0038] The ESD protection diodes on the connection line between the RXD0-RXD6 pins of the BCM54616 network processor chip and the H1102NL network transformer realize the electrostatic protection function of the line, effectively preventing damage to the chip and line caused by electrostatic discharge, greatly enhancing the anti-static ability of the circuit, improving the reliability and stability of the equipment in an environment prone to static electricity, and reducing the probability of equipment failure due to static electricity problems.
[0039] A 0.1 μF capacitor C24 is added between the Vin pin of the LM2596 conversion chip and the ground near the chip, one end of the capacitor is connected to the Vin pin, and the other end is grounded for high-frequency decoupling. A precision resistor voltage divider is connected to the FB pin of the LM2596 conversion chip, and the precision resistor voltage divider includes two series resistors, and one end of the precision resistor voltage divider is connected to the FB pin, and the other end is grounded. The EN pin of the LM2596 conversion chip is connected to the PB6 pin of the STM32 microcontroller, and a Schottky diode and an inductor are connected in series between the Vout pin of the LM2596 conversion chip and the output end of the power distribution circuit, and a filtering network composed of multiple capacitors is connected in parallel.
[0040] The LM2596 conversion chip plays a key role in the entire power management system. The 0.1μF capacitor C24 between its Vin pin and ground effectively realizes high-frequency decoupling of the input power supply, successfully filters out high-frequency noise, and makes the power supply of the input chip pure and stable, ensuring the stable operation of the chip and avoiding abnormalities or performance fluctuations caused by high-frequency noise; the precision resistor divider on the FB pin can realize accurate voltage division and feedback adjustment of the output voltage, ensuring that the chip stably outputs the required voltage according to the set resistance ratio, improving the accuracy and stability of the power supply voltage, meeting the strict requirements of different components of the optical network conversion panel for the power supply voltage, and ensuring the normal operation of each component; the EN pin and the STM32 microcontroller The controller is connected to the STM32 microcontroller, which enables the STM32 microcontroller to control it. The power chip can be flexibly turned on or off according to the overall working status of the equipment, realizing intelligent power management, optimizing power consumption and improving energy utilization efficiency; the Schottky diode between the Vout pin and the power distribution circuit realizes unidirectional conduction and protection of the power output to prevent reverse current from damaging the circuit, and the filter network composed of the inductor and multiple capacitors further filters and stabilizes the output power supply, effectively reducing power ripple, providing stable and pure DC power for the components of the optical network conversion panel under various complex working conditions, ensuring stable and reliable operation of the equipment.
[0041] The photosensitive surface of the S120C optical power detector faces the optical output path of the optical transceiver chip or the optical fiber output port.
[0042] The specific position setting of the photosensitive surface of the S120C optical power detector realizes high-precision monitoring of the optical signal intensity. Since it is facing the optical output path of the optical transceiver chip or the optical fiber output port, it can receive optical signals to the greatest extent, significantly improving the accuracy and reliability of optical signal intensity detection, providing a strong guarantee for the system to effectively monitor and process optical signals, and ensuring the quality and stability of optical signal transmission.
[0043] A RJ45 control method for an optical network conversion panel comprises the following steps: S1, startup and self-test stage; the STM32 microcontroller first executes the startup program to initialize and configure its internal registers, clocks, etc., and then successively detects whether the hardware connections with the FTlx8571D3BCL optical transceiver chip, BCM54616 network processor chip, LM2596 conversion chip, and various sensors (including LM35 temperature sensor, HIH-4000 humidity sensor, AD8318 electromagnetic interference sensor, S120C optical power detector) and OLED display are normal; if there is a connection failure, the corresponding error code or prompt information will be displayed on the OLED display; S2, data acquisition and environmental monitoring stage; the STM32 microcontroller simultaneously starts the data acquisition threads for multiple sensors; through the connection with the LM35 temperature sensor, the temperature analog signal is read according to the set sampling frequency and converted into a digital temperature value; the humidity analog signal from the HIH-4000 humidity sensor is processed in the same way to obtain the current environmental humidity information; for the AD8318 electromagnetic interference sensor, the electromagnetic interference signal amplified by the OPA695 broadband amplifier is continuously received, and the electromagnetic interference intensity is calculated by the internal algorithm; at the same time, the optical power signal of the S120C optical power detector processed by the signal conditioning circuit is periodically obtained to monitor the intensity of the optical signal; all the collected data are stored in the internal buffer area of the STM32 microcontroller for subsequent analysis and decision-making; S3, signal conversion and transmission decision stage; the STM32 microcontroller continuously monitors the working status feedback information from the FTlx8571D3BCL optical transceiver chip to determine whether there is fiber optic signal access and whether the signal quality is normal; if the fiber optic signal is normally accessed, the signal is processed according to the pre-set network connection mode; when single network cable transfer is required, the STM32 microcontroller sends a single network cable transfer control signal to the BCM54616 network processor chip, which selectively converts the processed signal through the common mode choke and H1102NL network transformer according to specific line guidance rules. Finally, the electrical signal suitable for single network cable transmission is output to the corresponding RJ45 interface; when dual network cable switching is required, the STM32 microcontroller sends a dual network cable switching control signal, and the BCM54616 network processor chip guides the processed signal to two groups of lines connected to the RJ45 interface respectively, so that both RJ45 interfaces can output the converted network signal; during the signal conversion and transmission process, the STM32 microcontroller will also dynamically adjust the working parameters of the BCM54616 network processor chip according to the collected environmental data and optical signal strength data to ensure that the signal can be transmitted stably and efficiently under different environmental conditions; S4, no power supply mode processing; the optical network conversion panel obtains power through the specific pins of the RJ45 interface and the reverse power supply mechanism between the terminal and the network cable; the STM32 microcontroller will configure each chip for low power consumption, adjust parameters such as the operating frequency and sampling frequency, and ensure that basic optical signal conversion and network transmission functions can be maintained in a low power state; at the same time, the user is informed that the no power supply mode is currently in use through the OLED display or other indication methods, and the power supply is monitored in real time; S5, information display and interaction stage; the STM32 microcontroller integrates and processes the collected information such as temperature, humidity, electromagnetic interference intensity, optical power and network connection status, and transmits the data to the OLED display screen through the I2C interface for display; so that users can intuitively understand the working status of the optical network conversion panel.
[0044] During use, after the system is powered on, the STM32 microcontroller first executes the startup program to initialize and configure its internal registers, clocks, etc., and then detects the hardware connection status with the FTLX8571D3BCL optical transceiver chip, BCM54616 network processor chip, LM2596 conversion chip, LM35 temperature sensor, HIH-4000 humidity sensor, AD8318 electromagnetic interference sensor, S120C optical power detector and OLED display screen in turn. If the connection is normal, an initialization instruction is sent to each chip and sensor to put it into a ready state. If there is a connection failure, the corresponding error code or prompt message is displayed on the OLED display screen. Then, the STM32 microcontroller simultaneously starts multiple data acquisition threads, reads the temperature analog signal of the LM35 temperature sensor according to the set sampling frequency and converts it into a digital temperature value, performs the same processing on the humidity analog signal from the HIH-4000 humidity sensor to obtain humidity information, continuously receives the AD8318 electromagnetic interference sensor signal amplified by the OPA695 broadband amplifier and calculates the electromagnetic interference intensity through the internal algorithm, and regularly obtains the optical power signal of the S120C optical power detector after being processed by the signal conditioning circuit, and stores all the collected data in the internal buffer area. At the same time, the STM32 microcontroller continuously monitors the working status feedback information of the FTLX8571D3BCL optical transceiver chip to determine whether there is optical fiber signal access and whether the signal quality is normal.When the optical fiber signal is normally connected, if single network cable transfer is required, the STM32 microcontroller sends a single network cable transfer control signal to the BCM54616 network processor chip. The BCM54616 network processor chip converts the processed signal according to specific line guidance rules through the common mode choke and H1102NL network transformer, and finally outputs the electrical signal suitable for single network cable transmission to the corresponding RJ45 interface; if dual network cable transfer is required, the STM32 microcontroller sends a dual network cable transfer control signal, and the BCM54616 network processor chip guides the processed signal to two groups of lines connected to the RJ45 interface respectively, so that both RJ45 interfaces can output the converted network signal, and in the process of signal conversion and transmission, the STM32 microcontroller will dynamically adjust the BCM5 according to the collected environmental data and optical signal strength data. The working parameters of the 4616 network processor chip, such as transmission rate and signal gain, are used to ensure that the signal can be transmitted stably and efficiently under different environmental conditions; the optical network conversion panel uses the specific pins of the RJ45 interface and the reverse power supply mechanism between the terminal and the network cable to obtain power. The STM32 microcontroller configures each chip for low power consumption and adjusts parameters such as the operating frequency and sampling frequency to ensure that basic optical signal conversion and network transmission functions can be maintained under low power consumption; finally, the STM32 microcontroller integrates and processes the collected information such as temperature, humidity, electromagnetic interference intensity, optical power, and network connection status, and transmits the data to the OLED display screen through the SPI interface for display. The display content covers real-time environmental parameter values, optical signal strength curves, network connection modes, and status indicators, so that users can intuitively understand the working conditions of the optical network conversion panel.
Claims
1. An RJ45 control circuit of an optical network conversion panel, comprising a monitoring circuit and a conversion circuit (1), characterized in that: The monitoring circuit comprises a FTLX8571D3BCL optical transceiver chip and an STM32 microcontroller, wherein the UART_TX pin of the FTLX8571D3BCL optical transceiver chip is connected to the PA9 pin of the STM32 microcontroller, and the UART_RX pin is connected to the PA10 pin of the STM32 microcontroller, and the configuration of the optical transceiver chip parameters and the acquisition of its working status feedback information are realized through a serial communication connection to ensure stable access and processing of optical fiber signals; The conversion circuit (1) comprises a BCM54616 network processor chip, an H1102NL network transformer, a first common mode choke, a second common mode choke and at least one RJ45 interface, wherein the SPI_CLK, SPI_MISO and SPI_MOSI pins of the BCM54616 network processor chip are respectively connected to the PB13, PB14 and PB15 pins of the STM32 microcontroller, and are used to receive configuration instructions and data interaction from the STM32 microcontroller; the FTLX8571D3BCL optical transceiver chip converts the received optical fiber optical signal into an electrical signal and transmits it to the BCM54616 network processor chip for data processing and protocol conversion; the TXD0-TXD6 pins of the BCM54616 network processor chip are sequentially connected to the primary winding pin 1-primary winding pin 7 of the H1102NL network transformer, and the RXD0-RXD6 pins are sequentially connected to the secondary winding pin 8-primary winding pin 14 of the H1102NL network transformer; When performing single network cable transfer, in response to the single network cable transfer control signal sent by the STM32 microcontroller, the BCM54616 network processor chip selectively directs the processed signal to a group of lines connected to the RJ45 interface, the TX+ pin and TX- pin on the RJ45 interface are respectively connected to the first pin and the third pin of the first common mode choke, the RX+ pin and the RX- pin are respectively connected to the first pin and the third pin of the second common mode choke, the second and fourth pins of the first common mode choke are respectively connected to the secondary winding pin 10 and the secondary winding pin 13 on the H1102NL network transformer, and the second and fourth pins of the second common mode choke are respectively connected to the secondary winding pin 11 and the secondary winding pin 12 on the H1102NL network transformer, so as to convert the optical fiber signal into an electrical signal suitable for single network cable transmission and output it; When dual network cable switching is performed, in response to the dual network cable switching control signal sent by the STM32 microcontroller, the BCM54616 network processor chip directs the processed signals to two groups of lines connected to the RJ45 interface respectively, so that both RJ45 interfaces can output the converted network signals, thereby realizing the conversion of optical fiber signals into electrical signals suitable for transmission through two network cables and outputting them respectively.
2. The RJ45 control circuit of an optical network conversion panel according to claim 1, characterized in that: Also includes: A power supply circuit (2), wherein a rectifier bridge and an LM2596 conversion chip are provided in the power supply circuit (2), the AC2 pin of the rectifier bridge is connected to the POE pin of the RJ45 interface, the rectifier bridge is used to convert the alternating current from the POE pin of the RJ45 interface into direct current, the DC output terminal AC1 of the rectifier bridge is connected to the Vin pin of the LM2596 conversion chip, and the Vout pin of the LM2596 conversion chip is connected to the input terminal of the power distribution circuit of the optical network conversion panel.
3. The RJ45 control circuit of an optical network conversion panel according to claim 1, characterized in that: The monitoring circuit is also provided with an LM35 temperature sensor, a HIH-4000 humidity sensor and an AD8318 electromagnetic interference sensor, wherein the Vout pin of the LM35 temperature sensor is connected to the PA0 pin of the STM32 microcontroller, so as to transmit the collected temperature analog signal to the STM32 microcontroller; the OUT pin of the HIH-4000 humidity sensor is connected to the PA1 pin of the STM32 microcontroller, so as to transmit the humidity-related analog signal detected by the humidity sensor to the STM32 microcontroller; the AD8318 electromagnetic interference sensor is connected to the PA2 pin of the STM32 microcontroller through the OPA695 broadband amplifier to detect the electromagnetic interference signal strength around the optical network conversion panel, and after the signal is amplified by the OPA695 broadband amplifier, it is transmitted to the STM32 microcontroller, and the STM32 microcontroller determines the degree of electromagnetic interference based on the received signal.
4. The RJ45 control circuit of an optical network conversion panel according to claim 1, characterized in that: The monitoring circuit is also provided with an optical signal strength monitoring circuit, and the optical signal strength monitoring circuit is provided with an S120C optical power detector. The VCC pin of the S120C optical power detector is connected to a 5V power supply, the GND pin is grounded, and the OUT pin is connected to the PA3 pin of the STM32 microcontroller through a signal conditioning circuit.
5. The RJ45 control circuit of an optical network conversion panel according to claim 1, characterized in that: Also includes: An OLED display screen, wherein a VCC pin of the OLED display screen is connected to a 3.3V power supply, a GND pin is grounded; an SCL pin is connected to a PB3 pin of an STM32 microcontroller, an SDA pin is connected to a PB5 pin of the STM32 microcontroller, and a reset pin RST of the display screen is connected to a PB4 pin of the STM32 microcontroller for initializing display screen control.
6. The RJ45 control circuit of an optical network conversion panel according to claim 1, characterized in that: Capacitors are connected in parallel on the connection lines between the TXD0-TXD6 pins of the BCM54616 network processor chip and the primary winding pin 1-primary winding pin 7 of the H1102NL network transformer, and the negative pole of the capacitor is grounded.
7. The RJ45 control circuit of an optical network conversion panel according to claim 1, characterized in that: ESD protection diodes are connected in parallel on the connection lines between the RXD0-RXD6 pins of the BCM54616 network processor chip and the secondary winding pin 1-secondary winding pin 7 of the H1102NL network transformer, and the cathode of the ESD protection diode is grounded.
8. The RJ45 control circuit of an optical network conversion panel according to claim 2, characterized in that: A 0.1 μF capacitor C24 is added between the Vin pin of the LM2596 conversion chip and the ground near the chip, one end of the capacitor is connected to the Vin pin, and the other end is grounded for high-frequency decoupling. A precision resistor voltage divider is connected to the FB pin of the LM2596 conversion chip, and the precision resistor voltage divider includes two series resistors, and one end of the precision resistor voltage divider is connected to the FB pin, and the other end is grounded. The EN pin of the LM2596 conversion chip is connected to the PB6 pin of the STM32 microcontroller, and a Schottky diode and an inductor are connected in series between the Vout pin of the LM2596 conversion chip and the output end of the power distribution circuit, and a filtering network composed of multiple capacitors is connected in parallel.
9. The RJ45 control circuit of an optical network conversion panel according to claim 4, characterized in that: The photosensitive surface of the S120C optical power detector faces the optical output path of the optical transceiver chip or the optical fiber output port.
10. A RJ45 control method for an optical network conversion panel, comprising the following steps: S1, startup and self-test stage; the STM32 microcontroller first executes the startup program to initialize and configure its internal registers, clocks, etc., and then successively detects whether the hardware connections with the FTlx8571D3BCL optical transceiver chip, BCM54616 network processor chip, LM2596 conversion chip, and various sensors (including LM35 temperature sensor, HIH-4000 humidity sensor, AD8318 electromagnetic interference sensor, S120C optical power detector) and OLED display are normal; if there is a connection failure, the corresponding error code or prompt information will be displayed on the OLED display; S2, data acquisition and environmental monitoring stage; the STM32 microcontroller simultaneously starts the data acquisition threads for multiple sensors; through the connection with the LM35 temperature sensor, the temperature analog signal is read according to the set sampling frequency and converted into a digital temperature value; the humidity analog signal from the HIH-4000 humidity sensor is processed in the same way to obtain the current environmental humidity information; for the AD8318 electromagnetic interference sensor, the electromagnetic interference signal amplified by the OPA695 broadband amplifier is continuously received, and the electromagnetic interference intensity is calculated by the internal algorithm; at the same time, the optical power signal of the S120C optical power detector processed by the signal conditioning circuit is periodically obtained to monitor the intensity of the optical signal; all the collected data are stored in the internal buffer area of the STM32 microcontroller for subsequent analysis and decision-making; S3, signal conversion and transmission decision stage; the STM32 microcontroller continuously monitors the working status feedback information from the FTlx8571D3BCL optical transceiver chip to determine whether there is optical fiber signal access and whether the signal quality is normal; If the optical fiber signal is normally connected, the signal is processed according to the pre-set network connection mode; when single network cable transfer is required, the STM32 microcontroller sends a single network cable transfer control signal to the BCM54616 network processor chip, which converts the processed signal selectively through the common mode choke and the H1102NL network transformer according to specific line guidance rules, and finally outputs the electrical signal suitable for single network cable transmission to the corresponding RJ45 interface; when dual network cable transfer is required, the STM32 microcontroller sends a dual network cable transfer control signal, and the BCM54616 network processor chip guides the processed signal to two groups of lines connected to the RJ45 interface respectively, so that both RJ45 interfaces can output the converted network signal; during the signal conversion and transmission process, the STM32 microcontroller will also dynamically adjust the working parameters of the BCM54616 network processor chip according to the collected environmental data and optical signal strength data to ensure that the signal can be transmitted stably and efficiently under different environmental conditions; S4, no power supply mode processing; the optical network conversion panel obtains power through the specific pins of the RJ45 interface and the reverse power supply mechanism between the terminal and the network cable; the STM32 microcontroller will configure each chip for low power consumption, adjust parameters such as the operating frequency and sampling frequency, and ensure that basic optical signal conversion and network transmission functions can be maintained in a low power state; at the same time, the user is informed that the no power supply mode is currently in use through the OLED display or other indication methods, and the power supply is monitored in real time; S5, information display and interaction stage; the STM32 microcontroller integrates and processes the collected information such as temperature, humidity, electromagnetic interference intensity, optical power and network connection status, and transmits the data to the OLED display screen through the I2C interface for display; so that users can intuitively understand the working status of the optical network conversion panel.
Citation Information
Patent Citations
Adaptive method and system for photoelectric network port of Ethernet
CN103684935A
Single-network-card dual-network-port switching device
CN214799529U
Dual-network-port single-pass switching circuit and terminal equipment
CN216772405U
Photoelectric converter supporting PoE output
CN219627727U
Fiber converter faceplate outlet
US20020146207A1