1. Field of the Invention
The present invention relates to signal decoding systems and methods, and particularly to a system and method for decoding signals outputted from electronic devices.
2. Description of Related Art
A signal acquisition device, such as an oscilloscope may be used to decode signals outputted from electronic devices and analyze which electronic device the signals are from. The oscilloscope may be used to present the signals on a screen of the oscilloscope in signal waveforms. Often, technician may manually decode the signals by observing and analyzing the signal waveforms.
However, if many signal waveforms are to be decoded, it becomes difficult for the technician to deal with manually, thereby making the signal decoding inaccurate and inefficient.
What is needed, therefore, is to provide a signal decoding system and method to overcome the above described shortcomings.
Referring to
The decoding unit 500 includes a processor 300 and a memory system 400. A segmenting module 402, a decoding module 404, and a classification module 406 are stored in the memory system 400. The processor 300 executes the segmenting module 402, the decoding module 404, and the classification module 406. The processor 300 and the memory system 400 may belong to a computer system or the signal acquisition unit 200 depending on the embodiment.
The segmenting module 402 is configured for dividing the signal waveforms displayed on the screen of the signal acquisition unit 200 into predetermined or selected segments. Each segment includes a start position and an end position.
The decoding module 404 is configured for decoding the segmented signal waveforms. The classification module 406 is configured for comparing the indicating address of the decoded signal waveforms with an electronic device address list pre-stored in the classification module 406, and for determining which electronic device the decoded signal waveforms are from. If the indicating address of the decoded signal waveform is equal to one electronic device address of the address list, the signal is determined to come from the electronic device, the signals are classified by the electronic device address.
The following depicts how the segmenting module 402 performs the segment division for the signal waveforms.
Referring to
After determining the start position and end position of each segment of the data waveform SDA and clock waveform SCL, the data waveform SDA and clock waveform SCL can be divided into segments and the segmented data waveform SDA can be decoded. The following depicts how to decode and classify the data waveform SDA by the decoding module 404 and the classification module 406.
Referring to
Referring to
In step S10, the segmenting module 402 divides the data waveform SDA and the clock waveform SCL into segments. If a point of the data waveform SDA is located between the two adjacent points of the clock waveform SCL, the two adjacent points are turning points of the clock waveform SCL in opposite directions, and the point is regarded as the start position of a segment of the data waveform SDA. One of the two adjacent points of the clock waveform SCL which direction change is the same as the start position of the data waveform SDA is the start position of a segment of the clock waveform SCL. The previous point which is adjacent with the start position of the segment of the data waveform SDA and the direction change is opposite to the start poison of the segment of the data waveform SDA is the end position of the previous segment of the data waveform SDA. The previous point which is adjacent with the start position of the segment of the data waveform SCL and the direction change is opposite to the start poison of the segment of the data waveform SCL is the end position of the previous segment of the data waveform SCL.
In step S20, the decoding module 404 draws vertical lines from the clock bits of each segment of the clock waveform SCL to intersect data waveform SDA at data bits under the same horizontal coordinate.
In step S30, if longitudinal coordinate values of the data bits are higher than the default value, the data bits are decoded as “1”; if less than the default value, the data bits are decoded as “0”.
In step S40, the classification module 406 compares the decoded data bits denoting the address of the electronic device with a pre-stored electronic device address list. If the decoded indicating address of the electronic device is not equal to one of the electronic device addresses of the address list, the procedure goes to the end;
In step S50, if the decoded indicating address of the electronic device is equal to one of the electronic device address of the address list, the signal is determined to come from the electronic device, and the signals are classified by the electronic device address.
It is to be understood, however, that even though numerous characteristics and advantages of the embodiments have been set forth in the foregoing description, together with details of the structure and function of the embodiments, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the embodiments to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
200810302473.1 | Jul 2008 | CN | national |