Tuesday, May 29, 2012

[Discuss-gnuradio] My app waits undefinedly after an O printf

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPxN1RAAoJEOO1csHFfY75YZgH/3NvulyXGS3XxKZUNZXteJom
2qCnYNqbHLZx8v7xL7g9VwM8ZECogenwgOliJtz/d/XUzsCoEXivRi5S/VBLiBQI
8fV1pvHc/KhCt5Y8/YsbRQM15TvaPNqea/J8e3m+x1p62v8PkVUbcFjrLiQw3jj1
36HOfw2W4BRlmyo6GT1H7ZsYZXNkDNx14/OIaHFx06wd4lOhDKCyppRNbuc1JlVx
znHDNgpU6yCeaemSwIfuVy7VDpNEgLqQmspKVa53zY63ml6b13slhAj1Xul/V8Ow
x2GgCdBBQ34KbnwqEqVZpjPjWbfEWYcVEEUbzeo96la9IsL9Y8Jr+Uj2rYBB6Gk=
=pz08
-----END PGP SIGNATURE-----
Dear list,

I am using gr_uhd_source as the source of my app. At some moment, there
is an overflow, an O is printf'ed and the scheduler stops. The program
is still running but there is no flow of samples between blocks. They
are waiting for something. I added the following lines in the work() of
gr_uhd_source

printf("no = %d\n", noutput_items);
if (_metadata.error_code != uhd::rx_metadata_t::ERROR_CODE_NONE)
printf("Error %d\n",_metadata.error_code);

and the output, after some time, is

no = 4094
no = 4096
no = 4094
[...]
no = 4096
no = 4094
no = 4096
no = 4096
Ono = 4094
no = 2133
Error 8
no = 2133
Error 1

and here waits for some thing and no more printf take place. Be aware
that this happens when the O appears.

Anybody is expecting the same? Could you provide me some hint?

Thanks.

--

Pol Henarejos
Research Engineer, MSc
pol.henarejos@cttc.es

Centre Tecnològic de Telecomunicacions de Catalunya (CTTC)
Engineering Unit
Parc Mediterrani de la Tecnologia
Av. Carl Friedrich Gauss, 7
08860 Castelldefels, Barcelona (Spain)
Tel: +34 93 396 71 70 Ext: 2177
Fax. +34 93 645 29 01
www.cttc.es

No comments:

Post a Comment