Optoelectronic Measurement and Control Remote Status Acquisition System Based on STM32 and FPGA
Through the photoelectric measurement and control system of STM32 and FPGA, field optical cables are used to connect the control end and the equipment end, which solves the remote operation problem of the on-board high-precision optical measurement equipment, and achieves stable and reliable remote control and real-time feedback.
Patent Information
- Application Number
- CN202211520285.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-30
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-11-30
AI Technical Summary
During use, due to geographical location and personnel scheduling restrictions, operators cannot control remotely in real time, resulting in inconvenience in operation.
The photoelectric measurement and control remote state acquisition system based on STM32 and FPGA is adopted, and the control end and the equipment end are connected through field optical cables. The FPGA is used to process data and transmit it through the optical fiber interface to achieve remote control and real-time feedback.
It realizes stable and reliable control of remote control end to device end, improves real-time and efficiency of operations, and solves the problems of geographical location and personnel scheduling restrictions.
Smart Images

Figure CN115755719B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of optoelectronic measurement and control technology and optical fiber communication, and particularly relates to an optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA. Background Art
[0002] With the progress of social development, the related technologies of weapon tests in our country have kept pace with the times, and the requirements for the use of high-precision optical measurement equipment are also pursuing convenience, practicality and easy operation. At present, during the experiment of vehicle-mounted high-precision optical measurement equipment, there are limitations in terms of site and personnel, and the operator may have the need for remote operation. Therefore, it is very important to add a remote control system to the optical measurement equipment.
[0003] Existing vehicle-mounted high-precision optical measurement equipment often cannot ensure that the operator can operate in the equipment in real time due to geographical location limitations and personnel scheduling limitations. The current equipment requires the operator to operate in the vehicle cabin, which is very inconvenient in case of long-distance operation. In order to achieve operation with human-machine separation, data is collected at the remote control end and transmitted to the equipment end, and the operation interface can be basically the same, so as to improve the intelligence and combat performance of the equipment. Summary of the Invention
[0004] In order to solve the problems existing in the prior art, the present invention provides an optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA, which solves the problem that existing vehicle-mounted high-precision optical measurement equipment cannot ensure that the operator can operate in the equipment in real time due to geographical location limitations and personnel scheduling limitations.
[0005] The technical solution adopted by the present invention to solve the technical problems is as follows:
[0006] An optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA, the system includes: an FPGA, an STM32 chip, a fiber optic interface and a touch screen display module located at the control end; according to the data about the servo system displayed by the touch screen display module, the STM32 chip packs the status and data into serial data and sends it to the FPGA, and after being processed by the FPGA, it is sent to the equipment end through the fiber optic interface and the optical module, and then is converted into serial data by the FPGA of the equipment end and sent to the servo system on the equipment; the information of the servo system is transmitted to the FPGA at the control end through the FPGA, the optical module and the fiber optic interface of the equipment end, and after being processed, it is sent to the STM32 chip and displayed on the touch screen display module. Preferably, the FPGA, the STM32 chip and the touch screen display module at the control end transmit information with the equipment end through a field optical cable.
[0007] Preferably, the FPGA is responsible for the acquisition of digital signals, the driving of optical modules, and the transmission verification of data.
[0008] Preferably, the STM32 chip is responsible for the acquisition of the single-pole state at the remote control end, the control of the interactive screen display, and the interactive processing of network data.
[0009] Preferably, it further includes: a test interface, a single-pole acquisition interface, a serial communication interface, a key sampling interface, and a network interface; the network interface and the key acquisition interface are respectively connected to the STM32 chip, and the serial communication interface, the single-pole acquisition interface, and the test interface are respectively connected to the FPGA chip.
[0010] Preferably, the data is the potentiometer value and the key value of the display interface.
[0011] Preferably, the potentiometer value is averaged. After enabling the clock, the averaged data of the collected potentiometer values taken three times is output.
[0012] Preferably, it further includes: an SDRAM and a storage space connected to the STM32 chip for expansion.
[0013] The beneficial effects of the present invention are as follows: The present invention connects the remote control end and the device end through a field optical cable to transmit real-time data, thereby achieving the purpose that the remote control end can control the device end and can provide real-time feedback. This solution can perform remote control stably and reliably, improve the actual use efficiency, and solve the current situation where equipment personnel cannot remotely control the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 Schematic structural diagram of the optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA of the present invention.
[0015] Figure 2 Detailed structural diagram of the optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA of the present invention.
[0016] Figure 3 GUIBuilder interface effect diagram of the present invention.
[0017] Figure 4 Method flow chart of the optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA of the present invention.
[0018] Figure 5 Noise frequency distribution of the power supply. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0019] The present invention will be further described in detail below with reference to the drawings and embodiments.
[0020] As Figure 1As shown in the figure, an optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA, the system includes: an FPGA, an STM32 chip, an optical fiber interface and a touch screen display module located at the control end; according to the data of the servo system displayed by the touch screen display module, the STM32 chip packs the status and data into serial data and sends it to the FPGA, after being processed by the FPGA, it is sent to the device end through the optical fiber interface and the optical module, and then is converted into serial data by the FPGA of the device end and sent to the servo system on the device; the information of the servo system is transmitted to the FPGA at the control end through the FPGA, optical module and optical fiber interface at the device end, and after being processed, it is sent to the STM32 chip and displayed on the touch screen display module. Among them, the FPGA, STM32 chip and touch screen display module at the control end transmit information with the device end through a field optical cable.
[0021] In the present invention, the FPGA is responsible for collecting digital quantity data, driving the optical module and data transmission verification work. The STM32 chip is responsible for the acquisition of the single rod state at the remote control end, the control of the interactive screen display and the interactive processing of network data.
[0022] As Figure 2 shown in the figure, the acquisition system also includes: a test interface, a single rod acquisition interface, a serial communication interface, a key sampling interface and a network interface; the network interface and the key sampling interface are respectively connected to the STM32 chip, and the serial communication interface, the single rod acquisition interface and the test interface are respectively connected to the FPGA chip.
[0023] In terms of hardware, STM32F429IGT6 is used as the control core device for information interaction, and functions of controlling and real-time displaying data are carried out. The STM32F429 chip adopts the Crotex M4 core, has 256KB of SRAM, the highest main frequency is 180MHz, and provides up to 8 UART serial ports. 3 independent 12-bit ADCs, the maximum sampling frequency can reach 2.4Msps, and 3-channel alternating sampling can reach 7.2Msps. It has network data sending and receiving ports compliant with the IEEE802.3-2002 standard, and has an Ethernet MAC interface supporting a data transmission rate of 10 / 100Mbit / s.
[0024] In order to expand the operation and storage space of the system, the board is also equipped with W9825G6KH as 32MB external expanded SDRAM, and MT29F4G08 as the external expanded FLASH storage space. In order to ensure the accuracy of analog quantity acquisition such as single rod, the reference voltage of the ADC is driven by an ultra-low noise adjustable regulated power supply, and the power supply ripple noise is controlled within 50uV. The noise frequency distribution of the power supply is as Figure 5 shown in the figure.
[0025] The FPGA drives the optical module using the Aurora protocol. The optical module uses a 1.25 Gbps, 80 Km high-power and high-sensitivity module. In view of the characteristics of large optical fiber attenuation and high bit error rate during long-distance transmission, CRC-32 check is introduced. After determining the integrity of the received data, it is forwarded. At the same time, a data status monitoring mechanism is set inside. When an error data packet appears, a retransmission request is automatically sent. In addition, the data packet interaction of the entire system remains at 100 hz / s, and the interval between each data packet is only 10 ms, ensuring the real-time performance of remote data display and operation feedback.
[0026] The optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA has two interfaces for data interaction with the proximal end, namely the optical fiber interface and the network interface. Among them, the network interface uses LAN8720A as the PHY, with 10 / 100 Mbit / s adaptive function. STM32 processes network data packets through the LWIP software package. The optical fiber interface uses a standard SFP interface, with a communication rate of 1.25 Gbps, and can be directly connected to the device proximal board through the optical fiber to establish high-speed bidirectional communication.
[0027] As Figure 3 shown, in terms of functions, the STM32F429 chip is mainly responsible for the acquisition of the single rod state, the control of the interactive screen display, and the interactive processing of network data. The acquired data are the potentiometer value and the key value of the display interface. The potentiometer value is averaged. After enabling the clock, the data obtained by averaging the collected potentiometer value three times is output. The display interface is made using GUIBuilder V5.30 in eMWin. The interface of the present invention uses Framewim control, Button control, and Image control. Among them, the Button control is the gray box part in the figure, which can be designed into the picture required by oneself in software programming and changes with the change of the touch screen button to achieve the button effect. Other controls only need to be adjusted when setting parameters and then called in the program. It is connected to a 7-inch TFTLCD using a 16-bit 8080 parallel port. The screen is a touch screen, and the operation tracking mode of the device can be set on the screen. At the same time, the device end can timely feedback the tracking mode and tracking status of the servo system. It also has a remote control permission switching selection function, which can switch between the remote and local control modes at any time. The remote control interface can be customized and modified according to the functions of the device.
[0028] The overall data processing flow is as Figure 4 shown. First, the system is initialized. The STM32F429 chip acquires the potentiometer and button data. At this time, if an interrupt occurs, the acquired data is sent to the device end, and the feedback data returned by the device end is received. Finally, the feedback data is displayed in real time on the screen.
[0029] When transmitting information over a long distance of 60 km through an optical fiber, the optical signal power decreases due to reasons such as absorption and dispersion. The attenuation coefficient of a single-mode optical fiber is generally 0.18 dB / km. In an ideal state, the attenuation of a 60-km transmission is not less than 10.8 dB. At the same time as the optical power attenuates, the signal quality also deteriorates, and the bit error rate increases significantly. To address the issue of information correctness in long-distance transmission projects, a set of information verification and error retransmission mechanisms is designed in the FPGA to ensure that correct control information data is transmitted to the device end within a specified time interval. The optical fiber connection uses the AURORA protocol, which has functions such as automatic reconnection in case of disconnection, ensuring the stability of the communication link under high bit error rates.
Claims
1. An optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA, characterized in that, The system includes: an FPGA, an STM32 chip, an optical fiber interface, and a touch screen display module located at the control end. The FPGA is responsible for the acquisition of digital signals, the driving of optical modules, and the transmission and verification of data. The STM32 chip acquires the single-pole state of the remote control end, controls the touch screen display module, and performs interactive processing of network data. It also includes: a test interface, a single-pole acquisition interface, a serial communication interface, a key sampling interface, and a network interface; the network interface and the key acquisition interface are respectively connected to the STM32 chip, and the serial communication interface, the single-pole acquisition interface, and the test interface are respectively connected to the FPGA chip; according to the data of the servo system displayed on the touch screen display module, the STM32 chip packages the state and data into serial data and sends it to the FPGA. After being processed by the FPGA, it is sent to the device end through the optical fiber interface and the optical module, and then converted into serial data by the FPGA of the device end and sent to the servo system on the device; the information of the servo system is transmitted to the FPGA of the control end through the FPGA, the optical module, and the optical fiber interface of the device end, and after being processed, it is sent to the STM32 chip and displayed on the touch screen display module. The FPGA, STM32 chip, and touch screen display module of the control end transmit information to and from the device end through a field cable. The STM32 chip uses the STM32F429 chip, which adopts the Crotex M4 core, has 256KB of SRAM, a maximum main frequency of 180MHz, provides up to 8 UART serial ports, and 3 12-bit independent ADCs. The reference voltage of the ADC is driven by an ultra-low noise adjustable regulated power supply, and the power supply ripple noise is controlled within 50uV.
2. The optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA according to claim 1, wherein The data is the potentiometer value and the key value of the display interface.
3. The optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA according to claim 2, wherein The potentiometer value is averaged. After enabling the clock, the averaged data of the collected potentiometer value is output after taking the average three times.
4. The optoelectronic measurement and control remote status acquisition system based on STM32 and FPGA according to claim 1, wherein It also includes: SDRAM and storage space connected to the STM32 chip for expansion.
Citation Information
Patent Citations
AGV control circuit based on STM32 chip and FPGA
CN115327999A