CN118199696A - Signal processing method, device and signal transmission system - Google Patents

Signal processing method, device and signal transmission system Download PDF

Info

Publication number
CN118199696A
CN118199696A CN202410343895.2A CN202410343895A CN118199696A CN 118199696 A CN118199696 A CN 118199696A CN 202410343895 A CN202410343895 A CN 202410343895A CN 118199696 A CN118199696 A CN 118199696A
Authority
CN
China
Prior art keywords
signal
protocol
node
time
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410343895.2A
Other languages
Chinese (zh)
Inventor
李宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Black Sesame Intelligent Technology Shenzhen Co ltd
Original Assignee
Black Sesame Intelligent Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Black Sesame Intelligent Technology Shenzhen Co ltd filed Critical Black Sesame Intelligent Technology Shenzhen Co ltd
Priority to CN202410343895.2A priority Critical patent/CN118199696A/en
Publication of CN118199696A publication Critical patent/CN118199696A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

The disclosure provides a signal processing method, a signal processing device and a signal transmission system. The signal processing device of the present disclosure includes: the signal processing device comprises an input module, an amplifying module, a capturing module, a sampling module, an analysis processing module and a post-processing module, wherein a first signal sent by a first node to a second node is optimized in quality due to being processed by the signal processing device of the embodiment of the disclosure, so that the second node can receive and identify the first signal from the first node. The signal processing device disclosed by the embodiment of the invention can realize quality optimization in the signal transmission process.

Description

Signal processing method, device and signal transmission system
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a signal processing method, a signal processing device and a signal transmission system.
Background
Signals can be transmitted between the nodes of the chip and the chip, the chip and the device, the chip and the module, the chip and the connector, and the like. The quality of the signals is deteriorated when the signals are transmitted to the opposite terminal nodes due to the phenomena of attenuation, delay, interference and the like of the signals in the signal transmission process, so that the opposite terminal nodes cannot normally recognize the received signals, and data transmission errors are caused.
Accordingly, a signal transmission scheme capable of improving signal quality is required.
Disclosure of Invention
In view of the foregoing, embodiments of the present disclosure are directed to providing a signal processing method, apparatus, and signal transmission system to optimize the quality of transmission signals between communication nodes.
In one aspect of the present disclosure, there is provided a signal processing apparatus including:
The input module is used for receiving a first signal, wherein the first signal is a signal sent by a first node to a second node;
an amplifying module for amplifying the amplitude of the first signal to obtain a second signal;
the capturing module is used for carrying out edge detection on the second signal so as to capture the data distribution parameters of the second signal;
The sampling module is used for sampling the second signal according to the data distribution parameter of the second signal so as to obtain sampling point data of the second signal;
The analysis processing module is used for analyzing and processing the second signal according to the sampling point data of the second signal so as to obtain a third signal which meets the data distribution requirement in the protocol specification;
And the post-processing module is used for carrying out reduction processing on the third signal to obtain a fourth signal, wherein the fourth signal simultaneously accords with the data distribution requirement and the protocol parameter requirement of the protocol specification, and the fourth signal is used as an optimized first signal to be sent to a second node so that the second node can receive and identify the first signal from the first node.
In a second aspect of the present disclosure, there is provided a signal processing method, including:
receiving a first signal, wherein the first signal is a signal sent by a first node to a second node;
Amplifying the amplitude of the first signal to obtain a second signal;
performing edge detection on the second signal to capture data distribution parameters of the second signal;
Sampling the second signal according to the data distribution parameter of the second signal to obtain sampling point data of the second signal;
Analyzing the second signal according to the sampling point data of the second signal to obtain a third signal with data distribution conforming to the protocol specification and generate a parameter modification instruction;
and carrying out reduction processing on the third signal, adjusting the third signal after the reduction processing based on parameter modification instruction to obtain a fourth signal, and sending the fourth signal to a second node as an optimized first signal so that the second node can receive and identify the first signal from the first node.
In a third aspect of the present disclosure, there is provided a signal transmission system comprising: the first signal sent by the first node is processed by the signal processing device and then output to the second node so as to be received and identified by the second node.
According to the signal processing method, the signal processing device and the signal transmission system, the signal quality optimization in the transmission process is realized by carrying out the processes of amplifying, edge detecting, sampling, signal restoring, adjusting protocol parameters and the like on the first signal sent to the second node by the first node, and even if the conditions of interference, delay and the like occur in the signal transmission process, the nodes receiving the signals still can normally receive and normally identify the signals, so that the communication between the nodes can be normally carried out, the data transmission errors between the nodes are effectively reduced, and the accuracy of the data transmission between the nodes is improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic structural diagram of a signal processing apparatus provided in an embodiment of the present disclosure;
Fig. 2 is a schematic circuit diagram of a signal processing apparatus to which the embodiments of the present disclosure are applicable;
FIG. 3 is a schematic diagram of signal interaction between nodes when a signal processing device according to an embodiment of the present disclosure is applied to a CAN protocol or a CANFD protocol;
FIG. 4 is a graph showing rising edge delays of Rx and Tx signals in a CAN protocol or a CANFD protocol according to an embodiment of the disclosure;
FIG. 5 is a schematic diagram of the falling edge delay of Rx signal and Tx signal in CAN protocol or CANFD protocol according to an embodiment of the disclosure;
FIG. 6 is an exemplary diagram of a 4-channel signal waveform when an error occurs in the LP mode for MIPID-PHY, in accordance with an embodiment of the present disclosure;
Fig. 7 is a flowchart of a signal processing method according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a signal transmission system according to an embodiment of the present disclosure.
Detailed Description
The following description of the technical solutions in the embodiments of the present disclosure will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person of ordinary skill in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
The problems of the signal transmission in the related art will be briefly described.
In a communication protocol such as CAN, the time interval between a transmission signal and a reception signal is not beyond the specified maximum reception time, if delay occurs during signal transmission, the rising edge transition time of the reception signal will be delayed, the time interval between the reception signal and the transmission signal will exceed the maximum reception time, and the reception node will continue to perform signal reception and recognition according to the specification of the relevant protocol, so that the reception node cannot normally recognize the reception signal, and thus a data transmission error occurs.
In view of the above problems, one method of the related art is to add a resistor to a signal transmission line such as a bus or a receiving port of a receiving node, and the access position and the resistance value of the resistor cannot be flexibly adjusted or cannot be realized, so that the method is not applicable to a high-speed signal with a high delay precision requirement, is not applicable to a part of low-speed signals, and is applicable to only a specific signal. Another way of the related art is to perform chip replacement on the transmitting node or the receiving node to increase the tolerance of the chip to the received signal, but this way is costly in hardware and cumbersome to operate, and also applies only to specific signals.
In view of this, the embodiments of the present disclosure provide a signal processing method, apparatus, and information transmission system, which can implement signal quality optimization in a transmission process on the premise of not affecting normal transmission of signals, and effectively avoid a situation that signals cannot be recognized normally after being transmitted to an opposite node.
Fig. 1 shows a schematic structural diagram of a signal processing apparatus provided by an embodiment of the present disclosure. Referring to fig. 1, a signal processing apparatus 100 of an embodiment of the present disclosure may include: the input module 110, the amplifying module 120, the capturing module 130, the sampling module 140, the analysis processing module 150 and the post-processing module 160 function as follows:
the input module is used for receiving a first signal, wherein the first signal is a signal sent by a first node to a second node;
the amplifying module is used for amplifying the amplitude of the first signal to obtain a second signal;
the capturing module is used for carrying out edge detection on the second signal so as to capture the data distribution parameters of the second signal;
The sampling module is used for sampling the second signal according to the data distribution parameter of the second signal so as to obtain sampling point data of the second signal;
the analysis processing module is used for analyzing and processing the second signal according to the sampling point data of the second signal so as to obtain a third signal which meets the data distribution requirement in the protocol specification;
and the post-processing module is used for carrying out reduction processing on the third signal to obtain a fourth signal, wherein the fourth signal simultaneously meets the data distribution requirement and the protocol parameter requirement of the protocol specification, and the fourth signal is used as an optimized first signal to be sent to the second node so that the second node can receive and identify the first signal from the first node.
The signal processing device 100 in the embodiment of the present disclosure performs processes such as amplification, edge detection, sampling, signal restoration, and protocol parameter adjustment on a first signal sent from a first node to a second node, so as to optimize signal quality in a transmission process, and even if a node receiving a signal in a signal transmission process experiences attenuation, interference, delay, and other conditions, the node still can normally receive and normally identify the signal, thereby ensuring that communication between nodes can be performed normally, effectively reducing data transmission errors between nodes, and improving accuracy of data transmission between nodes.
The signal processing apparatus 100 of the embodiments of the present disclosure may be adapted for use with a variety of communication protocols, including, but not limited to: two-wire serial bus (I2C, inter-INTEGRATED CIRCUIT) protocol, serial peripheral interface (SPI, serial Peripheral Interface) protocol, controller area network (CAN, controller Area Network) protocol, controller area network flexible data (CANFD, CAN with Flexible Data rate) protocol, mobile industry processor interface (MIPI, mobile Industry Processor Interface) protocol, universal serial bus (USB, universal Serial Bus) protocol, high speed serial computer expansion bus standard (PCIe, PERIPHERAL COMPONENT INTERCONNECT EXPRESS) protocol.
"First signal" refers to any signal transmitted between two communication nodes. The first signal may be a signal transmitted on any channel of the two-channel communication interface, or may be a signal transmitted on any channel of the multi-channel communication interface. In one example, the first signal may be a transmission signal in any one of the following communication protocols: I2C protocol, SPI protocol, CAN protocol, CANFD protocol, MIPI protocol, USB protocol, PCIe protocol. For example, the first signal may be a differential signal in the CAN FD or CAN protocol, may be a signal on any one of the two-channel signals in the I2C protocol, or may be a signal on any one of the five-channel signals in the dual mode in the MIPI protocol. The embodiments of the present disclosure are not limited with respect to the specific type of first signal and its communication protocol.
The signal processing apparatus 100 of the embodiments of the present disclosure may be implemented by software, hardware, or a combination of both. In one implementation, the signal processing apparatus 100 may be implemented by a hardware circuit. Fig. 2 shows a schematic circuit configuration of the signal processing apparatus 100. Referring to fig. 2, the input end of the input module 110 is used as the signal input end of the signal processing apparatus 100, the output end of the input module 110 is connected with the input end of the amplifying module 120, the output end of the amplifying module is connected with the input end of the capturing module 130, the output end of the capturing module 130 is connected with the input end of the sampling module 140, the output end of the sampling module 140 is connected with the input end of the analysis processing module 150, the output end of the analysis processing module 150 can be indirectly connected with the input end of the post-processing module 160 through the control module 170, and can also be directly connected with the input end of the post-processing module 160, and the output end of the post-processing module 160 can be used as the output end of the optimized signal of the signal processing module 100. The storage module 180 may be used to store information related to signals generated during the processing of the signal processing apparatus 100, signals themselves, and the like, where the storage module 180 may be read and written under the control of the control module 170, or may be directly accessed by the analysis processing module 150 and the post-processing module 160.
An exemplary implementation of each module in the signal processing apparatus 100 according to the embodiment of the present disclosure is described in detail below.
In some embodiments, the input module 110 may employ a dual channel signal input interface or a multi-channel signal input interface, and the type of interface employed by the input module 110 depends on the communication protocol employed by the first node and the second node. For example, if the first node communicates with the second node via the CAN protocol, the input module 110 may be, but is not limited to, a differential signal input interface defined in the CAN protocol. For another example, if the first node communicates with the second node via the MIPI protocol, the input module 110 may be, but is not limited to, a five-channel signal input interface defined in the MIPI protocol.
In a specific application, the input module 110 of the signal processing device 100 may be electrically connected to the amplifying module 120 in a detachable manner, so that a user can replace a corresponding interface according to a current usage scenario.
In some embodiments, the amplifying module 120 may be configured to amplify the amplitude of the first signal while maintaining the original data distribution shape of the first signal. That is, the amplitude of the second signal is greater than the first signal and the data distribution (i.e., waveform shape) of the second signal is the same as the data distribution of the first signal. The amplification module 120 amplifies the amplitude of the first signal and then performs subsequent capturing and sampling, so that the influence of interference on the signal can be reduced, and the characteristics of the first signal can be accurately captured. In one example, the amplification module 120 may be implemented as, but is not limited to: an operational amplifier, and the like.
In some embodiments, the capture module 130 may be configured to capture data distribution parameters of the second signal, which may include, but are not limited to, the amplitude of the second signal, rising edge rise time, falling edge fall time, pulse width, and the like. For example, the capture module 130 may be implemented as, but is not limited to: edge detection circuits, double edge detectors, etc. acquire signal parameters by detecting rising and/or falling edges of a signal.
The rising edge rise time may be a time when the rising edge of the second signal rises from 10% to 90%. Similarly, the falling edge falling time of the second signal may be the time the falling edge of the second signal falls from 90% to 10%. The amplitude of the second signal may include, but is not limited to, one or more of the following: the amplitude of each time point during which the rising edge of the second signal rises from 10% to 90%, the maximum amplitude of the rising edge of the second signal (i.e., the rising edge peak value), the amplitude of each time point during which the falling edge of the second signal rises from 10% to 90%, the maximum amplitude of the falling edge of the second signal (i.e., the falling edge peak value), and so on. When sampling, the sampling module 140 may uniformly sample the second signal as a whole.
Illustratively, when collecting high-speed signals, the Bandwidth (BW) of the amplifying module 120 needs to be large enough to ensure that the collected signals are not distorted, thereby improving the accuracy of subsequent analysis processes. Preferably, the bandwidth of the amplifying module 120 at least satisfies BW (MHz) =0.35/Δt, Δt being the time between 10% and 90% of the rising or falling edge of the signal.
In some embodiments, sampling module 140 may be implemented as, but is not limited to: an analog-to-digital converter (ADC) chip, an analog-to-digital converter (AD) collector, an AD sampling circuit, or others. The sampling bit number of the sampling module 140 is preferably 8 bits, 10 bits, 12 bits or more in view of the higher sampling bit number, the higher the subsequent waveform restoration accuracy. For example, if the sampling bit number of the sampling module 140 is 8 bits, the precision may be quantized to 2^8 =256, if the voltage is between 0V and 10V, the minimum resolution is 10/256= 0.0390625, if the level of the first signal is 0.01V, the corresponding value is 00000000, and if the level of the first signal is 0.04V, the corresponding value is 00000001, the corresponding level is close to 0.
Illustratively, at high signal acquisition, the sampling module 140 is at least 5 times faster than the signal rise or fall time to improve the accuracy of the signal. Preferably, the sampling module 140 preferably has an acquisition rate that is 5 times higher than the rising or falling edge time of the signal.
In some embodiments, the process of the analysis processing module 150 performing analysis processing on the second signal according to the sampling point data of the second signal to obtain a third signal with data distribution conforming to the protocol specification may include: the analysis processing module 150 analyzes the second signal according to the sampling point data of the second signal to find out which data in the second signal does not meet the requirement of the protocol specification on the data distribution, and adjusts the data in the second signal according to the requirement of the protocol specification on the data distribution, so as to obtain a third signal, wherein the data distribution (e.g. waveform) of the third signal meets the protocol specification.
In some embodiments, the analysis processing module 150 may also be configured to: after the third signal is obtained, detecting whether the third signal meets the protocol parameter requirements in the protocol specification according to the jump time of the third signal, and generating a parameter modification instruction for the third signal if the third signal does not meet the protocol parameter requirements in the protocol specification; if the protocol parameter of the third signal accords with the protocol specification, the parameter modification instruction is not required to be generated or the parameter modification instruction with the value of null is generated. The post-processing module is further configured to adjust the restored third signal based on the parameter modification instruction to obtain a fourth signal, so that the fourth signal can simultaneously meet the data distribution requirement and the protocol parameter requirement of the protocol specification.
It should be noted that, the transition time may be a rising edge transition time and/or a falling edge transition time.
In some embodiments, if the signal processing device further includes a memory module; the analysis processing module may be further configured to store the transition time of the third signal as the transition time of the first signal in the storage module, so as to use the transition time of the first signal as the transition time of the reference signal of the other signals.
Specifically, the analysis processing module 150 may detect the transition time of the third signal and read the transition time of the reference signal of the first signal from the storage module 180, determine whether the third signal meets the protocol parameter requirement in the protocol specification according to the transition time of the third signal and the transition time of the reference signal of the first signal, if so, it is not necessary to generate a parameter modification instruction or generate a parameter modification instruction with an empty value, send the third signal to the post-processing module 160 for reduction processing, and if not, generate a parameter modification instruction and send the third signal and the parameter modification instruction thereof to the post-processing module 160 together.
In other embodiments, the analysis processing module may be further configured to store the parameter modification instruction and/or the third signal and the like in the storage module, so that the post-processing module can obtain the corresponding plurality of third signals and parameter modification instructions thereof from the storage module in parallel during the process of processing the plurality of first signals by the signal processing device.
In some embodiments, the signal processing apparatus may further include: the control module 170 is configured to control reading and writing of the storage module 180, the analysis processing module 150 is configured to store data or information into the storage module 180 through the control module 170, and the post-processing module 160 is configured to read required information or data from the storage module 180 through the control module 170.
Illustratively, the control module 170 may be implemented as, but is not limited to: the memory module 180 is preferably a low latency memory space or a memory supporting high speed reading and writing.
Taking the CAN protocol or the CAN FD protocol as an example, the analysis processing module may be used to: and taking the difference between the jump time of the third signal and the jump time of the reference signal of the first signal as the time delay of the first signal, judging whether the time delay of the first signal exceeds the maximum receiving time in the CAN protocol specification, if the time delay of the first signal exceeds the maximum receiving time in the CAN protocol specification, determining that the third signal does not meet the protocol parameter requirements in the CAN protocol specification, and if the time delay of the first signal does not exceed the maximum receiving time in the CAN protocol specification, determining that the third signal does not meet the protocol parameter requirements in the CAN protocol specification.
Taking CAN protocol or CANFD protocol as an example, the reference signal of the first signal may be a transmission signal from the second node received before the first node sends the first signal, the transmission signal carrying the previous bit data and the first signal carrying the current bit data. The CAN protocol or CANFD protocol specifies that the time interval between the previous bit data and the current bit data cannot exceed the maximum reception time specified by the protocol to ensure that the data transmitted on the CAN bus CAN be synchronized. The time interval between the previous bit data and the current bit data is equal to the time interval between the rising edge transition time of the first signal and the rising edge transition time of the reference signal thereof or the time interval between the falling edge transition time of the first signal and the falling edge transition time of the reference signal thereof, namely the delay time of the first signal compared with the reference signal thereof, namely the delay time of the first signal.
Taking the CAN protocol or CANFD protocol as an example, the first signal is sent out after the first node receives the reference signal, where the signal transmission device 100 may save the rising edge transition time or the falling edge transition time of the reference signal in the process of processing the reference signal of the first signal, and the time interval between the rising edge transition time of the first signal and the rising edge transition time of the reference signal, that is, the delay time of the first signal compared with the reference signal, that is, the delay time of the first signal, may be calculated in real time according to the rising edge transition time of the first signal and the pre-saved rising edge transition time of the reference signal in the process of processing the first signal by the signal transmission device 100.
Taking the MIPI protocol as an example, the analysis processing module may be configured to: judging whether the jump time of the third signal is aligned with the jump time of the reference signal of the first signal, if the jump time of the third signal is aligned with the jump time of the reference signal of the first signal, determining that the third signal meets the protocol parameter requirement in the MIPI protocol specification, and if the jump time of the third signal is not aligned with the jump time of the reference signal of the first signal, determining that the third signal does not meet the protocol parameter requirement in the MIPI protocol specification.
In the MIPI protocol, the rising edge transition times of the MIPID-PHY four-way signals need to be aligned. If the first signal is a signal on any one of four channels of MIPID-PHY, signals on other three channels of four channels of MIPID-PHY may be used as reference signals of the first signal, the signal processing apparatus 100 may process the signals on the four channels in parallel, and acquire, in real time, rising edge transition moments of the third signal generated in the processing process and store the rising edge transition moments in the storage module, so that the analysis processing module may execute the above MIPI protocol parameter requirement determination of the signals on the four channels in parallel.
In some embodiments, if the data carried by the first signal is periodic, the time parameter, the level parameter, etc. of the first signal may be calculated directly from the frequency.
In some embodiments, the process of the post-processing module 160 performing the reduction processing on the third signal may include: the amplitude of the second signal is retracted according to the amplification ratio of the amplification module 120 to obtain a restored third signal, where the amplitude of the restored third signal is the same as the amplitude of the first signal.
If the parameter modification instruction received by the post-processing module 160 is null or the parameter modification instruction of the third signal is not received, the fourth signal can be obtained by performing the restoration processing on the third signal. If the parameter modification instruction received by the post-processing module 160 is not null, after the third signal is restored, the restored third signal may be adjusted according to the parameter modification instruction to obtain a fourth signal, where the data distribution and the protocol parameter of the fourth signal obtained by the post-processing module 160 are both in accordance with the protocol specification, and the amplitude of the fourth signal is the same as the amplitude of the first signal.
Illustratively, the post-processing module 160 may be implemented as, but is not limited to, a sample processing device, such as calculating a reduction waveform using a sin (x)/x function.
The parameter modification instruction is used to instruct the post-processing module 160 to process the third signal after the restoration processing so that the fourth signal finally obtained meets the protocol parameter requirement in the protocol specification. In one example, the parameter modification indication may include a transition time of the third signal and a transition time of the reference signal of the first signal. In one example, the parameter modification indication may comprise: the number of time shift units is obtained from the transition time of the third signal and the transition time of the reference signal of the first signal.
The post-processing module may be configured to determine a number of time-shift units according to the parameter modification indication and time-shift the restored third signal according to the number of time-shift units so that the fourth signal meets a protocol parameter requirement in the protocol specification. If the parameter modification instruction includes a time shift unit, the restored third signal may be directly time-shifted according to the time shift unit. If the parameter modification instruction includes the transition time of the third signal and the transition time of the reference signal of the first signal, a time shift unit may be calculated according to the transition time of the third signal and the transition time of the reference signal of the first signal, and then the recovered third signal may be time-shifted according to the time shift unit.
The calculation mode of the time shift unit number is related to the protocol parameter requirement in the protocol specification. In one example, if the current protocol is the CAN protocol or CANFD protocol, the time-shift unit may be calculated as follows: and calculating the difference between the jump time of the third signal and the jump time of the reference signal of the first signal, taking the difference as the time delay of the first signal, and calculating the difference between the maximum receiving time in the CAN protocol and the time delay of the first signal, wherein the difference between the maximum receiving time and the time delay of the first signal is the time shift unit number.
In one example, if the current protocol is MIPI, the time-shift unit may be calculated as follows: and selecting rising edge jumping time of signals on a third channel in the MIPID-PHY four channels as a reference value, and taking signals on a second channel in the MIPID-PHY four channels as first signals to execute the processing process of the signal processing device 100, wherein the difference value between the rising edge jumping time of the third signals generated in the processing process and the reference value is the time shift unit number in the processing process.
Embodiments in which post-processing module 160 time-translates the first signal are related to a communication protocol. In some embodiments, time shifting the restored third signal may include, but is not limited to: forward translation, backward translation, and/or other time translation operations. Specifically, if the number of time-shift units is positive, forward shift is possible; if the number of time shift units is negative, then a backward shift is required.
For example, if the current communication protocol is the CAN protocol or the CAN FD protocol, the calculated number of time-shift units is n, where n is an integer greater than 0, the post-processing module 160 may advance the first signal by n time units, where n is equal to or greater than a difference between the maximum receiving time and the delay time of the first signal with respect to the transmission signal. By advancing the first signal by n time units, the time delay of the first signal and the first signal CAN be reduced to be smaller than or equal to the maximum receiving time specified by the CAN protocol, so that the problems of signal identification errors and the like caused by the delay of the first signal are solved.
For another example, if the current communication protocol is the MIPI protocol, the post-processing module 160 may perform time shifting on the reduced third signal generated in the processing process of the signals of other channels by using the rising edge transition time of the signal on any one of the four channels MIPID-PHY as the reference value, so that the rising edge transition times of the signals on the four channels MIPID-PHY are aligned, thereby meeting the rising edge alignment requirement of the MIPI protocol.
Illustratively, the post-processing module 160 may be implemented as, but is not limited to: waveform clipping circuitry, delay circuitry, or other circuitry or devices having similar functionality.
The signal processing apparatus 100 of the embodiments of the present disclosure may be adapted for any signal including, but not limited to, low speed signals similar to the differential signals in the CAN protocol and high speed signals similar to the MIPID-PHY signals in the MIPI protocol. The operation principle of the signal processing apparatus 100 provided in the embodiment of the present disclosure is explained in detail below with reference to specific examples.
Example one
Taking CAN FD as an example, the ACK acknowledgement field of CAN FD includes acknowledgement slots and acknowledgement delimiters, where the receiving node recognizes it as a valid acknowledgement with 2-bit time. From a high speed data field to a slow speed arbitration field, clock switching causes transceiver phase shifting and bus propagation delay. To compensate for its phase shift and delay, this additional 1 bit time is added to CAN FD compared to conventional CAN.
In the CAN network, any two nodes, namely a first node and a second node, are communicated through a CAN bus. The second node transmits a Tx signal to the first node through the CAN bus, and the first node returns an Rx signal as an ACK response to the second node after receiving the Tx signal. If the second node can receive and identify the Rx signal returned by the first node, the first node and the second node handshake successfully. If the Rx signal is delayed during transmission, the second node cannot normally identify the Rx signal, and the first node and the second node fail to handshake. The signal processing device provided by the embodiment of the disclosure can solve the problem.
Fig. 4 shows a schematic signal interaction between a first node and a second node after applying the signal processing apparatus 100 according to an embodiment of the present disclosure. Referring to fig. 4, the second node 300 sends a Tx signal to the first node through the CAN bus, the Tx signal is processed by the signal processing device 100 and becomes an optimized Tx signal to be sent to the first node 200, because the Tx signal itself meets the protocol parameter requirement of the CAN FD, the signal processing device 100 amplifies, edge detects, samples, analyzes and post-processes the Tx signal, only needs to perform the recovery processing in the post-processing, meanwhile, the jump time (the jump time of the rising edge and/or the jump time of the falling edge) of the Tx signal is saved, the first node 200 receives the Tx signal and returns the Rx signal as an ACK response to the second node 300, the Rx signal is processed by the signal processing device 100 and becomes the optimized Rx signal to be sent to the second node 300, the signal processing device 100 amplifies, edge detects, samples, analyzes and post-processes the Rx signal, and finds that the delay time of the Rx signal is not in accordance with the protocol parameter requirement of the nfd protocol compared with the Tx signal, the post-processing includes time shifting the Rx signal according to the jump time of the Rx signal and the time of the jump time of the Rx signal, so that the time of the Rx signal is shortened to the time of the Rx signal to the second node when the Rx signal reaches the normal time of the second node or the normal receiving signal is shortened, and the normal receiving time of the second node is equal to the normal receiving time of the signal. Therefore, when the time delay between the Rx signal and the Tx signal exceeds the range specified by the CANFD protocol, the signal processing device 100 according to the embodiment of the disclosure can eliminate the communication anomaly caused by the time delay by processing the Rx signal, thereby effectively avoiding the data transmission error in the communication process.
Fig. 4 shows ase:Sub>A rising edge delay schematic diagram of an Rx signal and ase:Sub>A Tx signal, fig. 5 shows ase:Sub>A falling edge delay schematic diagram of the Rx signal and the Tx signal, in fig. 4 and 5, c1 represents the Tx signal, c2 represents the Rx signal, referring to fig. 4, the rising edge delay time between the Rx signal and the Tx signal is Δt1, the falling edge delay time between the Rx signal and the Tx signal is Δt2, and if the CANFD protocol requires that the maximum receiving time of the received signal and the transmitted signal is ase:Sub>A nanosecond (ns), if Δt1 and Δt2 are respectively B ns (i.e. the delay time between the Rx signal and the Tx signal is the corresponding receiving time of the received signal and the transmitted signal when the Rx signal reaches the second node), it is found that B is greater than ase:Sub>A by comparison, which indicates that the delay time between the Rx signal and the Tx signal exceeds the maximum receiving time specified in the CAN protocol, the signal processing device 100 CAN advance the Rx signal by at least (B-ase:Sub>A) ns to reach the second node, so that the translated Rx signal reaches the second node CAN meet the receiving time Δt1 or the normal receiving time of the received signal and the second node, and the normal transmission protocol CAN be satisfied.
Example two
MIPI can be divided into according to the physical layer (PHYSICAL STANDARD): the logic layer of the D-PHY mainly faces to the purposes of cameras, display screens and the like, D in the D-PHY is the meaning of Roman numeral 500, and the initial version of the D-PHY can support 500Mbits/s. The D-PHY adopts a differential signal transmission mode (differential, LP is single-ended transmission), each data path (lane) is composed of 2 signal lines, P and N are respectively necessary, the clock data line (clock lane) is necessary, the number of the data paths (data lane) can be selected according to the throughput rate of data transmission, and at least one data path (data lane) is required.
MIPID-PHY is composed of a 4-channel data line and a 1-channel clock line, each channel being a pair of differential signals. There are two modes of MIPI signaling in MIPID-PHY, namely high speed (HS, HIGH SPEED) and Low Power (LP), which are mixed together to operate, and when there is a high data amount of data transmission, the mode is switched from the LP mode to the HS mode, and when the data transmission of the high data amount is completed, the mode is switched from the HS mode to the LP mode, and the data is sent along with a clock, and in one clock period, both rising and falling edges collect the data. In the signal transmission process, if the data transmitted in the HS mode or the LP mode does not correspond to the clock, the signal transmission is regarded as abnormal, and the data cannot be normally transmitted. The MIPID-PHY may be a single-channel transmission or a multi-channel simultaneous transmission, but both HS and LP need to correspond to the clock during the multi-channel transmission, and each signal needs to be aligned during the mode switching when the LP mode is switched to the HS mode and when the HS mode is switched to the LP mode, so that the data transmission in the MIPID-PHY can be stabilized and normal.
In the LP mode, data transmission in MIPID-PHYs may be problematic. FIG. 7 shows exemplary signal waveforms for MIPID-PHY with errors in the LP mode, and FIG. 7 shows waveforms of 4-channel signals in MIPID-PHY, namely Lane0, lane1, lane2, lane3, and their rising edge transitions from top to bottom, respectively. The signal rising edge jump time on lane Lane0 is at t1, the signal rising edge jump time on lane Lane1 is at t3, the signal on lane Lane1 is delayed by Δt3=t3-t 1 compared to the signal rising edge jump time on lane Lane0, the signal rising edge jump time on lane Lane2 is at t2, the signal on lane Lane2 is advanced by Δt4=t2-t 1 compared to the signal rising edge jump time on lane Lane0, the rising edge of the signal on lane3 is delayed by Δt3 or earlier by Δt4 than the rising edge of the signal on lane0, which means that the 4-lane signals are misaligned, and the 4-lane signals in the LP mode (the signal on any lane of the 4-lane signals corresponds to the first signal) need to be aligned to avoid errors in data transmission.
Fig. 7 shows that the rising edge of the LP mode is misaligned during the process of converting the HS mode into the LP mode, and thus, it can be considered that the data transmission is not in accordance with the MIPI protocol, and an error occurs in data transmission, so that the processing needs to be performed on each channel signal. When the HS mode of MIPID-PHY is switched to the LP mode, an End-of-Transmission (EOT) time requirement exists, and the alignment operation can be carried out on a single signal or multiple signals only when the EOT time required by the MIPI protocol is met. The signal processing device in the embodiment of the present disclosure may perform time shift on signals on other channels with signals of any one or more channels as a reference, so that rising edges of signals of the channels are aligned, thereby aligning rising edges of signals of the channels in MIPID-PHY in LP mode, ensuring that 4-channel signals transmitted in MIPID-PHY can be normally identified by an opposite node, and avoiding errors in data transmission. For example, for the example of fig. 7, the signal on lane0 may be taken as a reference object, the signal on lane1 may be shifted forward by Δt4 time units, the signal on lane2 may be shifted backward by Δt3 time units, the signal on lane3 may be shifted forward by Δt3 time units or shifted backward by Δt4 time units, i.e., clipping may be performed in the same low level or high level segment such that the rising edges of the 4-lane signals transmitted in MIPID-PHY are aligned. For the example of fig. 7, the signal on lane2 may also be taken as a reference object, and in the same level segment, the signal on lane0 is shifted forward by Δt3 time units, the signal on lane1 is shifted forward by "Δt3+Δt4" time units, and the signal on lane3 is not shifted or shifted forward by "Δt3+Δt4" time units until the signals on 4 lanes are aligned. In this way, the 4-channel signal transmitted through MIPID-PHY to the opposite node meets the requirement of the opposite end to set the alignment of the rising edge of the 4-channel signal in MIPI protocol, and the 4-channel signal can be identified normally.
From the above, even if phenomena such as interference and delay occur in the signal transmission process, the signal processing device 100 provided by the embodiment of the disclosure optimizes the signal, so that the signal can be normally identified after reaching the opposite node, and thus communication between nodes can be normally performed, and data transmission can be correct.
The present disclosure also provides a signal processing method, which is implemented by the foregoing signal processing apparatus 100, and fig. 7 shows a flow chart of the signal processing method. Referring to fig. 7, a signal processing method of an embodiment of the present disclosure may include:
Step 701, receiving a first signal, where the first signal is a signal sent by a first node to a second node;
step 702, amplifying the amplitude of the first signal to obtain a second signal;
step 703, performing edge detection on the second signal to capture a data distribution parameter of the second signal;
step 704, sampling the second signal according to the data distribution parameter of the second signal to obtain sampling point data of the second signal;
Step 705, analyzing the second signal according to the sampling point data of the second signal to obtain a third signal with data distribution conforming to the protocol specification;
in step 706, the third signal is subjected to a reduction process to obtain a fourth signal, where the fourth signal meets both the data distribution requirement and the protocol parameter requirement of the protocol specification, and the fourth signal is sent to the second node as an optimized first signal, so that the second node can receive and identify the first signal from the first node.
In some embodiments, step 705 may further comprise: after the third signal is obtained, whether the third signal meets the protocol parameter requirements in the protocol specification or not is detected according to the jump time of the third signal, and if the third signal does not meet the protocol parameter requirements in the protocol specification, a parameter modification instruction for the third signal is generated. Step 706 may further include: and adjusting the restored third signal based on the parameter modification instruction to obtain a fourth signal, so that the fourth signal can simultaneously meet the data distribution requirement and the protocol parameter requirement of the protocol specification.
For other technical details of the signal processing method provided in the embodiments of the present disclosure, reference may be made to the foregoing apparatus portion, and details are not repeated here.
The embodiment of the disclosure also provides a signal transmission system, and fig. 8 shows an exemplary structural schematic diagram of the signal transmission system. Referring to fig. 8, a signal transmission system 800 of an embodiment of the present disclosure may include: the first node 200, the second node 300 and the signal processing device 100 as described above. Referring to fig. 8, a first signal transmitted from the first node 200 is processed by the signal processing apparatus 100 and then output to the second node 300, so as to be received and identified by the second node 300.
In some embodiments, communication between the first node and the second node may be based on one of the following protocols: I2C protocol, SPI protocol, CAN protocol, CANFD protocol, MIPI protocol, USB protocol, PCIe protocol. In a specific application, the communication manner between the signal processing device 100 and the first node 200 and the second node 300 is related to the adopted communication protocol. Taking the CAN protocol or the CAN FD protocol as an example, the first node 200 and the second node 300 are connected through a CAN bus, and the signal processing apparatus 100 may be provided in the first node 200, or may be provided in the second node 300, or may be mounted on the CAN bus. When the signal processing device 100 is provided inside the node, it may be provided between the CAN transceiver and the CAN controller or at the output end of the CAN transceiver. The embodiments of the present disclosure are not limited to the specific connection and deployment of the signal processing apparatus 100.
The foregoing description of the preferred embodiments of the present disclosure is not intended to limit the disclosure, but rather to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the present disclosure.

Claims (12)

1. A signal processing apparatus, characterized in that the signal processing apparatus comprises:
The input module is used for receiving a first signal, wherein the first signal is a signal sent by a first node to a second node;
an amplifying module for amplifying the amplitude of the first signal to obtain a second signal;
the capturing module is used for carrying out edge detection on the second signal so as to capture the data distribution parameters of the second signal;
The sampling module is used for sampling the second signal according to the data distribution parameter of the second signal so as to obtain sampling point data of the second signal;
The analysis processing module is used for analyzing and processing the second signal according to the sampling point data of the second signal so as to obtain a third signal which meets the data distribution requirement in the protocol specification;
And the post-processing module is used for carrying out reduction processing on the third signal to obtain a fourth signal, wherein the fourth signal simultaneously accords with the data distribution requirement and the protocol parameter requirement of the protocol specification, and the fourth signal is used as an optimized first signal to be sent to a second node so that the second node can receive and identify the first signal from the first node.
2. The apparatus of claim 1, wherein the device comprises a plurality of sensors,
The first signal is a signal on any channel of the two-channel communication interface; or alternatively
The first signal is a signal on any channel of a multi-channel communication interface.
3. The apparatus of claim 1, wherein the first signal is a transmission signal defined by any one of the following communication protocols:
Two-wire serial bus I2C protocol;
Serial Peripheral Interface (SPI) protocol;
a controller area network CAN protocol;
controller area network flexible data CANFD protocol;
mobile industry processor interface MIPI protocol;
a universal serial bus USB protocol;
The high speed serial computer expansion bus standard PCIe protocol.
4. The apparatus of claim 1, wherein the data distribution parameters of the second signal comprise one or more of: pulse amplitude, pulse rise time, pulse fall time, pulse width.
5. The signal processing device according to any one of claims 1 to 4, wherein,
The analysis processing module is further configured to detect, after the third signal is obtained, whether the third signal meets a protocol parameter requirement in a protocol specification according to a transition time of the third signal, and if the third signal does not meet the protocol parameter requirement in the protocol specification, generate a parameter modification instruction for the third signal;
the post-processing module is further configured to adjust the restored third signal based on the parameter modification instruction to obtain the fourth signal, so that the fourth signal can simultaneously meet the data distribution requirement and the protocol parameter requirement of the protocol specification.
6. The apparatus of claim 5, wherein the transition times are rising edge transition times and/or falling edge transition times.
7. The signal processing device according to claim 5, wherein,
The signal processing apparatus further includes: the storage module is connected with the analysis processing module;
The analysis processing module is further configured to take the transition time of the third signal as the transition time of the first signal, so that the transition time of the first signal is used as the transition time of the reference signal of the other signals.
8. The apparatus of claim 5, wherein the analysis processing module is configured to detect whether the third signal meets a protocol parameter requirement in a protocol specification in at least one of:
Taking the difference between the jump time of the third signal and the jump time of the reference signal of the first signal as the time delay of the first signal, judging whether the time delay of the first signal exceeds the maximum receiving time in the CAN protocol specification, and if so, determining that the third signal does not meet the protocol parameter requirements in the CAN protocol specification;
And judging whether the jump time of the third signal is aligned with the jump time of the reference signal of the first signal, if so, determining that the third signal meets the protocol parameter requirements in the MIPI protocol specification.
9. The signal processing device according to claim 5, wherein,
The parameter modification indication comprises a jump time of the third signal and a jump time of a reference signal of the first signal; or the parameter modification indication comprises: the time shift unit number is obtained according to the jump time of the third signal and the jump time of the reference signal of the first signal;
and the post-processing module is used for determining the time shift unit number according to the parameter modification instruction and performing time shift on the restored third signal according to the time shift unit number so that the fourth signal accords with the protocol parameter requirement in the protocol specification.
10. A signal processing method, comprising:
receiving a first signal, wherein the first signal is a signal sent by a first node to a second node;
Amplifying the amplitude of the first signal to obtain a second signal;
performing edge detection on the second signal to capture data distribution parameters of the second signal;
Sampling the second signal according to the data distribution parameter of the second signal to obtain sampling point data of the second signal;
analyzing and processing the second signal according to the sampling point data of the second signal to obtain a third signal with data distribution conforming to a protocol specification;
and carrying out reduction processing on the third signal to obtain a fourth signal, wherein the fourth signal meets the data distribution requirement and the protocol parameter requirement of the protocol specification at the same time, and the fourth signal is sent to the second node as an optimized first signal so that the second node can receive and identify the first signal from the first node.
11. A signal transmission system, comprising: a first node, a second node and a signal processing device according to any one of claims 1 to 9, wherein a first signal sent by the first node is processed by the signal processing device and then output to the second node so as to be received and identified by the second node.
12. The signal transmission system of claim 11, wherein the first node communicates with the second node based on one of the following protocols:
Two-wire serial bus I2C protocol;
Serial Peripheral Interface (SPI) protocol;
a controller area network CAN protocol;
controller area network flexible data CANFD protocol;
mobile industry processor interface MIPI protocol;
a universal serial bus USB protocol;
The high speed serial computer expansion bus standard PCIe protocol.
CN202410343895.2A 2024-03-22 2024-03-22 Signal processing method, device and signal transmission system Pending CN118199696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410343895.2A CN118199696A (en) 2024-03-22 2024-03-22 Signal processing method, device and signal transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410343895.2A CN118199696A (en) 2024-03-22 2024-03-22 Signal processing method, device and signal transmission system

Publications (1)

Publication Number Publication Date
CN118199696A true CN118199696A (en) 2024-06-14

Family

ID=91392296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410343895.2A Pending CN118199696A (en) 2024-03-22 2024-03-22 Signal processing method, device and signal transmission system

Country Status (1)

Country Link
CN (1) CN118199696A (en)

Similar Documents

Publication Publication Date Title
US9059816B1 (en) Control loop management and differential delay correction for vector signaling code communications links
US7493509B2 (en) Intra-pair differential skew compensation method and apparatus for high-speed cable data transmission systems
JP5588976B2 (en) Frequency response bus coding
US8159887B2 (en) Clock synchronization in a memory system
US20220247547A1 (en) Low power edge and data sampling
US7668467B2 (en) Demodulation circuit, IC, and communication device
US9001950B2 (en) Information processing apparatus, serial communication system, method of initialization of communication therefor, and serial communication apparatus
TW200408195A (en) Data recovery circuit, phase detection circuit and method for detecting and correcting phase conditions
US8179148B2 (en) Information detecting apparatus and method
CN107431614B (en) Method and apparatus for automatic offset compensation
CN101119185B (en) Automatic equalizer and digital eye pattern detecting unit and method
EP1643647A1 (en) Device and method for matching output impedance in signal transmission system
TWI681652B (en) Interface circuit, signal transmission system and signal transmission method thereof
US9071478B2 (en) Methods for performing adaptive equalization and associated apparatus
US20050111569A1 (en) Data code transmission device
CN113630296A (en) Automatic LVDS transmission delay window testing method and system
US20130141076A1 (en) Spread Spectrum Clock Signal Detection System and Method
US6981185B1 (en) Methods and apparatus to correct duty cycle
CN118199696A (en) Signal processing method, device and signal transmission system
JP4236913B2 (en) Data transfer device
US11190331B1 (en) Data alignment in physical layer device
CN117076372B (en) Communication signal receiving interface circuit and communication method
JP2001060977A (en) Transmission system
JP4952167B2 (en) Data transmission equipment
JP2003174484A (en) Data transmission system, data transmitter-receiver therefor, and data transmission method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination