Hello Fazal - Ahhh, the old file incompatibility issues. Its 2024 and we still have them. ;-)

A couple of thoughts,

1) You can look into the existing file sink and source blocks to see if it is easy to change the encoding, then make your own out-of-tree block with the result.

2) You can make your own file source and sink block with a Embedded Python Block that encodes/decodes the text as per this stackexchange question.
https://stackoverflow.com/questions/48602087/how-to-open-macos-text-file-correctly-on-win

3) You can use the basic idea of #2 above to pre/post process you block after the file sink / source blocks finish with an external python program.

Hope this helps.

Steve Hageman

On 7/9/2024 6:34 AM, Fazal Muhammad Ali Khan via GNU Radio, the Free & Open-Source Toolkit for Software Radio wrote:
Dear GNU Radio Community,

I am transmitting a text file (alphanumeric file) through USRP X300 and am receiving it at the other host. The text file received is sometimes ANSI, Macintosh (UTF-16, LF format, etc).

I have tried various methods to overcome the error but to no avail. Attached are the screenshots for both the transmitter and receiver.

Thanks in advance for your assistance

Regards
Fazal


--
Best regards,

Steve Hageman

Reply via email to