Re: [Discuss-gnuradio] Gnuradio over Zynq

2014-10-30 Thread Daniel Camara
Hi, just to register the cause of the error, if can be helpful for others
in the future!

The problem was that the module user_peripheral was missing. Apparently
when you configure the  it and when you get the  oe manifest with the daisy
branch it does not come by default. The ideal is to use the stable branch.

 git clone git://github.com/balister/oe-gnuradio-manifest.git -b stable

moreover, after,you manage to have a bootable card, before trying the
example you need to insert the module. For me:
 insmod /lib/modules/3.8.11-xilinx/extra/user_peripheral.ko

Otherwise you will get an null pointer exception when it tries to get the
attributes of the device on the line:
   *buffer_length = atol(udev_device_get_sysattr_value(dev, xx_buf_len));

Best regards...

Daniel

On Tue, Oct 28, 2014 at 8:58 AM, Daniel Camara danielcam...@gmail.com
wrote:


 Hi,

I would like to run the example from the GNURadio adaptation for Zynq (
 http://gnuradio.org/redmine/projects/gnuradio/wiki/Zynq), but I am not
 able to run it, it gives me a coredump.

  I managed to create the bootable card, at least I think so as the example
 does not work.

  What I did:

 zedboard cat zedboard.bin  /dev/xdevcfg
 zedboard cat /sys/devices/amba.0/f8007000.ps7-dev-cfg/prog_done
 1

 zedboard ./zynq_fir_filter_example
 Read the FPGA status...
 /sys/devices/amba.0/f8007000.ps7-dev-cfg/prog_done = 1
 Setup the driver...
 Segmentation fault (core dumped)

 zedboard file zynq_fir_filter_example
 zynq_fir_filter_example: ELF 32-bit LSB executable, ARM, EABI5 version 1
 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16,
 BuildID[sha1]=b241efee0c9289c30bd2c24975a628f74c270b4d, not stripped

 zedboard uname -a
 Linux zedboard-zynq7 3.14.2-xilinx #1 SMP PREEMPT Fri Oct 24 09:13:25 CEST
 2014 armv7l GNU/Linux

 zedboard # gdb
 GNU gdb (GDB) 7.6.2
 Copyright (C) 2013 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later 
 http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as arm-oe-linux-gnueabi.
 For bug reporting instructions, please see:
 http://www.gnu.org/software/gdb/bugs/.
 (gdb) core core
 [New LWP 882]
 Core was generated by `./zynq_fir_filter_example'.
 Program terminated with signal 11, Segmentation fault.
 #0  0xb6eade80 in ?? ()
 (gdb) bt
 #0  0xb6eade80 in ?? ()
 #1  0x966c in ?? ()
 #2  0x966c in ?? ()
 Backtrace stopped: previous frame identical to this frame (corrupt stack?)

 
 The compilation of the example was OK, no error, the compilation and
 installation of gr-zynq module, the same.

 Have some one else tried this zynq  implementation recently?

 --
 Best regards...

  Daniel




-- 
Best regards...

 Daniel
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Channel Options in WX GUI Scope

2014-10-30 Thread Martin Braun
On 10/29/2014 06:20 PM, David Halls wrote:
 Hi Guys,
 
 
 I want to set ‘Marker’ to ‘Dot Large’ by default, can I set this in the
 flow graph somehow?

In WX no, but in QT you can.

M



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] serial port source/sink

2014-10-30 Thread Marcus Müller
Hi Julián,

interesting!
I think I might be misunderstanding what's happening here, so I think we
should make a sketch of what I think you're doing:

data -- Ground control station -- TX Antenna -- Air -- RX Antenna
UAVdevboard

Is that correct?

Greetings,
Marcus

On 29.10.2014 15:43, Julián Andrés Quenardelle wrote:
 Hey there! I'm gonna explain a bit of what i'm doing. I'm trying to conect
 a laptop with a ground control station software to an uavdevboard (UDB4). I
 want to get data stream through gnuradio, i want to make it serial because
 of previous work. I can set up the baudrate of transmision at my software
 (running on windows bdw) and my devboard too, i don't know if that would
 affect the TTY I/O on Unix (that was a good idea btw, gonna work over
 that). However, my inteface is an USB/Serial cable if thats what you're
 asking, i didnt use the RS232 standard, just needed TxRx pins from the
 devboard.

 2014-10-28 20:57 GMT-03:00 Marcus Müller marcus.muel...@ettus.com:

  Agreed, but as soon as device setup is through with your device (thus the
 properly configured character device) and your reading program behaves
 nicely (which I'd expect GR's file_sink to do), just reading from a
 character device should work, if I'm not mistaken.

 However, this brings us to a new question: serial doesn't really say
 what kind of interface we're talking about; there's a whole lot of bytes
 that you can not send over a 1980's style UART as used for the RS-232
 peripheral on PCs, and thus the data that comes in over that has to be
 decoded first; you could write a block that converts these bytes to bytes,
 or, and this is more likely, you already have software that does that, and
 writes the result to a file, or prints it on standard output. You could
 then connect the output of that to GNU Radio, e.g. using a named pipe.


 On 29.10.2014 00:21, Marcus D. Leech wrote:

 On 10/28/2014 06:34 PM, Marcus Müller wrote:

 Hi Julian,
 this really depends on how your serial data gets into your PC, but
 assuming you're on linux and have the data coming in over a properly
 configured character device (ie. something that appears as /dev/ttyS* or
 the like), you could just use the file source and open that device.

 Greetings,
 Marcus

 TTY I/O on Unix is a bit weird.  You'd have to open it, and configure it
 (into RAW mode for one).


 On 28.10.2014 19:35, Julián Andrés Quenardelle wrote:

 Hey there! i'm working on a proyect of comunications and i need to get my
 serial data stream into gnuradio companion, so i'm looking for a block (2
 actually) that can make this work, i tried to install pyserial and
 gr-pyserial but repository is down, so i'm looking for alternatives, that
 make me skip programming it myself (becoues of my low programing skills ),
 so i though serial port is pretty comun, some one else had to build it
 before, if you know some blocks which could help me i would be very
 thankfull



 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio





 ___
 Discuss-gnuradio mailing 
 listDiscuss-gnuradio@gnu.orghttps://lists.gnu.org/mailman/listinfo/discuss-gnuradio



 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio