discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] gr-ieee 802.11 and threads for real time


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] gr-ieee 802.11 and threads for real time
Date: Wed, 2 Nov 2016 16:39:11 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

In addition to what Paul wrote:

GNU Radio automatically spawns a thread for *every* GNU Radio block. Many of the blocks you see, however, are hierarchical blocks containing multiple blocks inside.


Also note that a question like "how many threads are spawned" can easily be answered using tools like htop, which are able to list each thread and its CPU usage.


So, if your multithreaded code crashes: well, multithreaded code tends to do that if you're not very strict about keeping the data of multiple threads cleanly separated and spend a lot of thought on how to partition your problem. GNU Radio takes that off your shoulders :)

Best regards,
Marcus

On 11/02/2016 04:24 PM, Garver, Paul W wrote:

You should read the accompanying academic papers, especially [1]. It should run in real-time with any sort of reasonable hardware. I'm not sure why you would want to re-implement the decoder. 





[1] http://www.ccs-labs.org/bib/bloessl2013towards/bloessl2013towards.pdf

Towards an Open Source IEEE802.11p Stack: A Full SDR-based Transceiver in GNURadio Bastian Bloessl , Michele Segatay, Christoph Sommer and Falko Dressler


From: Discuss-gnuradio <address@hidden> on behalf of sumitstop <address@hidden>
Sent: Wednesday, November 2, 2016 9:41:48 AM
To: address@hidden
Subject: [Discuss-gnuradio] gr-ieee 802.11 and threads for real time
 
Hello,

I am in the process of constructing my own 802.11 receiver using C and UHD.
I was looking at the implementation of gr-ieee 802.11.

I am trying to figure out how many parallel threads it is using for the
receiver and transmitter. In order to work in real time, especially decoding
802.11 packets in real time you need multiple threads. Also I am wondering
if the threading stuff is being taken care by gr-ieee 802.11 package or GNU
Radio. Because I coudn't find any threading related stuff in the mentioned
package.

In my code, I am using pthreads, there is a thread pool which creates 50
threads for receiver.
But it crashes and goes out of sync for almost 60% of the times. I was
wondering if I can get some clue to deal with real time decoding from users.

Regards
Sumit



--
View this message in context: http://gnuradio.4.n7.nabble.com/gr-ieee-802-11-and-threads-for-real-time-tp61872.html
Sent from the GnuRadio mailing list archive at Nabble.com.

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


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]