discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How to convert from message to complex/float


From: Hoang Ngo Khac
Subject: Re: [Discuss-gnuradio] How to convert from message to complex/float
Date: Tue, 6 May 2014 13:54:01 +0700

Hi Tom, and all,

I've had a look at PDU to Tagged Stream block. 
Regarding to adding tags, both this block and Burst Tagger contains add_item_tag() function. Which block inserts the main stream tags? I don't quite under stand what Burst Tagger does since it contains both add_item_tag() and get_tags_in_range() function.

Thanks,
Hoang


On Tue, Apr 29, 2014 at 9:23 PM, Tom Rondeau <address@hidden> wrote:
On Tue, Apr 29, 2014 at 2:50 AM, Hoang Ngo Khac <address@hidden> wrote:
Dear List,

I'm beginning with gr-mac. (https://github.com/jmalsbury/gr-mac). I need complex/float data to process but some blocks give message as output (Tagged Stream to PDU). I did try using Message Source to convert form message to complex but there was error with the ID:
NameError: global name 'blocks_message_soure_0_msgg_in' is not defined

Also, PDU to Tagged Stream takes message as input. The Message Sink was used but the similar error happened:

Am I right using Message Source and Message Sink? If yes, how could I fix these error? If no, which blocks should be used?

Thanks,
Hoang

Take a look into the gmsk_radio hier_block used in simple_trx.grc. You can see how the PDU messages are converted to streams of samples. That should help you out with what you might want to do.

Tom




--
Hoang Ngo-Khac
Vietnam National University, Hanoi (VNU-H)
Univ. of Engineering and Technology (UET)
Faculty of Electronics and Telecommunications (FET)
Alternative email:  address@hidden
Mobilephone:  +84.163.682.7874

reply via email to

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