Hi all,

Currently I wanted to detect the signal from sensor, and found that
UCLA_ZIGBEE_PHY provided a function carrier_sensed() in ieee802_15_4_pkt.py,
supported in file ucla_ieee802_15_4_packet_sink.h (Line 104):
  bool carrier_sensed() const
  {
    return d_state != STATE_SYNC_SEARCH;
  }

I expected this function can work well. So I added the program in
cc2420_rxtest.py, line 76, after self.connect(self.u, self.squelch,
self.packet_receiver):
  if self.packet_receiver.carrier_sensed():
        print "CA"
    else:
        print "NO"

However, he running result is Error. The output is like this:

cordic_freq = 2.475G
data_rate =  2M
samples_per_symbol =  2
usrp_decim =  16
fs =  4M
Using RX d'board A: Flex 2400 Rx MIMO B
>>> gr_fir_fff: using SSE
802_15_4_pkt: waiting for packet
Traceback (most recent call last):
  File "cc2420_rxtest.py", line 122, in <module>
    main ()
  File "cc2420_rxtest.py", line 111, in main
    tb = oqpsk_rx_graph(options, rx_callback)
  File "cc2420_rxtest.py", line 76, in __init__
    if self.packet_receiver.carrier_
sensed():
  File
"/opt/gnuradio/3.2.2/lib/python2.6/site-packages/gnuradio/ucla_blks/ieee802_15_4_pkt.py",
line 243, in carrier_sensed
    return self._packet_sink.carrier_sensed()
AttributeError: 'ucla_ieee802_15_4_packet_sink_sptr' object has no attribute
'carrier_sensed'

It is trivial to find the carrier_sensed() function in
ucla_ieee802_15_4_packet_sink. And i make sure UCLA_ZIGBEE_PHY installation
is OK, since cc2420_rxtest.py and cc2420_txtest.py work well. It bothers me.
Does someone have the same error? Any hints or comments are appreciated!
Thank you very much!

Regards,
Lizhao
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to