
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Hello Josh,
I realized that the error was coming from this loop in ieee802_15_4_pkt.py
try:
self.callback =kwargs.pop('callback')
self.threshold =kwargs.pop('threshold')
self.chan_num=kwargs.pop('channel')
except KeyError:
pass
so I changed self.chan_num=kwargs.pop('channel')
to self.chan_num=kwargs.get('channel')
It seems to be working now with
Statistics : good 0 received 0
I hope I have not messed anything else in ieee802_15_4_pkt.py.
Respectfully,
Henry Ernest Baidoo-Williams.
GRA, University of Iowa
-----Original Message-----
From: discuss-gnuradio-bounces+henry-baidoo-williams=uiowa.edu@... [mailto:discuss-gnuradio-bounces+henry-baidoo-williams=uiowa.edu@...] On Behalf Of Josh Blum
Sent: Tuesday, May 15, 2012 6:01 PM
To: discuss-gnuradio@...
Subject: Re: [Discuss-gnuradio] Help using UCLA Zigbee PHY examples updated for UHD
> File "/usr/local/lib/python2.7/dist-packages/gnuradio/ucla_blks/ieee802_15_4_pkt.py", line 241, in __init__
> self._watcher = _queue_watcher_thread(self._rcvd_pktq, self.callback, self.chan_num)
> File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 50, in __getattr__
> return getattr(self._hb, name)
> AttributeError: 'gr_hier_block2_sptr' object has no attribute 'chan_num'
>
Looks like a pretty strait forward error. There is no chan_num attribute. So what class is "self" and why is it missing chan_num? How does chan_num get initialized?
Perhaps there is a command line option you are not passing, and there isnt any input checking/sanitation, so the error falls all the way through to this part of the code.
-josh
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@...
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@...
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio