当前位置:网站首页>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
边栏推荐
- Ag9311maq design 100W USB type C docking station data | ag9311maq is used for 100W USB type C to HDMI with PD fast charging +u3+sd/cf docking station scheme description
- Markdown learning (entry level)
- Codeforces Round #804 (Div. 2)
- 50Mhz产生时间
- Ag7120 and ag7220 explain the driving scheme of HDMI signal extension amplifier | ag7120 and ag7220 design HDMI signal extension amplifier circuit reference
- Taiwan Xinchuang sss1700 latest Chinese specification | sss1700 latest Chinese specification | sss1700datasheet Chinese explanation
- Content of one frame
- HDMI to VGA acquisition HD adapter scheme | HDMI to VGA 1080p audio and video converter scheme | cs5210 scheme design explanation
- Introduction to the types and repair methods of chip Eco
- A speed Limited large file transmission tool for every major network disk
猜你喜欢
How does starfish OS enable the value of SFO in the fourth phase of SFO destruction?
Redis master-slave replication
Several frequently used OCR document scanning tools | no watermark | avoid IQ tax
2022 high altitude installation, maintenance and demolition examination materials and high altitude installation, maintenance and demolition operation certificate examination
The examination contents of the third batch of Guangdong Provincial Safety Officer a certificate (main person in charge) in 2021 and the free examination questions of the third batch of Guangdong Prov
Y59. Chapter III kubernetes from entry to proficiency - continuous integration and deployment (III, II)
2、TD+Learning
Basic implementation of pie chart
A speed Limited large file transmission tool for every major network disk
Chapter 7 Bayesian classifier
随机推荐
Vscode is added to the right-click function menu
5、離散控制與連續控制
2022 free test questions of fusion welding and thermal cutting and summary of fusion welding and thermal cutting examination
3.MNIST数据集分类
2021-03-14 - play with generics
Get started quickly using the local testing tool postman
Complete model verification (test, demo) routine
基础篇——整合第三方技术
Authorization code of Axure rp9
9. Introduction to convolutional neural network
Su embedded training - Day7
Su embedded training - Day6
4. Apprentissage stratégique
General configuration title
Complete model training routine
Cs5261type-c to HDMI alternative ag9310 | ag9310 alternative
Basic realization of line graph
Markdown learning (entry level)
Chapter improvement of clock -- multi-purpose signal modulation generation system based on ambient optical signal detection and custom signal rules
Generic configuration legend