Re: [Discuss-gnuradio] filename in file source from GRC and automatic clear reports?

2015-06-09 Thread Marcus Müller
t".format(dir="/samples", date=20150609,hour=8,minute=59,seconds=25.33212324) will give you /home/marcus//samples/20150609-08-59-25.332123.dat notice the length of each number and the padding with zero of the hour. Possibly, GRC tries to figure out whether what you've ent

Re: [Discuss-gnuradio] GNU radio Installation

2015-06-09 Thread Marcus Müller
Hi Siva, the problem is that you most probably want to do apt-get install gnuradio , right? Since programs only work with the library versions they were linked with at build time, Ubuntu must install Ubuntu's old UHD version. That's a bad thing -- you now have 3.8.4 (possibly from our website o

Re: [Discuss-gnuradio] filename in file source from GRC and automatic clear reports?

2015-06-09 Thread Jeon
> > should just work; for more complex things, try python's (quite frankly > awesome) string formatting language > > "/home/marcus/{dir}/{date}-{hour:02d}-{minute:02d}-{seconds:02.6f}.dat".format(dir="/samples", > date=20150609,hour=8,minute=59,seconds=25.33

Re: [Discuss-gnuradio] filename in file source from GRC and automatic clear reports?

2015-06-09 Thread Marcus Müller
;+ str(time) > > should just work; for more complex things, try python's (quite > frankly awesome) string formatting language > > > "/home/marcus/{dir}/{date}-{hour:02d}-{minute:02d}-{seconds:02.6f}.dat".format(dir="/samples", > date=20150609

Re: [Discuss-gnuradio] filename in file source from GRC and automatic clear reports?

2015-06-09 Thread Murray Thomson
i Jeon, >> >> the input fields just take "normal" python, so >> >> "/my/file/path"+ str(time) >> >> should just work; for more complex things, try python's (quite frankly >> awesome) string formatting language >> >>

[Discuss-gnuradio] File Reading

2015-06-09 Thread Ashraf Younis
I am having trouble reading a file and putting it as a variable or some way so that the USRP Source block will read it and evaluate each item. I'm using a file source and i tried connecting to a message sink, but I'm stuck there because the output of the sink does not match the input of the USRP So

Re: [Discuss-gnuradio] question on implementing a state machine

2015-06-09 Thread Vanush Vaswani
I believe this is a very common pattern for decoding simple protocols (once you have the bits) Here's an example https://github.com/jmalsbury/gr-tnc/blob/master/lib/hdlc_deframer_impl.cc On Tue, Jun 9, 2015 at 2:22 PM, Martin Braun wrote: > On 06/08/2015 07:16 PM, Anil Kumar Yerrapragada wrote:

Re: [Discuss-gnuradio] File Reading

2015-06-09 Thread Tom Rondeau
On Tue, Jun 9, 2015 at 8:31 AM, Ashraf Younis wrote: > I am having trouble reading a file and putting it as a variable or some > way so that the USRP Source block will read it and evaluate each item. I'm > using a file source and i tried connecting to a message sink, but I'm stuck > there because

Re: [Discuss-gnuradio] File Reading

2015-06-09 Thread Tom Rondeau
On Tue, Jun 9, 2015 at 9:17 AM, Ashraf Younis wrote: > Thank you for responding. I'm still new to GRC, so I don't know how to go > about doing that. Would I have to write a .py file? Then how would I import > it to GRC? > Please keep replies on the list. So I was about to reply something along

[Discuss-gnuradio] Why can't I compile gr-cdma?

2015-06-09 Thread 苏张
Hi everyone, I cloned the gr-cdma(https://github.com/anastas/gr-cdma). But I can't compile the code. I followed the complie instructions. After I typed "make", I got the following errors: [ 47%] Generating doxygen xml for cdma_swig_doc docs /bin/sh: 1: cdma_swig_doc_swig_docs/Doxyfile: Permission

Re: [Discuss-gnuradio] Why can't I compile gr-cdma?

2015-06-09 Thread Marcus Müller
Hello Franklin, this looks like you, at one point, worked as a different user on that directory (possibly root?). You should get a copy of the source code that your user has permissions to read. Best regards, Marcus On 06/09/2015 04:18 PM, 苏张 wrote: > Hi everyone, > I cloned the gr-cdma(https:/

Re: [Discuss-gnuradio] File Reading

2015-06-09 Thread Ashraf Younis
This helps a lot. Thank you. I hope I'm adding this reply to the list correctly. On Tue, Jun 9, 2015 at 10:12 AM, Tom Rondeau wrote: > On Tue, Jun 9, 2015 at 9:17 AM, Ashraf Younis wrote: > >> Thank you for responding. I'm still new to GRC, so I don't know how to go >> about doing that. Would I

Re: [Discuss-gnuradio] problem with ofdm link

2015-06-09 Thread Martin Braun
On 09.06.2015 06:40, bh...@web.de wrote: > hello, > i have created a flowgraph (fig_0.png) for a simple ofdm link but it > works only in parts. the first row (random_source --> > gt_gui_constellation_sink) works perfect but the entire rest does not. > > now two questions: > > 1) stream_to_tagge

Re: [Discuss-gnuradio] wav file source question

2015-06-09 Thread fffdddooo
Did you find the solution? regards Baokun Liu wrote > Hi guys, > > I am playing with gnuradio companion. I have a question on wav file. > > I play like this first (the samp_rate set to 32k) > > *Audio Source ---> Wav File Sink;* > > I save the file as test.wav. It sound well. > > Then, I pla

Re: [Discuss-gnuradio] wav file source question

2015-06-09 Thread Marcus Müller
Hi fffdddooo, Baokum Liu asked that two years ago. Some things have changed since then; do you have a question that we might help you answer? Best regards, Marcus On 06/09/2015 08:46 PM, fffdddooo wrote: > Did you find the solution? > > regards > > Baokun Liu wrote >> Hi guys, >> >> I am playing

Re: [Discuss-gnuradio] wav file source question

2015-06-09 Thread fffdddooo
Well. I read the workaround. The problem is if you use file source and file sink instead of wav file source and wav file sink, you are not generating a wav file. You can name it *.wav, but it isn't a wav file at all. What I want to do is generating a wav file wich can be playd with any wav player (

Re: [Discuss-gnuradio] wav file source question

2015-06-09 Thread Marcus Müller
Hi fffdddoo (is that really the name by which we should address you?), I'm guessing you try to save audio directly from the audio source to a wav file, right? So, my blind guess is that Baokum wrongly configured the audio source and simply nothing came out of it. For example, no soundcard normall

[Discuss-gnuradio] Sending data to a server

2015-06-09 Thread Ashraf Younis
I'm trying to send my recordings from a USRP Source(hardware: NI B200) to a database I set up. I have been searching the internet for hours and I have come up with nothing. There was one post that mentioned it, but only the fact that there is a way to have MySQL and GRC working together. Is there a

Re: [Discuss-gnuradio] Sending data to a server

2015-06-09 Thread Chris Kuethe
Yeah, write a script to insert it into a database. Start by importing gr and pyodbc... Which is just about as unhelpful as your question. But seriously: - what do you intend to record? (raw samples, filtered signal, decoded messages, ...) - how much data do you plan to record, and how long do you

Re: [Discuss-gnuradio] Sending data to a server

2015-06-09 Thread Ashraf Younis
Thank you for responding. I'm new to all of this, including database. I am recording what you called metadata; time, location, frequency, power for about 30 minutes. I think that also answer the question about schema. I just started learning how to write functions in python, and I went through the

Re: [Discuss-gnuradio] Sending data to a server

2015-06-09 Thread Chris Kuethe
That doesn't necessarily answer the question about schema - you could have a whole bunch of columns, one for each frequency bin across a band, or a shorter record of power level on a frequency at a particular time. Have a look at uhd_spectrum_sense.py for a start. It emits text records with many o

Re: [Discuss-gnuradio] wav file source question

2015-06-09 Thread Fernando
You can address me by Fernando, it's easier to pronounce ;-) I'm trying to save audio from the audio source to a file or from a signal source 1Khz for instance. I've tryed different things, and different data rate (I've tried 44100 also) and is always the same eror Generating: "/home/ubuntu/top_b

[Discuss-gnuradio] patches and instructions for adding python and numpy to GNU Radio for android

2015-06-09 Thread ikjtel
As previously mentioned, I've been working on adding python and numpy to the existing GNU Radio android version (GrAnd).  I've named the resulting Frankensteinian creation "GrAndPy". The goals of the project (that have been successfully achieved so far) were:   a) build using a solid proper founda

Re: [Discuss-gnuradio] wav file source question

2015-06-09 Thread Chris Kuethe
Here's an example that generates a wave file that is playable by both gnuradio and mplayer On Tue, Jun 9, 2015 at 2:49 PM, Fernando wrote: > You can address me by Fernando, it's easier to pronounce ;-) > I'm trying to save audio from the audio source to a file or from a signal > source 1Khz for

[Discuss-gnuradio] Selling my USRP1 with modified 52Mhz clock

2015-06-09 Thread gsmandvoip
Hi list, I am selling my USRP1 with following configuration: USRP1 with 52Mhz modified clock DBSRX1 2 small 0db gain antenna USB cable and power adapter Above items are working in excellent condition, they are not useful for me now thus may be useful for some one else Please contact me for price a