Funpack第五期_ADI PLUTO_FM播放器
Windows下PlutoSDR使用SDRsharp实现FM广播播放器
标签
嵌入式系统
vic
更新2021-02-23
992

内容介绍

本次主要演示的功能是使用PlutoSDR在Windows上使用SDR#来实现FM广播播放器的延时工作,操作很简单,只是需要注意以下几点

  1. PlutoSDR的默认频率范围为325MHz~3.8GHz,需要使用ADI提供的扩频命令扩展为70MHz~6GHz
  2. PlutoSDR默认天线不适合用于FM广播接收,我是用的是一个长导线来替换
  3. SDR#默认不支持PlutoSDR作为接收设备,通过ADI提供的插件软件包来完成SDR#对于PlutoSDR的支持

 

这一次的活动挺不错的,让我第一次接触到了SDR这个概念,只是无线电这个邻域专业性还是很强,很多软件例如Matlab、Gnuradio都没接触过,并且资料也不是很多。这次分享只能取个巧了,等之后对于Gnuradio的使用更多之后,再分享更具技术含量的东西给大家。谢谢!

SDR#的部分代码如下所示,完整源码请参看:https://github.com/cgommel/sdrsharp

using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using SDRSharp.Radio;

namespace SDRSharp
{
    public static class Program
    {
        [STAThread]
        static void Main()
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            if (Environment.OSVersion.Platform == PlatformID.Win32Windows || Environment.OSVersion.Platform == PlatformID.Win32NT)
            {
                var process = Process.GetCurrentProcess();
                process.PriorityBoostEnabled = true;
                process.PriorityClass = ProcessPriorityClass.RealTime;
                Utils.TimeBeginPeriod(1);
            }

            DSPThreadPool.Initialize();

            Control.CheckForIllegalCrossThreadCalls = false;
            Application.EnableVisualStyles();
            Application.Run(new MainForm());

            if (Environment.OSVersion.Platform == PlatformID.Win32Windows || Environment.OSVersion.Platform == PlatformID.Win32NT)
            {
                Utils.TimeEndPeriod(1);
            }

            DSPThreadPool.Terminate();

            Application.Exit(); // ExtIO may have some thread still running preventing the program from terminating
        }

        static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            var exception = (Exception) e.ExceptionObject;
            File.WriteAllText("crash.txt", exception.Message + "\r\n" + exception.StackTrace);
        }
    }
}

附件下载

sdrsharp.7z
集成PlutoSDR驱动的SDR#
sdrsharp-master.zip
SD#源码

团队介绍

评论

0 / 100
查看更多
目录
硬禾服务号
关注最新动态
0512-67862536
info@eetree.cn
江苏省苏州市苏州工业园区新平街388号腾飞创新园A2幢815室
苏州硬禾信息科技有限公司
Copyright © 2023 苏州硬禾信息科技有限公司 All Rights Reserved 苏ICP备19040198号