Linux serial port data capture and decoding

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
I think this should be pretty straightforward for someone with technical knowledge about serial port data transfer. But that's not me, so I'm here. What I've got is my wife's bicycling mini-computer that hooks up via serial port to transfer data back to a PC. Naturally, the software is Windows-only, and nobody's put together a Linux version yet. But a little snooping around in Windows shows that the "protocol" is dead simple: PC connects to the device at 9600-8N1, sends a "D," and receives a stream of data. When the stream ends the PC sends a "q" to get the next chunk of data. This repeats until the device no longer responds to a "q" and then the PC disconnects. This data is then stored as a CSV (tab-separated, really, despite the name) on the PC.

I want that CSV in Linux, but I'm not sure how to go about it. I can duplicate the exchange in minicom and use its capture function to get myself the raw data (see it here). But that data doesn't look like a CSV. I'm not sure whether the data is encoded in some way or if minicom is just unsuitable for this kind of data capture. I found a perl script that I used to capture just the first chunk of the data and it looks similar to what minicom got, so I'm leaning toward the text being encoded.

So if someone could take a look at this data and give me some pointers, that would be much appreciated. Or even just tell me what to Google, because I don't think I've found the right keywords yet. If it's helpful, I can post the CSV as Windows sees it as well.

 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Please post the CSV as well, I'm not sure if it'll help but it would be nice to see just in case.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Originally posted by: Nothinman
Please post the CSV as well, I'm not sure if it'll help but it would be nice to see just in case.
Drat. Looks like my wife took the unit with her this morning, and I no longer have the copy on my machine. So I'll have to wait until tonight to post it. I'll post back once I've got it.
 

doornail

Senior member
Oct 10, 1999
333
0
0
Could that be a Control-Q?

That's the code for XON (begin sending again) when using software flow control.