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 = sock.recv(1).decode('utf-8')" function, but the output was:

received message: ׬
Traceback (most recent call last):
  File "udp_connection.py", line 12, in <module>
    data = sock.recv(1).decode('utf-8')
  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


                                          
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to