A multi-channel axis angle intelligent detection, error correction and transceiver device based on FPGA
Through the multi-axis angle intelligent detection and error correction and transceiver device based on FPGA, the FPGA processes and amplifies the axis angle signal, combined with the main and standby transmission line and judgment unit, the problem of low signal transmission accuracy and efficiency in the prior art is solved, and the problem of low signal transmission accuracy and efficiency is realized. Efficient and low-cost digital detection and error correction of axle angles are used to improve the accuracy of attitude angle monitoring of fire consoles and radar devices.
Patent Information
- Application Number
- CN202010896563.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-31
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2040-08-31
AI Technical Summary
The existing axle angle digital decoding chip has large volume, high power supply requirements, low speed and many configuration components, resulting in limited signal amplification capability, low accuracy, low testing efficiency and accuracy, high labor costs and low efficiency.
Design a multi-axis angle intelligent detection and error correction and transceiver device based on FPGA, including a CPCI bus mechanism, axes and angle conversion module, level conversion and data buffering module, and use FPGA to perform data processing and error correction, and amplify the axis through excitation signal The angle signal is switched through the main and standby transmission line to ensure the stability of signal transmission, and the judgment unit and the detection unit realize real-time monitoring and error correction.
It improves detection efficiency and accuracy, reduces costs, ensures the accuracy and stability of signal transmission, monitors the operating status of the servo turntable in real time, and improves the attitude angle monitoring accuracy of the fire control and radar devices.
Smart Images

Figure CN112037501B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of high-speed bus signal transmission, and in particular to a multi-channel shaft angle intelligent detection, error correction and transceiver device based on FPGA. Background Art
[0002] Axis-angle digital technology is widely used in various high-precision CNC systems, such as robot control, navigation and industrial-grade military fields. In the industrial-grade military field, it is mainly used to measure the servo turntables of fire control consoles, radars and other devices, and adjust the equipment by clarifying their attitude angles, elevation angles and azimuth angles.
[0003] The shaft angle digital technology can decode the analog signal directly output by the induction synchronizer and convert it into a digital signal. The digital signal is received by the subsequent control system and can complete function selection, parameter setting, and control of various test equipment, thereby performing automatic control of parameter performance of various types of single-block single-speed and dual-speed shaft angle digital conversions.
[0004] However, current decoding chips such as AD2S80 usually have limitations such as large size, high power requirements, low rotation speed, and many configuration components, and the signal amplification capability is limited, resulting in low accuracy. During the testing process, the axis-to-digital module is mainly debugged and tested by skilled manpower, which has high labor costs and low efficiency. Summary of the invention
[0005] In view of the defects existing in the prior art, the purpose of the present invention is to provide a multi-channel axis angle intelligent detection, error correction and transceiver device based on FPGA, which can improve the detection efficiency and accuracy and has low cost.
[0006] In order to achieve the above purpose, the technical solution adopted by the present invention is:
[0007] A multi-channel shaft angle intelligent detection error correction and transceiver device based on FPGA, comprising FPGA, CPCI bus mechanism, several shaft angle conversion modules, several level conversion and data buffer modules,
[0008] The CPCI bus mechanism includes a CPCI bus interface chip, a plurality of first bus signal interfaces and a plurality of second bus signal interfaces;
[0009] The number of the axis-angle conversion modules, level conversion modules and data buffer modules is the same and consistent with the number of the inductive synchronizers;
[0010] The first bus signal interface is used to receive shaft angle signals sent by a plurality of induction synchronizers, and each of the induction synchronizers and the first bus signal interface are transmitted via two transmission lines: a main transmission line and a spare transmission line. When in use, the first bus signal interface receives the signal transmitted by the main transmission line by default. When the data state transmitted by the main transmission line is abnormal, the first bus signal interface switches to receiving the signal transmitted by the spare transmission line.
[0011] After the excitation signal enters the shaft angle conversion module, it is used as the comparison voltage of the shaft angle conversion module to stimulate the shaft angle signal to be amplified. After receiving the excitation signal and the shaft angle signal, the shaft angle conversion module first amplifies the shaft angle signal and then converts it into a first data signal and sends it to the corresponding level conversion and data buffer module. The level conversion and data buffer module is used to perform level conversion and filtering on the first data signal to obtain a second data signal and send it to the FPGA for processing;
[0012] The FPGA includes a data processing unit, which is used to calculate the rotation angle of the current servo turntable according to the second data signal and transmit the calculation result to the second bus signal interface through the CPCI bus interface chip for output;
[0013] Furthermore, the transceiver device also includes a power supply and a power management chip, and the power supply and the power management chip are both connected to the second bus signal interface, and the FPGA is connected to the second bus signal interface through the power management chip.
[0014] Furthermore, the number of the first bus interfaces is greater than or equal to the number of the inductive synchronizers.
[0015] Furthermore, a serial port communication is provided between the FPGA and the second bus signal interface, and the serial port communication is used for data exchange with the outside, and can also be used as a debugging interface.
[0016] Furthermore, the FPGA also includes a judgment unit and a detection unit, and the judgment unit and the detection unit are connected to each other.
[0017] Furthermore, the judgment unit is used to judge whether the second data signal is abnormal according to the operating law of the motor, and send a detection signal to the detection unit when it is abnormal. The detection unit is used to send a status signal to the shaft angle conversion module through the level conversion and data buffer module. When the shaft angle conversion module receives the status signal, it judges whether the shaft angle signal it receives is normal. When the shaft angle signal is normal, the normal signal is fed back to the detection unit; when the received shaft angle signal is abnormal, the abnormal signal is fed back to the detection unit. The detection unit controls the corresponding first bus signal interface to switch the current interface to the backup interface, and sends an alarm message to notify the corresponding personnel to perform maintenance. If the signals transmitted by several backup interfaces are also abnormal signals, the current signal transmission is terminated and the corresponding personnel are notified to inspect the servo turntable.
[0018] A method for transmitting and receiving signals based on the above device comprises the following steps:
[0019] S1, receiving shaft angle signal and magnetic excitation signal;
[0020] S2, amplifying and digitally converting the shaft angle signal to obtain a first digital signal;
[0021] S3, amplifying and filtering the first digital signal to obtain a second digital signal;
[0022] S4. Calculate the second digital signal to obtain an angle signal and output it.
[0023] A method for intelligent detection and error correction based on the above device comprises the following steps:
[0024] S1, the judging unit judges whether the second data signal is abnormal according to the motor operation law, and sends a detection signal to the detection unit when it is abnormal;
[0025] S2, the detection unit sends a status signal to the shaft angle conversion module through the level conversion and data buffer module;
[0026] S3, when the shaft angle conversion module receives the status signal, it determines whether the shaft angle signal it receives is normal. If it is normal, it proceeds to step S4; otherwise, it proceeds to step S5;
[0027] S4, feeding back a normal signal to the detection unit and transmitting normally;
[0028] S5. Feedback abnormal signals to the detection unit. The detection unit controls the corresponding first bus signal interface to switch the current interface to the backup interface, and sends an alarm message to notify the corresponding personnel to perform maintenance. If the signals transmitted by several backup interfaces are also abnormal signals, the current signal transmission is terminated and the corresponding personnel are notified to check the servo turntable.
[0029] Compared with the prior art, the advantages of the present invention are:
[0030] (1) In the FPGA-based multi-channel shaft angle intelligent detection, error correction and transceiver device of the present invention, the excitation signal enters the shaft angle conversion module and serves as the comparison voltage of the shaft angle conversion module to stimulate shaft angle signal amplification. Since the shaft angle signal is an electrical signal (the voltage is usually 0.1-0.5V) and is relatively weak, it needs to be amplified and converted into a digital signal to improve the accuracy of the data. In the present invention, an excitation signal is transmitted to the shaft angle conversion module through an excitation device. The voltage of the excitation signal is 40-60V. Compared with the current method of mainly amplifying the shaft angle conversion module itself, but because the shaft angle conversion module amplifies the voltage is usually 3.3V, resulting in a weak final signal strength and low signal accuracy, the accuracy of the present invention is higher.
[0031] (2) In the FPGA-based multi-channel axis angle intelligent detection, error correction and transceiver device of the present invention, each inductive synchronizer and the first bus signal interface are transmitted through two transmission lines: a main transmission line and a backup transmission line. In use, the first bus signal interface receives the signal transmitted by the main transmission line by default. When the data state of the main transmission line is abnormal, the first bus signal interface switches to receiving the signal transmitted by the backup transmission line, which can avoid signal interruption or abnormal signals and can make timely adjustments, effectively improving the effectiveness and accuracy of signal transmission.
[0032] (3) The present invention is a multi-channel shaft angle intelligent detection, error correction and transceiver device based on FPGA. The FPGA includes a judgment unit and a detection unit connected to each other. The judgment unit is used to judge whether the second data signal is abnormal according to the operation law of the motor, and send a detection signal to the detection unit when it is abnormal. The detection unit is used to send a status signal to the shaft angle conversion module through a level conversion and data buffer module. When the shaft angle conversion module receives the status signal, it judges whether the shaft angle signal it receives is normal. When the shaft angle signal is normal, the normal signal is fed back to the detection unit; when the received shaft angle signal is abnormal, the abnormal signal is fed back to the detection unit. The detection unit controls the corresponding first bus signal interface to switch the current interface to the backup interface, and sends an alarm message to notify the corresponding personnel to perform maintenance. If the signals transmitted by the several backup interfaces are also abnormal signals, the current signal transmission is terminated and the corresponding personnel are notified to inspect the servo turntable.
[0033] When in use, the embodiment of the present invention determines whether the signal is abnormal and takes corresponding measures, that is, quickly completes the detection of the axis angle-digital module, can detect and correct errors in time, and effectively monitor the operating status of the servo turntable in real time, so as to facilitate real-time adjustment of the attitude angle, elevation angle, and azimuth angle of fire control consoles, radars and other devices, thereby improving the accuracy of monitoring and attacking targets, and at a low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1It is a structural schematic diagram of a multi-channel shaft angle intelligent detection, error correction and transceiver device based on FPGA in an embodiment of the present invention. DETAILED DESCRIPTION
[0035] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
[0036] See also Figure 1 As shown, an embodiment of the present invention provides a multi-channel shaft angle intelligent detection, error correction and transceiver device based on FPGA, which is used to receive and detect the angle of a servo turntable. Each servo turntable sends a shaft angle signal through an inductive synchronizer, and the shaft angle signal includes three signals with a phase difference of 120°.
[0037] The device includes a CPCI (Compact Peripheral Component Interconnect) bus mechanism, an FPGA (Field Programmable Gate Array), a power supply, a power management chip, a plurality of axis angle conversion modules, a plurality of level conversion and data buffer modules. The CPCI bus mechanism includes a CPCI bus interface chip, a plurality of first bus signal interfaces and a plurality of second bus signal interfaces. The power supply and the power management chip are both connected to the second bus signal interface, and the FPGA is connected to the second bus signal interface through the power management chip.
[0038] The number of axis-angle conversion modules, level conversion and data buffer modules is the same and consistent with the number of inductive synchronizers. The number of first bus interfaces is greater than or equal to the number of inductive synchronizers. In this embodiment, the number of first bus interfaces is 8, which can detect 8 servo turntables at the same time. In actual use, the number of first bus interfaces can be 16, 24 or 36. Therefore, the present invention can detect multiple servo turntables at the same time with lower cost.
[0039] The decoding chip, i.e. the shaft angle conversion module, uses the chip model AD2S80, which is small in size, has few components, simple power supply, high speed, and is easy to integrate on the circuit board.
[0040] The first bus signal interface is used to receive shaft angle signals sent by several inductive synchronizers, and each inductive synchronizer and the first bus signal interface are transmitted through two transmission lines: a main transmission line and a backup transmission line. During use, the first bus signal interface receives the signal transmitted by the main transmission line by default. When the data status of the main transmission line is abnormal, the first bus signal interface switches to receiving the signal transmitted by the backup transmission line, which can avoid signal interruption or abnormal signals and can make timely adjustments, effectively improving the effectiveness and accuracy of signal transmission.
[0041] After the excitation signal enters the shaft angle conversion module, it serves as the comparison voltage of the shaft angle conversion module to stimulate the amplification of the shaft angle signal. Since the shaft angle signal is an electrical signal (the voltage is usually 0.1~0.5V) and is relatively weak, it needs to be amplified and converted into a digital signal to improve the accuracy of the data. In this embodiment, an excitation signal is transmitted to the shaft angle conversion module through an excitation device. The voltage of the excitation signal is 40~60V. It is currently mainly amplified by the shaft angle conversion module itself. However, since the amplification voltage of the shaft angle conversion module is usually 3.3V, the final signal strength is weak and the signal accuracy is low.
[0042] After receiving the excitation signal and the shaft angle signal, the shaft angle conversion module first amplifies the shaft angle signal and then converts it into a first data signal and sends it to the corresponding level conversion and data buffer module. The level conversion and data buffer module is used to level convert and filter the first data signal to obtain a second data signal and send it to the FPGA for processing.
[0043] The FPGA includes a data processing unit, a judgment unit and a detection unit. The data processing unit is used to calculate the rotation angle of the current servo turntable according to the second data signal and transmit the calculation result to the second bus signal interface through the CPCI bus interface chip for output. At the same time, a serial port communication is also set between the FPGA and the second bus signal interface. The serial port communication is used for data interaction with the outside and can also be used as a debugging interface.
[0044] The judgment unit and the detection unit are connected to each other. The judgment unit is used to judge whether the second data signal is abnormal according to the operation law of the motor, and send a detection signal to the detection unit when it is abnormal. The detection unit is used to send a status signal to the shaft angle conversion module through the level conversion and data buffer module. When the shaft angle conversion module receives the status signal, it judges whether the shaft angle signal it receives is normal. When the shaft angle signal is normal, the normal signal is fed back to the detection unit; when the received shaft angle signal is abnormal, the abnormal signal is fed back to the detection unit. The detection unit controls the corresponding first bus signal interface to switch the current interface to the backup interface, and sends an alarm message to notify the corresponding personnel to perform maintenance. If the signals transmitted by several backup interfaces are also abnormal signals, the current signal transmission is terminated and the corresponding personnel are notified to inspect the servo turntable.
[0045] When in use, the embodiment of the present invention determines whether the signal is abnormal and takes corresponding measures, that is, quickly completes the detection of the axis angle-digital module, can detect and correct errors in time, and effectively monitor the operating status of the servo turntable in real time, so as to facilitate real-time adjustment of the attitude angle, elevation angle, and azimuth angle of fire control consoles, radars and other devices, thereby improving the accuracy of monitoring and attacking targets, and at a low cost.
[0046] The CPCI bus interface chip of the present invention uses PCI9030, whose burst transmission rate can reach 132MB / s, and the local bus supports multiplexed / non-multiplexed 32-bit address / data, supports slave mode and DMA transmission mode, can complete the bus data transmission of the PCI local bus end, avoids the user from directly performing complex operations on the PCI local bus, and provides a complete local bus interface for the programmable logic device, so that the user can more conveniently realize the bus interaction function.
[0047] The present invention also provides a method for detecting and correcting errors and transmitting and receiving devices using a multi-channel axis angle intelligent device of FPGA, and the signal transmitting and receiving method comprises the following steps:
[0048] S1, receiving shaft angle signal and magnetic excitation signal.
[0049] S2. Amplify and digitally convert the shaft angle signal to obtain a first digital signal.
[0050] S3. Amplify and filter the first digital signal to obtain a second digital signal.
[0051] S4. Calculate the second digital signal to obtain an angle signal and output it.
[0052] Detection and correction include the following steps:
[0053] S1. The judging unit judges whether the second data signal is abnormal according to the motor operation rule, and sends a detection signal to the detection unit when it is abnormal.
[0054] S2. The detection unit sends a status signal to the shaft angle conversion module through the level conversion and data buffer module.
[0055] S3, when the shaft angle conversion module receives the status signal, it determines whether the shaft angle signal it receives is normal. If it is normal, it proceeds to step S4, otherwise, it proceeds to step S5.
[0056] S4. Feedback normal signal to the detection unit and perform normal transmission.
[0057] S5. Feedback abnormal signals to the detection unit. The detection unit controls the corresponding first bus signal interface to switch the current interface to the backup interface, and sends an alarm message to notify the corresponding personnel to perform maintenance. If the signals transmitted by several backup interfaces are also abnormal signals, the current signal transmission is terminated and the corresponding personnel are notified to check the servo turntable.
[0058] The present invention is not limited to the above-mentioned optimal implementation mode. Anyone can derive other various forms of products under the inspiration of the present invention. However, no matter what changes are made in the shape or structure, all technical solutions that are the same or similar to the present invention are within the scope of protection.
Claims
1. A multi-channel shaft angle intelligent detection, error correction and transceiver device based on FPGA, comprising FPGA, characterized in that: It also includes CPCI bus mechanism, several axis angle conversion modules, several level conversion and data buffer modules. The CPCI bus mechanism includes a CPCI bus interface chip, a plurality of first bus signal interfaces and a plurality of second bus signal interfaces; The number of the axis-angle conversion modules, level conversion modules and data buffer modules is the same and consistent with the number of the inductive synchronizers; The first bus signal interface is used to receive shaft angle signals sent by a plurality of induction synchronizers, and each of the induction synchronizers and the first bus signal interface are transmitted via two transmission lines: a main transmission line and a spare transmission line. When in use, the first bus signal interface receives the signal transmitted by the main transmission line by default. When the data state transmitted by the main transmission line is abnormal, the first bus signal interface switches to receiving the signal transmitted by the spare transmission line. After the excitation signal enters the shaft angle conversion module, it is used as the comparison voltage of the shaft angle conversion module to stimulate the shaft angle signal to be amplified. After receiving the excitation signal and the shaft angle signal, the shaft angle conversion module first amplifies the shaft angle signal and then converts it into a first data signal and sends it to the corresponding level conversion and data buffer module. The level conversion and data buffer module is used to perform level conversion and filtering on the first data signal to obtain a second data signal and send it to the FPGA for processing; The FPGA includes a data processing unit, which is used to calculate the rotation angle of the current servo turntable according to the second data signal and transmit the calculation result to the second bus signal interface through the CPCI bus interface chip for output; The FPGA also includes a judgment unit and a detection unit, and the judgment unit and the detection unit are connected to each other; The judgment unit is used to judge whether the second data signal is abnormal according to the operation law of the motor, and send a detection signal to the detection unit when it is abnormal. The detection unit is used to send a status signal to the shaft angle conversion module through the level conversion and data buffer module. When the shaft angle conversion module receives the status signal, it judges whether the shaft angle signal it receives is normal. When the shaft angle signal is normal, the normal signal is fed back to the detection unit; when the received shaft angle signal is abnormal, the abnormal signal is fed back to the detection unit. The detection unit controls the corresponding first bus signal interface to switch the current interface to the backup interface, and sends an alarm message to notify the corresponding personnel to perform maintenance. If the signals transmitted by several backup interfaces are also abnormal signals, the current signal transmission is terminated and the corresponding personnel are notified to inspect the servo turntable.
2. The FPGA-based multi-channel shaft angle intelligent detection, error correction and transceiver device as claimed in claim 1, characterized in that: The transceiver device also includes a power supply and a power management chip, both of which are connected to the second bus signal interface, and the FPGA is connected to the second bus signal interface through the power management chip.
3. The FPGA-based multi-channel shaft angle intelligent detection, error correction and transceiver device as claimed in claim 1, characterized in that: The number of the first bus signal interfaces is greater than or equal to the number of the inductive synchronizers.
4. The FPGA-based multi-channel shaft angle intelligent detection, error correction and transceiver device as claimed in claim 1, characterized in that: A serial port communication is also provided between the FPGA and the second bus signal interface, and the serial port communication is used for data exchange with the outside, and can also be used as a debugging interface.
5. A method for sending and receiving signals based on the device according to any one of claims 1 to 4, characterized in that: The following steps are involved: S1, receiving shaft angle signal and magnetic excitation signal; S2, amplifying and digitally converting the shaft angle signal to obtain a first digital signal; S3, amplifying and filtering the first digital signal to obtain a second digital signal; S4. Calculate the second digital signal to obtain an angle signal and output it.
6. A method for intelligent detection and error correction based on the device of claim 4, characterized in that: The following steps are involved: S1, the judging unit judges whether the second data signal is abnormal according to the motor operation law, and sends a detection signal to the detection unit when it is abnormal; S2, the detection unit sends a status signal to the shaft angle conversion module through the level conversion and data buffer module; S3, when the shaft angle conversion module receives the status signal, it determines whether the shaft angle signal it receives is normal. If it is normal, it proceeds to step S4; otherwise, it proceeds to step S5; S4, feeding back a normal signal to the detection unit and transmitting normally; S5. Feedback abnormal signals to the detection unit. The detection unit controls the corresponding first bus signal interface to switch the current interface to the backup interface, and sends an alarm message to notify the corresponding personnel to perform maintenance. If the signals transmitted by several backup interfaces are also abnormal signals, the current signal transmission is terminated and the corresponding personnel are notified to check the servo turntable.
