troubleshooting Question

Capture and interpret serial port data

Avatar of viki2000
viki2000Flag for Germany asked on
SoftwareMiscellaneousMath / SciencePCHardware
10 Comments1 Solution1783 ViewsLast Modified:
I use a microcontroller to generate a sine wave. The microcontroller has a serial port (UART) and sends the digital generated data to a serial port of the PC. I use a USB to RS232 TTL adapter.
I can see the data on PC using serial port terminal software.
The data is sent using 115200 baud rate and has the format 8 bit, odd, 2 bit of stop.
I have tested several serial port programs. Among them are RealTerm to see and capture or RS232 Data Logger to capture.
My problem is that I cannot see the data in the proper format.
I expect to see some number, positive and negative, which define the sine wave and in fact I can see them on the screen using RealTerm software set properly, but the real problem is that I would like to capture the data and analyze it later, eventually in Excel or other programs.
When is captured, then is either HEX or String ASCII and for some reason I cannot convert it to the positive and negative, which define the sine wave. Either is not captured properly or must be converted. Here I need the help.
ASKER CERTIFIED SOLUTION
d-glitch
Research Engineer - Electrical

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros