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”) ??
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”) ??
Im 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
Param - Message PMT(msg):
Value “pmt.intern(“Hello World!\n”)” cannot be evaluated:
‘module’ object has no attribute intern’
I never got that error, but it looks like a problem of your GNU Radio
installation. What version do you have installed and how did you install
it?
that message is in utils/udp.py so how can I redirect that message to the
message strobe (if my understanding is correct)
I dont get that, but it doesnt sound right. The udp.py script is an
example how you can interface the flow graph from python. So if you want
to send a message (or packet) with the transceiver you can
use a message strobe block
use netcat and send something to the socket PDU block of the flow
graph
use the python script and send something to the socket PDU block of
the flow graph
I never got that error, but it looks like a problem of your GNU Radio
installation. What version do you have installed and how did you install
it?
I am running GNU Radio 3.65, may be that block is not yet in the
release.
Bastian B.-2 wrote
flow graph
Still related to pmt.intern issue: I was looking for where that message
comes from so I find it in utils/udp.py But I may be wrong, means the
message strobe block does the job, and the text inside of it is the text
to
be broadcasted.