|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] serial port source/sink |
Date: | Thu, 30 Oct 2014 11:24:06 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 |
Hi Julián, interesting! I think I might be misunderstanding what's happening here, so I think we should make a sketch of what I think you're doing: "data" --> Ground control station --> TX Antenna --> Air --> RX Antenna UAVdevboard Is that correct? Greetings, Marcus On 29.10.2014 15:43, Julián Andrés
Quenardelle wrote:
Hey there! I'm gonna explain a bit of what i'm doing. I'm trying to conect a laptop with a ground control station software to an uavdevboard (UDB4). I want to get data stream through gnuradio, i want to make it serial because of previous work. I can set up the baudrate of transmision at my software (running on windows bdw) and my devboard too, i don't know if that would affect the TTY I/O on Unix (that was a good idea btw, gonna work over that). However, my inteface is an USB/Serial cable if thats what you're asking, i didnt use the RS232 standard, just needed TxRx pins from the devboard. 2014-10-28 20:57 GMT-03:00 Marcus Müller <address@hidden>:Agreed, but as soon as device setup is through with your device (thus the "properly configured character device") and your reading program behaves nicely (which I'd expect GR's file_sink to do), just reading from a character device should work, if I'm not mistaken. However, this brings us to a new question: "serial" doesn't really say what kind of interface we're talking about; there's a whole lot of bytes that you can not send over a 1980's style UART as used for the RS-232 peripheral on PCs, and thus the data that comes in over that has to be decoded first; you could write a block that converts these bytes to bytes, or, and this is more likely, you already have software that does that, and writes the result to a file, or prints it on standard output. You could then connect the output of that to GNU Radio, e.g. using a named pipe. On 29.10.2014 00:21, Marcus D. Leech wrote: On 10/28/2014 06:34 PM, Marcus Müller wrote: Hi Julian, this really depends on how your serial data gets into your PC, but assuming you're on linux and have the data coming in over a properly configured character device (ie. something that appears as /dev/ttyS* or the like), you could just use the file source and open that device. Greetings, Marcus TTY I/O on Unix is a bit weird. You'd have to open it, and configure it (into RAW mode for one). On 28.10.2014 19:35, Julián Andrés Quenardelle wrote: Hey there! i'm working on a proyect of comunications and i need to get my serial data stream into gnuradio companion, so i'm looking for a block (2 actually) that can make this work, i tried to install pyserial and gr-pyserial but repository is down, so i'm looking for alternatives, that make me skip programming it myself (becoues of my low programing skills ), so i though serial port is pretty comun, some one else had to build it before, if you know some blocks which could help me i would be very thankfull _______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing address@hidden://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio |
[Prev in Thread] | Current Thread | [Next in Thread] |