10-19-2022 05:28 PM
I have PCIe-6321 NI card, I am measuring uart Tx (Rx) pin with maximum sampling rate 250KHz getting analog waveform.
How I can decode this waveform into characters sending over uart with known baud rate and format (115200 8N1 in my specific case)?
For example, here is my waveform for character "1" (31Hex):
"2" (32Hex):
AA Hex character:
55 Hex character:
Is this even possible with 250K sampling rate?
Anybody ever done such thing? Anybody can share VI?
Solved! Go to Solution.
10-20-2022 03:45 AM
@SergeS wrote:
Is this even possible with 250K sampling rate?
Yes, but just barely so. I guess you are familiar with Nyquist-Shannon? You typically want to do some Oversampling.
Anybody ever done such thing? Anybody can share VI?
Why would you want to do that? Is this for a practical application, troubleshooting, homework, or curiosity?
10-20-2022 09:22 AM - edited 10-20-2022 09:23 AM
It is for practical application, I would like to test uart communication between some devices so I have captured waveform on Rx-Tx lines.
I have setup some limits for voltage and timing, but it would be beneficiary for me to decode data and to compare with known data I am sending over.
Yes, I am familiar with Nyquist-Shannon criteria, according to it I am on the edge, in "gray" zone, that is why I am asking is this even possible...
Anybody can share?
10-20-2022 10:24 AM
@SergeS wrote:
It is for practical application, I would like to test uart communication between some devices
In that case, I recommend using a logic analyzer or RS-232 sniffer. There are also oscilloscopes that can automatically decode the bytes for you. Even hooking up an RS-232-USB-adapter or an Arduino might do the trick. This will probably be more robust (and cheaper) than reverse-bit-banging it yourself.
10-20-2022 11:14 AM
I would rather get a USB-FTDI adapter and use the FTDI libraries for robustness - saves you a lot of engineering time and effort.
10-20-2022 03:21 PM
Ok, thanks to all answered.
I have already FTDI USB adapter, I just would think somebody will offer already existing VI 🙂