- 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.
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.