Re: [Discuss-gnuradio] how to convert python file in dat file

2013-04-29 Thread Hanz
If you want to load files into Matlab which you saved for example through a file sink, you can do that via the command fread. Check the documentation of it. For the correspondences between Matlab and GNU Radio Type, compare the fread documentation and this site of J.Blum:

Re: [Discuss-gnuradio] Usage of Message Queues

2013-02-27 Thread Hanz
Thank you again for your answer. I looked up the Header File of gr_message and it should have the msg() attribute. But when I tried to access, it gave me the error that this attribute isnt existing. Anyway, I now figured out a way which is enough for me: I converted the returned string to a list

Re: [Discuss-gnuradio] Usage of Message Queues

2013-02-23 Thread Hanz
Thank you much for your answer. Indeed, its a shared pointer. I now figured out, the the only way to get the data is via .to_string(). Though, im stuck again. I use the following code to initialize the queue and message sink: self.sink_queue = gr.msg_queue()

Re: [Discuss-gnuradio] Usage of Message Queues

2013-02-06 Thread Hanz
Im sorry that im pushing my question, but its still unsolved for me and need it for my project.. So again, my message queue is filling, i checked that via tb.sink_queue.count(), but if i want to transfer pop a message, it just returns me that message_sptr thing. Can someone help me on that? I

[Discuss-gnuradio] Usage of Message Queues

2013-01-30 Thread Hanz
Hello! I have another question, this time about message queues. I have a demodulator hooked up to message sink. But when I want to pop a message via tb.sink_queue.delete_head(), its just returning that to me: gnuradio.gr.gnuradio_core_runtime.gr_message_sptr; proxy of lt;Swig Object of type

[Discuss-gnuradio] File Sink open/close question

2013-01-22 Thread Hanz
Hi! Im using a message queue to count data, while the data is sinked to a file. Then if the counter reaches X i want the old file to be closed and continue sinking in a new file. Then again if reaches X to switch to the old file. So my bottom part code looks like that: tb = top_block()

Re: [Discuss-gnuradio] File Sink open/close question

2013-01-22 Thread Hanz
I setted X some lines before as 1000. And the tb.sink_queue.count() is resetted by tb.sink_queue.flush() i thought. -- View this message in context: http://gnuradio.4.n7.nabble.com/File-Sink-open-close-question-tp39098p39101.html Sent from the GnuRadio mailing list archive at Nabble.com.

Re: [Discuss-gnuradio] Help on easy digital TX/RX

2013-01-14 Thread Hanz
I now have 2 new problems :( 1. I have a random source hooked to a Modulator and then to USRP. From the same device i listen at the same Frequency. But since the antennas are just a few cm's away, the constellation graph is completely diffuse and the points are anywhere, there arent any fixed

Re: [Discuss-gnuradio] Help on easy digital TX/RX

2013-01-11 Thread Hanz
Thank you for the advising! That looks like something what i could use. I just came up with another question: I simply tried to simulate a DPBSK Path with noise, loaded from a file and sinked to a file. Between Demod and Sink i placed a Pack K Bits with K=8.

Re: [Discuss-gnuradio] Simple Digital Mod Problem

2013-01-11 Thread Hanz
Thanks! I see now what you mean, but how can i get rid of these boundary mistakes? The Result is similar to the original, but the bytes are kind of shifted. So from a FF 00 results a FE 01.. -- View this message in context:

Re: [Discuss-gnuradio] Simple Digital Mod Problem

2013-01-11 Thread Hanz
This is actually what i would like to do later by hand. Isnt there a possibity how i can fetch the raw bits or bytes directly after receiving? Sorry if its a stupid question.. -- View this message in context: http://gnuradio.4.n7.nabble.com/Simple-Digital-Mod-Problem-tp38857p38944.html Sent

[Discuss-gnuradio] Help on easy digital TX/RX

2013-01-10 Thread Hanz
Hello! As to introduct me, im very new to GnuRadio and the general topic of SDR. However, i have a project in which i should implement a very basic way of sending packets. This given packet format has a constant preamble and a constant length of appended databits. For detecting those out of a

[Discuss-gnuradio] Simple Digital Mod Problem

2013-01-07 Thread Hanz
Im a total newbie to GNURadio. So my plan was to simply test a digital modulation path, without channel. Then compare input file and output file. The input file was a previously captured random file through GNURadio. But the problem is, that the output file is about 8 times bigger and clearly not