Hi,
serial ports typically don't behave like files (you can't "seek" in them, and opening is a
bit special, since you also need to configure them for the right speed/framing).
People I've seen using serial ports with GNU Radio before have opted to simply write a
small block – specifically, if they really just wanted the bytes from the serial port, a
python block using the `pyserial` module to set up the serial port. (I suspect you want this!)
People writing drivers for serial-attached SDR devices have usually separated that driver
out from GNU Radio, so that GNU Radio doesn't "see" anything of the serial port at all.
Now, your "2. Is it possible…" question (answer is: yes! That's the whole point of GNU
Radio.) tells me it's most time-efficient if you start by reading the official GNU Radio
tutorials on https://tutorials.gnuradio.org. They will introduce you to what a GNU Radio
block is specifically, and how to write a simple one like the one described above
yourself. Simply start at the first beginner tutorial, then work through up to the point
where you learned how to write a Python block.
Happy hardware interfacing,
Marcus
On 1/19/25 11:00 AM, Muhammad Anas wrote:
Dear GNU Radio community,
I'm working on a project that requires reading data from a serial port (e.g., COM1) using
the File Source block in GNU Radio on a Windows system.
1. *How can I configure the File Source block to read data from a serial port?*
2. *Is it possible to dynamically update the data from a serial port being
read during
runtime?*
Any guidance or suggestions on how to achieve this would be greatly appreciated.
Regards,
Muhammad Anas