当前位置:网站首页>Running OFDM in gnuradio_ RX error: gr:: Log: info: packet_ headerparser_ b0 - Detected an invalid packet at item ××
Running OFDM in gnuradio_ RX error: gr:: Log: info: packet_ headerparser_ b0 - Detected an invalid packet at item ××
2022-07-08 01:22:00 【You roll, I don't roll】
Modification method : Reduce the multiplier factor at the sending end .
But with the learning attitude of knowing what it is and why , The reasons for this phenomenon are explained below :
2021.10.28 to update :
In the actual test, it is found that , The cause of this problem may also be the failure of demodulation of the received signal , Cause header information (header_data) Parse failure , Then we can't know the frame length and other information . At this time, we should consider the channel environment 、 Demodulation algorithm and other factors affect .
Recently trying to run and modify GNU Radio Medium OFDM routine , First try to do a text transmission demo.
( Location gnuradio/gr-digital/examples/ofdm).
First, the official routine ofdm_tx Medium OFDM_Receiver use UHD:USRP Sink To replace . take ofdm_rx Medium OFDM_Transmitter use UHD:USRP Source To replace . And modify the data source to a txt file .USRP Some parameters are set as follows :
Because it is before the test of underwater acoustic communication , So the frequency is khz Grade , At this time, the antenna cannot be used for transmission , So use SMA Test by direct connection . Use two X310+LFTX/LFRX To test . At first , Data transmission at the transmitter is normal , But at the receiving end, the following appears error message :
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 0
gr::log :INFO: header_payload_demux0 - Parser returned #f
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 48
gr::log :INFO: header_payload_demux0 - Parser returned #f
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 96
gr::log :INFO: header_payload_demux0 - Parser returned #f
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 144
gr::log :INFO: header_payload_demux0 - Parser returned #f
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 192
gr::log :INFO: header_payload_demux0 - Parser returned #f
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 240
gr::log :INFO: header_payload_demux0 - Parser returned #f
......
Look carefully at the error information , It should be OFDM In the code header There is a problem in data parsing , The following modules :
This problem looks like the output of the assertion code in the source code log, So check Packet Header Parser The block Source code , It is found that the error is as follows :
......
if (!d_header_formatter->header_parser(in, tags)) {
GR_LOG_INFO(d_logger,
boost::format("Detected an invalid packet at item %1%") %
nitems_read(0));
message_port_pub(d_port, pmt::PMT_F);
} else {
pmt::pmt_t dict(pmt::make_dict());
for (unsigned i = 0; i < tags.size(); i++) {
dict = pmt::dict_add(dict, tags[i].key, tags[i].value);
}
message_port_pub(d_port, dict);
}
......
In the code d_header_formatter->header_parser(in, tags) The function of is to parse the input port in And as tag Write to tags in , If the parsing is successful, it will return ture, Otherwise return to false. See here , Obviously, it shows that the error reported above is due to header There is a problem in data parsing . So let's start to reflect on how Baotou parsing went wrong ? It's not supposed to be , I'll go straight there SMA Two cable handles X310 The sending and receiving ports of are connected to receive data , First of all, we can eliminate the impact of too much noise . That makes no sense .. Excluding the influence of channel , Only their own reasons . a fit google Come down ( Don't count on baidu 了 ..), Finally in the One answer Found a glimmer of hope :
That means : At the sending end, the final data enters UHD:USRP Sink There's a Multiply Const modular :
By adjusting the multiplication factor The magnitude of the transmitted signal can be controlled by the magnitude of , And my situation may be because the multiplier factor is too large , Lead to The output signal is limited 了 (LFRX/LFTX Daughter board signal limiting [-1, 1]v), This leads to serious distortion of the transmitted signal , Naturally, the receiving end cannot be parsed . So I just Reduce the multiplier factor by 0.008(8m), After that, the test is carried out , Problem solving ! Smooth and usrp The world has hello world, Ha ha ha ha ha ha ha
边栏推荐
- 133. Clone map
- HDMI to VGA acquisition HD adapter scheme | HDMI to VGA 1080p audio and video converter scheme | cs5210 scheme design explanation
- Chapter 5 neural network
- Vscode reading Notepad Chinese display garbled code
- 2021 welder (primary) examination skills and welder (primary) operation examination question bank
- C#中string用法
- 2. Nonlinear regression
- Leetcode notes No.21
- Frrouting BGP protocol learning
- 基础篇——整合第三方技术
猜你喜欢
Led serial communication
1.线性回归
Markdown learning (entry level)
5、离散控制与连续控制
Ag9310 for type-C docking station scheme circuit design method | ag9310 for type-C audio and video converter scheme circuit design reference
Content of one frame
130. 被围绕的区域
General configuration tooltip
跨模态语义关联对齐检索-图像文本匹配(Image-Text Matching)
Vscode reading Notepad Chinese display garbled code
随机推荐
2022 safety officer-a certificate free examination questions and safety officer-a certificate mock examination
完整的模型训练套路
Ag9310 design USB type C to hdmi+u2+5v slow charging scheme design | ag9310 expansion dock scheme circuit | type-C dongle design data
How does starfish OS enable the value of SFO in the fourth phase of SFO destruction?
1. Linear regression
Macro definition and multiple parameters
2022 safety officer-c certificate examination paper and safety officer-c certificate simulated examination question bank
基础篇——整合第三方技术
Application of state mode in JSF source code
50Mhz产生时间
5. Over fitting, dropout, regularization
Continued from the previous design
Capstone/cs5210 chip | cs5210 design scheme | cs5210 design data
Authorization code of Axure rp9
Basic realization of line graph
2022 operation certificate examination for main principals of hazardous chemical business units and main principals of hazardous chemical business units
13. Model saving and loading
2021-03-06 - play with the application of reflection in the framework
Su embedded training - Day5
133. 克隆图