[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnurad
From: |
Jaeho |
Subject: |
Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1 |
Date: |
Sat, 1 Aug 2015 02:51:33 -0700 (MST) |
I am sorry for my question
I got your advice, and i tried to refer codes(ieee802_15_4_oqpsk_phy.py and
transceiver_oqpsk.py) that are generated from ieee802_15_4_OQPSK_PHY.grc and
transceiver_OQPSK.grc.
BUT!! VERY UNFORTUNATELY, i could not realize how can i modify my old codes.
There's no code for modulation ( the thing that i need to replace my
function )
(or maybe i could not find although code are existed in gr-ieee802_15_4)
I am very sorry for ask you with my code, but can you help me modify my code
included in below?
Below class code is my old source code that using old UCLA Zigbee PHY
module.
And i hope modify this code with gr-ieee802-15-4 (new version of UCLA Zigbee
PHY)
How can i modify this code with new library?
or if you have more helpful manual or source code, can you send me those to
my email address?
My email address is address@hidden
Please help me to solve my problem....
God Bless You,
Jaeho
=========================================================================================
class transmit_path(gr.hier_block2):
def __init__(self, options):
gr.hier_block2.__init__(self, "transmit_path",
gr.io_signature(0,
0, 0), gr.io_signature(0, 0, 0))
self.normal_gain = 8000
self.u = uhd.usrp_sink(device_addr=options.address,
io_type=uhd.io_type.COMPLEX_FLOAT32, num_channels=1)
self.u.set_clock_config(uhd.clock_config.internal(),
uhd.ALL_MBOARDS)
u = self.u
self._data_rate = options.data_rate
self._spb = 2
# Set and print sampling rate
self.u.set_samp_rate(options.sample_rate)
input_rate = self.u.get_samp_rate()
# Set and print center frequency
self.u.set_center_freq(options.cordic_freq)
frekva = self.u.get_center_freq()
self.u.set_center_freq(frekva)
# transmitter
/*self.packet_transmitter =
ieee802_15_4_pkt.ieee802_15_4_mod_pkts(self,
spb=self._spb, msgq_limit=2)*/
self.gain = blocks.multiply_const_cc (self.normal_gain)
self.connect(self.packet_transmitter, self.gain, self.u)
#self.set_auto_tr(True) # enable Auto
Transmit/Receive switching
def set_gain(self, gain):
self.gain = gain
self.u.set_gain(gain)
def set_auto_tr(self, enable):
return self.u.set_auto_tr(enable)
def send_pkt(self, payload='', eof=False):
return self.packet_transmitter.send_pkt(0xe5,
struct.pack("HHHH",
0xFFFF, 0xFFFF, 0x10, 0x10), payload, eof)
--
View this message in context:
http://gnuradio.4.n7.nabble.com/gnuradio-core-missing-UCLA-Zigbee-PHY-in-gnuradio-version-3-6-5-1-tp55093p55173.html
Sent from the GnuRadio mailing list archive at Nabble.com.
- Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1,
Jaeho <=
- Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1, Marcus Müller, 2015/08/01
- Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1, Jaeho, 2015/08/04
- Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1, Jeon, 2015/08/04
- Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1, Jaeho, 2015/08/04
- Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1, Jeon, 2015/08/04
- Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1, Bastian Bloessl, 2015/08/05
- Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1, Jaeho, 2015/08/10
- Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1, Bastian Bloessl, 2015/08/10