commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r6118 - gnuradio/branches/developers/gnychis/inband/us


From: gnychis
Subject: [Commit-gnuradio] r6118 - gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband
Date: Mon, 6 Aug 2007 00:48:14 -0600 (MDT)

Author: gnychis
Date: 2007-08-06 00:48:13 -0600 (Mon, 06 Aug 2007)
New Revision: 6118

Modified:
   
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc
Log:
Adding in the building of the properties dictionary and stripping the RSSI from
packet and reporting it through the dictionary.


Modified: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc 
    2007-08-05 16:35:48 UTC (rev 6117)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc 
    2007-08-06 06:48:13 UTC (rev 6118)
@@ -1086,12 +1086,19 @@
   
   memcpy(samples, pkt->payload(), payload_len);
 
+  // Build a properties dictionary to store things such as the RSSI
+  pmt_t properties =  pmt_make_dict();
+
+  pmt_dict_set(properties,
+               pmt_intern("rssi"),
+               pmt_from_long(pkt->rssi()));
+
   d_rx[port]->send(s_response_recv_raw_samples,
                    pmt_list5(invocation_handle,
                              status,
                              v_samples,
                              pmt_from_long(pkt->timestamp()),
-                             PMT_NIL));
+                             properties));
   return;
 }
 





reply via email to

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