commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r11040 - in gnuradio/branches/developers/eb/vrt/vrt: a


From: eb
Subject: [Commit-gnuradio] r11040 - in gnuradio/branches/developers/eb/vrt/vrt: apps lib
Date: Fri, 15 May 2009 00:18:12 -0600 (MDT)

Author: eb
Date: 2009-05-15 00:18:12 -0600 (Fri, 15 May 2009)
New Revision: 11040

Modified:
   gnuradio/branches/developers/eb/vrt/vrt/apps/simple_rx_samples.cc
   gnuradio/branches/developers/eb/vrt/vrt/lib/socket_rx_buffer.cc
Log:
successfully received 1M packets w/o a packet counter error

Modified: gnuradio/branches/developers/eb/vrt/vrt/apps/simple_rx_samples.cc
===================================================================
--- gnuradio/branches/developers/eb/vrt/vrt/apps/simple_rx_samples.cc   
2009-05-15 05:51:52 UTC (rev 11039)
+++ gnuradio/branches/developers/eb/vrt/vrt/apps/simple_rx_samples.cc   
2009-05-15 06:18:12 UTC (rev 11040)
@@ -282,7 +282,7 @@
 
   // start receiving packets
 
-  uint64_t max_packets = 1000;
+  uint64_t max_packets = 1000000;
 
   while(!signaled && handler->d_npackets < max_packets){
     bool ok = vrt_receiver->rx_packets(handler.get());
@@ -297,5 +297,7 @@
   printf("%llu packets received, %llu bad pkt_cnt field values\n",
         handler->d_npackets, handler->d_nwrong_pkt_cnt);
 
+  sleep(1);
+
   return 0;
 }

Modified: gnuradio/branches/developers/eb/vrt/vrt/lib/socket_rx_buffer.cc
===================================================================
--- gnuradio/branches/developers/eb/vrt/vrt/lib/socket_rx_buffer.cc     
2009-05-15 05:51:52 UTC (rev 11039)
+++ gnuradio/branches/developers/eb/vrt/vrt/lib/socket_rx_buffer.cc     
2009-05-15 06:18:12 UTC (rev 11040)
@@ -127,7 +127,7 @@
     req.tp_frame_nr = d_buflen/req.tp_frame_size;
     d_frame_nr = req.tp_frame_nr;
 
-#if 1
+#if 0
     if (SOCKET_RX_BUFFER_DEBUG)
       std::cerr << "socket_rx_buffer:" 
                << " frame_size=" << req.tp_frame_size
@@ -255,10 +255,6 @@
       void *base = (uint8_t *)hdr+hdr->tp_mac;
       size_t len = hdr->tp_len;
       
-      // FYI, (base % 4 == 2) Not what we want given the current FPGA
-      // code.  This means that our uint32_t samples are not 4-byte
-      // aligned.  We'll have to deal with it downstream.
-
       if (1)
        fprintf(stderr, "socket_rx_buffer: base = %p  tp_mac = %3d  tp_net = 
%3d\n",
                base, hdr->tp_mac, hdr->tp_net);





reply via email to

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