Hi Eric ,
I know what file_source does but I was looking for something else.
look at the code below to know what i am looking for.
fil=open("/home/murtuza/t",‘r’) # I first open a file to read
data = fil.read(gr.sizeof_char) # then read one byte only
send_pkt(data) # then send it over the stream to a block that
processes that particular byte.
If you look at benchmark_tx.py program data is read from a file and then
send_pkt() is called. send_pkt() module in transmit_path.py calls
“self.packet_transmitter.send_pkt(payload, eof)” which then calls
in mod_pkts. Here, the payload is inserted into the message queue by the
statement self._pkt_input.msgq().insert_tail(msg). I want to do
similar except for the fact that I want to put the unmodified byte in
queue unlike mod_pkts which first uses message_from_string and then
the msg on to the queue.
If this can be done using file_source then can u tell how?
I am working on something that requires me to do this. May be this is
ideal way of doing it but still I want to know if it is possible.