[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Pad block in ieee802_15_4_mac block
From: |
Bastian Bloessl |
Subject: |
Re: [Discuss-gnuradio] Pad block in ieee802_15_4_mac block |
Date: |
Tue, 25 Mar 2014 00:29:43 +0100 |
Hi,
On 24 Mar 2014, at 22:20, Ruecan <address@hidden> wrote:
> How can I have a file source connected as a pad source to an hierarchical
> block ?
> More precisely, I have for example the hierarchical block ieee802_15_4_mac,
> and instead of feeding the block in input with a socket pdu block I want to
> connect it to a file source and broadcast a word,
>
> #self.msg_connect(self.gr_socket_pdu_0, "pdus", self.ieee802_15_4_mac_0,
> "app in") # this is OK
> self.msg_connect(self.blocks_file_source_0, "source" ,
> self.ieee802_15_4_mac_0, "app in") ?? #this is not OK
>
> And the same in the receive path, I would like to connect a file sink to
> dump to. self.msg_connect(self.ieee802_15_4_mac_0, "app out",
> self.blocks_file_sink_0, "sink") ??
>
I’m not really sure if I get what you are trying to do, but you will receive
PDUs from the MAC block so you can not just connect a file sink.
The example pipes the PDUs to a socket and you can listen to that socket with
netcat and pipe the output to a file with something like
nc -u localhost 52001 > foo.txt
I guess this is what you want.
Best,
Bastian