Revision 11c83c60
| b/host/lib/usrp/usrp2/io_impl.cpp | ||
|---|---|---|
| 113 | 113 |
metadata.event_code = vrt_packet_handler::get_context_code<async_metadata_t::event_code_t>(vrt_hdr, if_packet_info); |
| 114 | 114 |
|
| 115 | 115 |
//print the famous U, and push the metadata into the message queue |
| 116 |
if (metadata.event_code & underflow_flags) std::cerr << "U"; |
|
| 116 |
if (metadata.event_code & underflow_flags) std::cerr << "U" << std::flush;
|
|
| 117 | 117 |
async_msg_fifo->push_with_pop_on_full(metadata); |
| 118 | 118 |
continue; |
| 119 | 119 |
} |
| ... | ... | |
| 121 | 121 |
//handle the packet count / sequence number |
| 122 | 122 |
if (if_packet_info.packet_count != next_packet_seq){
|
| 123 | 123 |
//std::cerr << "S" << (if_packet_info.packet_count - next_packet_seq)%16; |
| 124 |
std::cerr << "O"; //report overflow (drops in the kernel) |
|
| 124 |
std::cerr << "O" << std::flush; //report overflow (drops in the kernel)
|
|
| 125 | 125 |
} |
| 126 | 126 |
next_packet_seq = (if_packet_info.packet_count+1)%16; |
| 127 | 127 |
|
| b/host/lib/usrp/usrp2/mboard_impl.cpp | ||
|---|---|---|
| 69 | 69 |
_allowed_decim_and_interp_rates.push_back(i); |
| 70 | 70 |
} |
| 71 | 71 |
|
| 72 |
//Issue a stop streaming command (in case it was left running). |
|
| 73 |
//Since this command is issued before the networking is setup, |
|
| 74 |
//most if not all junk packets will never make it to the socket. |
|
| 75 |
this->issue_ddc_stream_cmd(stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS); |
|
| 76 |
|
|
| 72 | 77 |
//init the rx control registers |
| 73 | 78 |
_iface->poke32(U2_REG_RX_CTRL_NSAMPS_PER_PKT, _io_helper.get_max_recv_samps_per_packet()); |
| 74 | 79 |
_iface->poke32(U2_REG_RX_CTRL_NCHANNELS, 1); |
| ... | ... | |
| 107 | 112 |
//set default subdev specs |
| 108 | 113 |
(*this)[MBOARD_PROP_RX_SUBDEV_SPEC] = subdev_spec_t(); |
| 109 | 114 |
(*this)[MBOARD_PROP_TX_SUBDEV_SPEC] = subdev_spec_t(); |
| 110 |
|
|
| 111 |
//Issue a stop streaming command (in case it was left running). |
|
| 112 |
//Since this command is issued before the networking is setup, |
|
| 113 |
//most if not all junk packets will never make it to the socket. |
|
| 114 |
this->issue_ddc_stream_cmd(stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS); |
|
| 115 | 115 |
} |
| 116 | 116 |
|
| 117 | 117 |
usrp2_mboard_impl::~usrp2_mboard_impl(void){
|
Also available in: Unified diff