Device for monitoring LVDS (Low Voltage Differential Signaling) on circuit board
By designing an LVDS signal monitoring device including a signal sampling module and an AD conversion module, the problem of low detection efficiency of LVDS signal in the prior art is solved, real-time monitoring and display of LVDS signal status is realized, and detection efficiency and product quality are improved.
Patent Information
- Application Number
- CN202411335462.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-03
AI Technical Summary
The existing technology is difficult to quickly and in real time to monitor and feedback the LVDS signal status, resulting in long detection time and low efficiency, and the inability to detect all differential signals at the same time, affecting the work efficiency and product quality of engineers.
A device for monitoring LVDS signals on the circuit board is designed, including a signal sampling module, an AD conversion module and a control terminal. By collecting, converting and displaying the LVDS signal status, the STM32 microcontroller and LCD display screen realize real-time monitoring and judgment. Simplify the detection process.
Real-time acquisition and display of LVDS signal status is realized, which shortens detection time, improves work efficiency, can instantly understand all signal status, reduces the inspection process, detects abnormalities in advance, reduces the defective product rate, and improves product quality.
Smart Images

Figure CN119247095A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of LVDS signal monitoring, and in particular to a device for monitoring LVDS signals on a circuit board. Background Art
[0002] LVDS (Low Voltage Differential Signaling) is a low voltage differential signaling technology with low power consumption, low bit error rate, low crosstalk and low radiation. LVDS technology uses extremely low voltage swing and high-speed differential data transmission to achieve point-to-point or point-to-multipoint connection. The transmission medium can be copper PCB connection or balanced cable. As a mature differential signal transmission technology, LVDS has become an indispensable part of modern electronic system design.
[0003] The background of LVDS technology is to solve the problem of interconnection of high-speed signals and application of broadband channels. With the continuous advancement of electronic design technology, the amount of data required to be transmitted is getting larger and larger, and the speed is getting faster and faster. Traditional point-to-point physical layer interfaces such as RS-422, RS-485, SCSI and other data transmission standards have inherent limitations in speed, noise, EMI / EMC, power consumption, cost, etc., and it is difficult to meet the actual application requirements. Therefore, LVDS, with its inherent low voltage, low power consumption and high-speed transmission characteristics, is increasingly becoming the preferred interface standard for broadband and high-speed system design.
[0004] The technical background of LVDS signal monitoring is based on the continuous improvement of the demand for high-speed data transmission and the pursuit of low power consumption, low bit error rate, low crosstalk and low radiation transmission technology.
[0005] In the prior art, the signal monitoring scheme for LVDS is basically limited to signal open and short circuit detection. It is necessary to use an open and short circuit board to analyze the differential signals one by one to find out which pair of signals is abnormal, or to use an oscilloscope or other instruments to perform more complex detection. It is impossible to feedback the status of all differential signals at the same time during the detection. Engineers can only analyze and troubleshoot them one by one, which is troublesome for engineers. In addition, these detection actions are time-consuming and cannot quickly and real-timely feedback the status of the LVDS signal. Summary of the invention
[0006] In view of this, it is necessary to provide a device for monitoring LVDS signals on a circuit board to solve the above-mentioned defects of the prior art.
[0007] In order to solve the above problems, the present invention provides a device for monitoring LVDS signals on a circuit board, comprising:
[0008] A signal sampling module, connected to the control end, for collecting LVDS analog signals;
[0009] The AD conversion module is connected to the control terminal and is used to convert the LVDS analog signal into a digital signal to obtain a digital signal sampling value;
[0010] The control end is used to read and process the digital signal sampling value, judge the LVDS signal state according to the preset judgment function, and send the digital signal sampling value and the LVDS signal state judgment result to the display screen;
[0011] The display screen is connected to the control end and is used to display the digital signal sampling value and the LVDS signal state judgment result.
[0012] Preferably, the device further comprises:
[0013] A first adapter, one end of which is connected to the LVDS signal output port of the product, for receiving the LVDS analog signal from the product; the other end of the first adapter is connected to the control end, for transmitting the received LVDS analog signal to the signal sampling module through the control end.
[0014] Preferably, the device further comprises:
[0015] A second adapter, one end of which is connected to the control end; the other end of which is connected to the host computer, and is used to transmit the digital signal sampling value and the LVDS signal state judgment result to the host computer;
[0016] The host computer is used to display the digital signal sampling value and the LVDS signal state judgment result on the user interface of the host computer for the user to view.
[0017] Preferably, the device further comprises:
[0018] The power drive module is connected to the control terminal and is used to provide a working voltage for the device.
[0019] Preferably, the signal sampling module is an LVDS receiver chip, and the model of the LVDS receiver chip is SN65LVDS or DS90.
[0020] Preferably, the AD conversion module is an analog-to-digital converter ADC, and the analog-to-digital converter ADC is specifically used for:
[0021] Select the corresponding ADC input channel according to the LVDS analog signal to be converted;
[0022] Sampling the LVDS analog signal to be converted;
[0023] Start ADC conversion, convert the LVDS analog signal into a digital signal, and obtain a digital signal sampling value.
[0024] Preferably, the control end is an STM32 microcontroller; and the display screen is a thin film transistor liquid crystal display.
[0025] Preferably, the control end is specifically used for:
[0026] Initialize system configuration;
[0027] Set a timer to control the sampling frequency of the LVDS analog signal;
[0028] The digital signal sampling value is continuously read through the AD conversion module according to the set frequency.
[0029] Based on the digital signal sampling value, the character string is converted into a number through a conversion function, and then the LVDS signal state is judged through a preset judgment function, and the digital signal sampling value and the LVDS signal state judgment result are sent to the display screen.
[0030] Compared with the prior art, the device for monitoring LVDS signals on a circuit board provided by the present invention has the following beneficial effects:
[0031] 1) The device for monitoring LVDS signals on a circuit board provided by the present invention can collect, convert and display the status of LVDS signals in real time, without the need to use an open short circuit board for analysis one by one or rely on an oscilloscope for complex detection as in the traditional method, which greatly shortens the LVDS signal detection time and improves work efficiency.
[0032] 2) The device provides real-time feedback on the status of LVDS signals, so that the status of all LVDS signals can be instantly known, thereby quickly locating and solving problems, avoiding the tedious process of checking one by one in traditional methods.
[0033] 3) By using this device to perform the LVDS signal monitoring process before product shipment, defective products with abnormal LVDS signals can be discovered in advance, thereby reducing the defective rate and improving product quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of the structure of a device for monitoring LVDS signals on a circuit board provided by an embodiment of the present invention;
[0035] Figure 2 A program flow chart of the control terminal provided by the present invention;
[0036] Figure 3 A software design flow chart of the analog-to-digital converter ADC provided by the present invention;
[0037] Figure 4 A software design flow chart of the display screen provided by the present invention. DETAILED DESCRIPTION
[0038] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0039] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0040] In the prior art, the signal monitoring scheme for LVDS is basically limited to signal open and short circuit detection. It is necessary to use an open and short circuit board to analyze the differential signals one by one to find out which pair of signals is abnormal, or to use an oscilloscope or other instruments to perform more complex detection. It is impossible to feedback the status of all differential signals at the same time during the detection. Engineers can only analyze and troubleshoot them one by one, which is troublesome for engineers. In addition, these detection actions are time-consuming and cannot quickly and real-timely feedback the status of the LVDS signal.
[0041] In view of this, the present invention provides a device for monitoring LVDS signals on a circuit board, which converts LVDS signals into visual numerical values displayed on a display screen of the device through signal conversion and other technical processes, thereby achieving an intuitive LVDS signal status monitoring effect, and a judgment function can be set to judge the status of the LVDS signal, and an abnormal LVDS signal can be intuitively judged by comparing it with a set value. The following will be explained and introduced through multiple embodiments.
[0042] Figure 1 A schematic diagram of the structure of a device for monitoring LVDS signals on a circuit board provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the device for monitoring the LVDS signal on the circuit board includes at least a signal sampling module, an AD conversion module, a control terminal and a display screen, wherein:
[0043] A signal sampling module, connected to the control end, for collecting LVDS analog signals;
[0044] The AD conversion module is connected to the control terminal and is used to convert the LVDS analog signal into a digital signal to obtain a digital signal sampling value;
[0045] The control end is used to read and process the digital signal sampling value, judge the LVDS signal state according to the preset judgment function, and send the digital signal sampling value and the LVDS signal state judgment result to the display screen. The "and processing" here means converting the character string representing the analog signal value into a number through a conversion function, so as to facilitate the subsequent judgment function to compare the numerical value. It can be understood that the digital signal sampling value initially exists in the form of a character string. However, the data in the form of a character string is not convenient for mathematical operations and comparisons through subsequent judgment functions. Therefore, in this embodiment, after the character string is first converted into a number through a conversion function, the comparison and operation of the judgment function can be made simpler and more direct, thereby improving the convenience of data processing and the accuracy of LVDS signal state judgment.
[0046] The display screen is connected to the control end and is used to display the digital signal sampling value and the LVDS signal state judgment result.
[0047] This embodiment combines Figure 1 The design scheme of the present invention is specifically described:
[0048] The control end can adopt STM32 microcontroller. In this embodiment, select suitable STM32 series chip, ensure that STM32 chip has enough GPIO pins to process LVDS signal, and enough clock and timer resources to process high-speed signal.
[0049] In this embodiment, an STM32 microcontroller of model STM32F103RCT6 can be selected, which has abundant GPIO pins, timer resources and built-in ADC, which is sufficient to handle the sampling and state judgment of LVDS signals. At the same time, a 1.44-inch TFT-LCD (Thin film transistor liquid crystal display) screen is selected as the display screen to ensure that there is enough resolution to display the state of the LVDS signal. LCD (LiquidCrystal Display) can also be used as the display screen. Write code to configure the GPIO pin to input mode so that it can receive LVDS signals.
[0050] The LVDS receiver chip is used as a signal sampling module. In this embodiment, the SN65LVDS series of Texas Instruments or the DS90 series LVDS receiver chip of National Semiconductor can be selected. The LVDS receiver chip can convert the LVDS signal into a single-ended signal (such as CMOS or TTL) for STM32 processing. In this embodiment, the analog LVDS waveform signal can be collected by the signal sampling module.
[0051] As a preferred embodiment, the present invention can design a hardware circuit to receive LVDS signals, and the LVDS signals enter the LVDS receiver chip through a suitable differential input circuit to reduce noise and signal loss. A signal adjustment circuit can be added after the LVDS receiver chip to ensure that the signal level matches the ADC input range of the STM32.
[0052] Figure 2 The program flow chart of the control terminal provided by the present invention is shown in FIG. Figure 2 , the program flow of the control end includes:
[0053] Initialize system configuration: including hardware interfaces such as clock, GPIO and display.
[0054] A timer is set to control the sampling frequency of the LVDS signal to ensure that the sampling frequency conforms to the characteristics of the LVDS signal.
[0055] The LVDS analog signal is collected by the signal acquisition module, and the LVDS analog signal is converted into a digital signal and processed by the AD conversion module to obtain a digital signal sampling value.
[0056] In the main loop, the digital signal sampling values output by the AD conversion module are continuously read through the set sampling frequency.
[0057] The digital signal sampling value is displayed on the LCD display.
[0058] The device for monitoring LVDS signals on a circuit board provided by the present invention can collect, convert and judge the status of LVDS signals in real time, which greatly improves the detection efficiency compared with the traditional open-short circuit detection or the method using complex instruments such as oscilloscopes. Engineers no longer need to analyze each pair of differential signals one by one, but can immediately obtain status feedback of all LVDS signals, thereby saving time and labor costs and improving the efficiency of LVDS signal monitoring. The device of the present invention can provide real-time feedback on the status of LVDS signals, so that engineers can promptly discover and locate problems during product development, testing or maintenance. This is of great significance for improving signal quality and enhancing product performance and reliability.
[0059] In a preferred embodiment of the present invention, referring to Figure 1 The device for monitoring the LVDS signal on the circuit board also includes a first adapter and a second converter, one end of the first adapter is connected to the LVDS signal output port of the product (circuit board) for receiving the LVDS analog signal from the product; the other end of the first adapter is connected to the control end for transmitting the received LVDS analog signal to the signal sampling module through the control end. Figure 1The “converter (product)” in the description refers to the first adapter in the embodiment of the present invention.
[0060] One end of the second adapter is connected to the control end; the other end of the second adapter is connected to the host computer, and is used to transmit the digital signal sampling value and the LVDS signal state judgment result to the host computer. Figure 1 The "converter (host computer)" refers to the second adapter in the embodiment of the present invention.
[0061] The host computer is used to display the digital signal sampling value and the LVDS signal state judgment result on the user interface of the host computer for the user to view.
[0062] In this embodiment, the device provided by the present invention is connected between the product and the host computer, and after adding the power drive module, it can detect the product signal while the device is running synchronously. After the LVDS analog signal is collected by the signal sampling module, the LVDS analog signal is converted into a visual value and displayed on the display screen, and the real-time visual value is compared with the set threshold value to determine the state of the LVDS signal and display it on the display screen.
[0063] By introducing the first adapter and the second adapter, the embodiment of the present invention makes the connection between various parts of the device (such as the product, the control end, the signal sampling module, the host computer, etc.) more flexible. This design improves the scalability and flexibility of the system.
[0064] In a preferred embodiment of the present invention, Figure 1 As shown, the device also includes:
[0065] The power drive module is connected to the control terminal and is used to provide a working voltage for the device.
[0066] In this embodiment, the power driver module can provide a stable operating voltage for the entire device, ensuring that each component operates in a stable power environment. This helps to reduce problems such as signal interference, data processing errors or hardware damage caused by voltage fluctuations or instability, and improves the stability and reliability of the device.
[0067] In a preferred embodiment of the present invention, the AD conversion module is an analog-to-digital converter ADC (Analog-to-Digital Converter). Figure 3 The software design flow chart of the analog-to-digital converter ADC provided by the present invention is shown in FIG. Figure 3 After the analog-to-digital converter ADC is initialized and configured, the analog-to-digital converter ADC is specifically used for:
[0068] Select the corresponding ADC input channel according to the LVDS analog signal to be converted;
[0069] Sampling the LVDS analog signal to be converted;
[0070] Start ADC conversion, convert the LVDS analog signal into a digital signal, and obtain a digital signal sampling value.
[0071] In LVDS signal monitoring, the analog-to-digital converter ADC can accurately sample the LVDS analog signal and convert it into a high-precision digital signal sampling value. This conversion is crucial for subsequent signal analysis and processing, ensuring the accuracy and reliability of the signal.
[0072] Figure 4 The software design flow chart of the display screen provided by the present invention is as follows. In the embodiment of the present invention, a software program is written on the control end to call the functions of each module.
[0073] Reference Figure 2 to Figure 4 , the control end is specifically used for:
[0074] Initialize system configuration;
[0075] Set a timer to control the sampling frequency of the LVDS analog signal;
[0076] Continuously read digital signal sampling values from the AD conversion module.
[0077] Based on the digital signal sampling value, the LVDS signal state is judged by a preset judgment function, and the digital signal sampling value and the LVDS signal state judgment result are sent to the display screen.
[0078] Reference Figure 2 and Figure 4 In the main loop, the control end continuously reads the digital signal sampling value and converts it into visual data (such as a string). After the string is converted into a number through the conversion function, the converted number is compared with the set threshold through the preset judgment function to determine whether the state of the LVDS signal is abnormal. The value represented by the signal and the LVDS signal state judgment result are displayed on the display screen.
[0079] In the embodiment of the present invention, a software program is written on the control end to call the functions of each module. The following shows part of the program code written on the control end:
[0080] Initialization function declaration
[0081] void SystemClock_Config(void); System clock configuration function declaration
[0082] void GPIO_Init(void); GPIO initialization function declaration
[0083] void ADC_Init(void); ADC initialization function declaration
[0084] void USART_Init(void); USART initialization function declaration
[0085] void SPI_Init(void); SPI initialization function declaration
[0086] void TIM_Init(void); Timer initialization function declaration
[0087] Data processing and display update function declaration
[0088] uint32_t ProcessData(uint32_t rawValue); data processing function declaration
[0089] void UpdateDisplay(uint32_t value); Display update function declaration
[0090] Global variables
[0091] volatile uint32_t adcValue=0;global variable for storing ADC sampling value
[0092] volatile uint8_t updateFlag = 0; Flag used to mark the need to update the display
[0093] Main function:
[0094] int main(void){
[0095] Initialize each peripheral
[0096] SystemClock_Config(); Configure the system clock
[0097] GPIO_Init(); Initialize GPIO
[0098] ADC_Init(); Initialize ADC
[0099] USART_Init(); Initialize USART
[0100] SPI_Init(); Initialize SPI
[0101] TIM_Init(); Initialize the timer
[0102] Start ADC and timer
[0103] ADC1-CR2 = ADC_CR2_ADON; Enable ADC
[0104] TIM2-CR1 = TIM_CR1_CEN; start the timer
[0105]
[0106] Timer interrupt callback function
[0107]
[0108] Initialization function definition
[0109]
[0110] Configure the system clock here, and adjust the specific implementation according to the hardware platform and requirements
[0111]
[0112]
[0113] Data processing functions
[0114] uint32_t ProcessData(uint32_t rawValue){
[0115] Specific functions for processing data
[0116] For example, converting the ADC value to a specific state value
[0117] return rawValue; here is a simple example, adjust it according to your needs
[0118] }
[0119] Display update function
[0120]
[0121]
[0122] The above code is an embedded system program based on the STM32 microcontroller. It contains functions to initialize peripherals such as system clock, GPIO, ADC, USART, SPI, and timer. In the main function, the peripherals are initialized first, and then the ADC and timer are started. In the main loop, wait for the timer interrupt to trigger, get the sampled value from the ADC, process the data, and update the display. The timer interrupt is triggered at regular intervals to control the sampling frequency of the ADC. The entire program realizes the real-time acquisition, processing, and display of the ADC sampled value.
[0123] In summary, the device for monitoring LVDS signals on a circuit board provided by the present invention has the following beneficial effects compared with the prior art:
[0124] 1) The device for monitoring LVDS signals on a circuit board provided by the present invention can collect, convert and display the status of LVDS signals in real time, without the need to use an open short circuit board for analysis one by one or rely on an oscilloscope for complex detection as in the traditional method, which greatly shortens the LVDS signal detection time and improves work efficiency.
[0125] 2) The device provides real-time feedback on the status of LVDS signals, so that the status of all LVDS signals can be instantly known, thereby quickly locating and solving problems, avoiding the tedious process of checking one by one in traditional methods.
[0126] 3) By using this device to perform the LVDS signal monitoring process before product shipment, defective products with abnormal LVDS signals can be discovered in advance, thereby reducing the defective rate and improving product quality.
[0127] It is understandable that the jet turbine engine, solid-state hydrogen storage device, generator, rectifier inverter, battery and other components used in this application are all available on the market. The improvement of this application is not in the above components themselves, but in applying the above components available on the market to the heavy-load UAV of this application.
[0128] It should be noted that, in this article, the terms "include", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.
[0129] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0130] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A device for monitoring LVDS signals on a circuit board, characterized in that: include: A signal sampling module, connected to the control end, for collecting LVDS analog signals; The AD conversion module is connected to the control terminal and is used to convert the LVDS analog signal into a digital signal to obtain a digital signal sampling value; The control end is used to read and process the digital signal sampling value, judge the LVDS signal state according to the preset judgment function, and send the digital signal sampling value and the LVDS signal state judgment result to the display screen; The display screen is connected to the control end and is used to display the digital signal sampling value and the LVDS signal state judgment result.
2. The device for monitoring LVDS signals on a circuit board according to claim 1, characterized in that: Also includes: A first adapter, one end of which is connected to the LVDS signal output port of the product, for receiving the LVDS analog signal from the product; the other end of the first adapter is connected to the control end, for transmitting the received LVDS analog signal to the signal sampling module through the control end.
3. The device for monitoring LVDS signals on a circuit board according to claim 1, characterized in that: Also includes: A second adapter, one end of which is connected to the control end; the other end of which is connected to the host computer, and is used to transmit the digital signal sampling value and the LVDS signal state judgment result to the host computer; The host computer is used to display the digital signal sampling value and the LVDS signal state judgment result on the user interface of the host computer for the user to view.
4. The device for monitoring LVDS signals on a circuit board according to claim 1, characterized in that: Also includes; The power drive module is connected to the control terminal and is used to provide a working voltage for the device.
5. The device for monitoring LVDS signals on a circuit board according to claim 1, characterized in that: The signal sampling module is an LVDS receiver chip, and the model of the LVDS receiver chip is SN65LVDS or DS90.
6. The device for monitoring LVDS signals on a circuit board according to claim 1, characterized in that: The AD conversion module is an analog-to-digital converter ADC, and the analog-to-digital converter ADC is specifically used for: Select the corresponding ADC input channel according to the LVDS analog signal to be converted; Sampling the LVDS analog signal to be converted; Start ADC conversion, convert the LVDS analog signal into a digital signal, and obtain a digital signal sampling value.
7. The device for monitoring LVDS signals on a circuit board according to claim 1, characterized in that: The control end is an STM32 microcontroller; the display screen is a thin film transistor liquid crystal display.
8. The device for monitoring LVDS signals on a circuit board according to claim 1, characterized in that: The control end is specifically used for: Initialize system configuration; Set a timer to control the sampling frequency of the LVDS analog signal; The digital signal sampling value is continuously read through the AD conversion module according to the set sampling frequency. Based on the digital signal sampling value, after converting the character string into a number through a conversion function, the LVDS signal state is judged through a preset judgment function, and the digital signal sampling value and the LVDS signal state judgment result are sent to the display screen.
