discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Help using UCLA Zigbee PHY examples updated for U


From: Baidoo-Williams, Henry E
Subject: Re: [Discuss-gnuradio] Help using UCLA Zigbee PHY examples updated for UHD
Date: Wed, 23 May 2012 16:57:26 +0000

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+address@hidden [mailto:discuss-gnuradio-bounces+address@hidden On Behalf Of Josh Blum
Sent: Tuesday, May 15, 2012 6:01 PM
To: address@hidden
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

address@hidden

https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]