|
From: | Adriana Arteaga |
Subject: | [Discuss-gnuradio] Decoding UDP socket output |
Date: | Thu, 13 Jun 2013 17:23:59 +0000 |
Hi!
I'm using an udp_sink block to send the power values (float) to an common udp socket writing with python data, addr = sock.recvfrom(2048) but the outup was: ��������ٶ��e�¹�¢���\d�5�S���8�®Z��xS�����A����T� I found "data = "" function, but the output was: received message: Traceback (most recent call last): File "udp_connection.py", line 12, in <module> data = ""> File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xf9 in position 0: invalid start byte I'm try changing "utf-8" for "utf8" and the result is the same. Anyone knows how can I decode the output? Thanks. Adriana |
[Prev in Thread] | Current Thread | [Next in Thread] |