Hello,
I am working with some code from Jared Boone who did some work with gnuradio looking at Tire Pressure Sensor Modules (tpms). See the repo here: https://github.com/jboone/tpms. I am having a hell of a time getting my setup to run his code. I get the following error:
jay@ironfist:~/tpms-master/src$ ../src/extract_bursts.py ~jay/ping_903.020m_0.400m_20140403_000000z_rtlsdr.cfile
19.6 ********************
T: -256, 0
handler caught exception: Wrong number or type of arguments for overloaded function 'block_gateway_sptr_block__add_item_tag'.
Possible C/C++ prototypes are:
gr::block_gateway::block__add_item_tag(unsigned int,gr::tag_t const &)
gr::block_gateway::block__add_item_tag(unsigned int,uint64_t,pmt::pmt_t const &,pmt::pmt_t const &,pmt::pmt_t const &)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/gateway.py", line 55, in eval
try: self._callback()
File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/gateway.py", line 144, in __gr_block_handle
) for i in self.__out_indexes],
File "/home/jay/tpms-master/src/burst_detector.py", line 100, in general_work
self.add_item_tag(0, nitems_written + index_start - self.block_size, self._burst_tag_symbol, gr.pmt.PMT_T, gr.pmt.PMT_F)
File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 5172, in block__add_item_tag
return _runtime_swig.block_gateway_sptr_block__add_item_tag(self, *args)
NotImplementedError: Wrong number or type of arguments for overloaded function 'block_gateway_sptr_block__add_item_tag'.
Possible C/C++ prototypes are:
gr::block_gateway::block__add_item_tag(unsigned int,gr::tag_t const &)
gr::block_gateway::block__add_item_tag(unsigned int,uint64_t,pmt::pmt_t const &,pmt::pmt_t const &,pmt::pmt_t const &)
thread[thread-per-block[1]: <block Burst Detector (2)>]: caught unrecognized exception
^Cjay@ironfist:~/tpms-master/src$
Jared and I made an adjustment to the add_item_tag call in the burst_detection.py code (to make sure the number of arguments passed is right) but still get the same error. I am not sharp enough in python to see what I am doing wrong, nor do I know if there have been changes made to the swig code that impacts the burst_detection code.
Any help would be appreciated.
Thanks,
Jay
Jay Radcliffe
Twitter: @jradcliffe02
E-Mail: jay.radcliffe@gmail.com
LinkedIn + Resume: http://www.linkedin.com/in/jradcliffe02
Twitter: @jradcliffe02
E-Mail: jay.radcliffe@gmail.com
LinkedIn + Resume: http://www.linkedin.com/in/jradcliffe02
No comments:
Post a Comment