|
From: | Sumit Kumar |
Subject: | [Discuss-gnuradio] Resetting the packet counter in gr-ieee 802.11 |
Date: | Wed, 27 Jun 2018 00:14:35 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
Hi, (The question is not very specific to gr-ieee 802.11 :) ) I have made a pdu frame counter in gr-ieee 802.11. For that I
have done some modifications in parse_mac.cc (line 272, file
attached). Its very small change where I do d_total_packets += 1; after every successful wfi frame reception. And then I pass d_total_packets thru message port for
display and I see total packets received like this : Now I need to reset this frame counter at run time to zero when I check a qt-gui-check box. But I am not getting the idea for doing that. In qt-gui-check box I can make a variable to go true or false. But then how to convey this information to the parse_data() function in the attached file at run time. A kind of flag which resets d_total_packets to 0 without killing the flow graph. I have attached the parse_mac.cc (line 191) for reference. Regards Sumit |
parse_mac.cc
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |