Discussion and technical support related to USRP, UHD, RFNoC
View all threadsHi all
I'm testing ZMQ streaming with GRC and E310
It was succesful local loopback test with ZMQ_src and ZMQ_sink on
development computer
But when I python zmq_srcpy on E310 USRP , I got error
It's not easy for me to understand what this message mean
Traceback (most recent call last):
File "gmq_srcpy", line 66, in <module>
main()
File "gmq_srcpy", line 55, in main
tb = top_block_cls()
File "gmq_srcpy", line 32, in init
selfzeromq_pub_sink_0 = zeromqpub_sink(grsizeof_gr_complex, 1,
"tcp://127001:60", 100, True, -1)
File
"/usr/lib/python27/site-packages/gnuradio/zeromq/zeromq_swigpy",
line 105, in make
return _zeromq_swigpub_sink_make(*args, **kwargs)
TypeError: pub_sink_make() takes at most 5 arguments (6 given)
Regards
Kim taeyeong
Hi Kim,
In the generated Python file "gmq_src.py", you need to edit the line:
self.zeromq_pub_sink_0 = zeromq.pub_sink(gr.sizeof_gr_complex, 1, "tcp://127.0.0.1:60", 100, True, -1)
to be:
self.zeromq_pub_sink_0 = zeromq.pub_sink(gr.sizeof_gr_complex, 1, "tcp://127.0.0.1:60", 100, True)
Note the removal of the last parameter ", -1".
This is due to mismatch of GNU Radio version between your host where you generated the Python file and the version running on the E3xx.
The Application Note linked below covers using the ZMQ sinks with the E3xx to stream processed audio from the E3xx to the host and might be useful for reference and uses the XMLRPC blocks to adjust freq/gain/etc.
https://kb.ettus.com/Streaming_processed_data_from_the_E31x_with_GNU_Radio_and_ZMQ
Regards,
Nate
On Jun 26, 2017, at 11:34 PM, 김태영 via USRP-users usrp-users@lists.ettus.com wrote:
Hi all
I'm testing ZMQ streaming with GRC and E310.
It was succesful local loopback test with ZMQ_src and ZMQ_sink on development computer.
But when I python zmq_src.py on E310 USRP , I got error.
It's not easy for me to understand what this message mean.
Traceback (most recent call last):
File "gmq_src.py", line 66, in <module>
main()
File "gmq_src.py", line 55, in main
tb = top_block_cls()
File "gmq_src.py", line 32, in init
self.zeromq_pub_sink_0 = zeromq.pub_sink(gr.sizeof_gr_complex, 1, "tcp://127.0.0.1:60", 100, True, -1)
File "/usr/lib/python2.7/site-packages/gnuradio/zeromq/zeromq_swig.py", line 105, in make
return _zeromq_swig.pub_sink_make(*args, **kwargs)
TypeError: pub_sink_make() takes at most 5 arguments (6 given)
Regards
Kim taeyeong
<zmq_src.png><zmq_sink.png>_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com