简体   繁体   English

从 GNU Radio Companion (3.7.11) 中获取数据的问题

[英]Problem to get the data out of GNU Radio Companion (3.7.11)

First, I have to say that I'm a noobie posting at this site.首先,我不得不说我是这个网站上的菜鸟。

I have written this post because I'm trying to detect signals in the 2.4GHz band.我写这篇文章是因为我试图检测 2.4GHz 频段的信号。 For that, I'm using GNU Radio Companion with this result that worked for me:为此,我正在使用 GNU Radio Companion,其结果对我有用:

IMG:检测2.4GHz频段的简单程序

But I want to get the information to a python script to work with it.但我想将信息传递给 python 脚本以使用它。

I was looking for something that can help me to make that possible and I found this tutorial: http://recolog.blogspot.com/2015/08/processing-data-out-of-gnuradio.html我一直在寻找可以帮助我实现这一目标的东西,我找到了这个教程: http : //recolog.blogspot.com/2015/08/processing-data-out-of-gnuradio.html

I tried to replicated it but I have this problem:我试图复制它,但我有这个问题:

IMG:有错误的教程流程图

IMG:错误描述

I have been searching for hours and I found this problem is caused by the version of the GNU Radio (in my case, 3.7.11), but I can't install a previous version because it cause troubles between other packages that I need.我已经搜索了几个小时,我发现这个问题是由 GNU Radio 的版本引起的(在我的例子中是 3.7.11),但我无法安装以前的版本,因为它会导致我需要的其他软件包之间出现问题。

So the question is, How can I replicate the tutorial in my current version?所以问题是,如何在当前版本中复制教程?

the red tipped arrow indicate that the data format on either ends (output of a block to input of a block) are incompatible for connection.红色尖头箭头表示两端的数据格式(块的输出到块的输入)不兼容连接。

Possible solution可能的解决方案

The easiest method is to use a file sink block in gnuradio-companion最简单的方法是在 gnuradio-companion 中使用文件接收

The file sink block allows you to write into any format.文件接收器块允许您写入任何格式。

You can later take this file and analyse for detecting您可以稍后获取此文件并进行分析以进行检测

take new pad sink block, change properties( lable=output, inputtype=message, vectorlength=2048 ) in the pad block without connecting to the message sink, after changing it connect the wire to message sink.取新的 pad sink 块,更改 pad 块中的属性( lable=output, inputtype=message, vectorlength=2048 )而不连接到消息接收器,更改后将电线连接到消息接收器。

then your grc does not show any error.那么您的 grc 不会显示任何错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM