[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnurad
From: |
Marcus Müller |
Subject: |
Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1 |
Date: |
Sat, 1 Aug 2015 14:28:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
Jaeho,
ieee802_15_4_oqpsk_phy *contains* the whole modulator/packetizer.
With all the comments in the GRC, I think it's pretty clear which parts
do what. You will simply need to integrate that same structure instead
of the old _mod_pkt block; you can either do that by simply using the
hier block that is contained in
ieee802_15_4_oqpsk_phy.py
or you can simply just use the same blocks as the GRC in your applications.
So: ieee802_15_4_oqpsk_phy is simply a block. Use it. It's not hard. If
you have continued problems with using hier blocks, I recommend going
through the guided tutorials 2 & 3:
https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorials
It has two inputs, rx_in and tx_in, and two outputs, rx_out and tx_out,
as you can see from the GRC. Connecting the USRP sink to the tx_out and
whatever gives you the data you want to transmit to tx_in should do the
trick.
> or if you have more helpful manual or source code, can you send me those to
> my email address?
Um, I don't know how to put this, so I'll be blunt:
The source code and architecture of gr-ieee802-15-4 are pretty clear,
and the GRC files we're looking at here are especially well-commented;
I'm afraid you will need to just try and use it a little more, and the
problems you're having understanding how to use ieee802_15_4_oqpsk_phy
might really point to you needing a little more experience working with
hierarchical blocks, which is an aspect very central for GNU Radio
development.
I'm very optimistic you will manage to build something amazing! Have a
look at transceiver_OQPSK.grc, it uses ieee802_15_4_oqpsk_phy.
Best regards,
Marcus
On 01.08.2015 11:51, Jaeho wrote:
> 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.
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
- Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1, Jaeho, 2015/08/01
- Re: [Discuss-gnuradio] gnuradio-core missing / UCLA Zigbee PHY in gnuradio version 3.6.5.1,
Marcus Müller <=
- 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