{"id":623,"date":"2021-03-28T22:15:30","date_gmt":"2021-03-28T13:15:30","guid":{"rendered":"https:\/\/sirius10.dip.jp\/blog\/wordpress\/?p=623"},"modified":"2021-07-17T09:32:39","modified_gmt":"2021-07-17T00:32:39","slug":"gnu-radio","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/03\/28\/623\/","title":{"rendered":"GNU Radio"},"content":{"rendered":"\n<p>SDRSharp \u304c\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067 GNU Radio \u3092\u4f7f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p class=\"console\">$ sudo apt-get install -y gnuradio gr-osmosdr<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8d77\u52d5<\/h2>\n\n\n\n<p>\u3000\u30e1\u30cb\u30e5\u30fc\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304b\u3089\u8d77\u52d5\u3057\u3066\u3082\u3044\u3044\u3067\u3059\u304c\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u8d77\u52d5\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ gnuradio-companion<\/p>\n\n\n\n<p>\u3000\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3057\u3066\u3064\u306a\u3052\u3066\u3044\u304f\u3088\u3046\u3067\u3059\u3002Gstreamer \u3092\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb\u306b\u3057\u305f\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3057\u3066\u3064\u306a\u3052\u3066\u3044\u304f<\/h2>\n\n\n\n<p>\u3000\u30d6\u30ed\u30c3\u30af\u3092\u7d44\u3093\u3067\u307f\u305f\u304c\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002F6 \u3092\u62bc\u3059\u3068\u3067\u5b9f\u884c\u3067\u304d\u307e\u3057\u305f\u304c\u3001xterm \u304c\u306a\u3044\u3068\u6012\u3089\u308c\u307e\u3057\u305f\u3002\u306a\u305c\uff1f<\/p>\n\n\n\n<p>\u3000\u3068\u306b\u304b\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo apt-get install xterm<\/p>\n\n\n\n<p>\u3000Audio Sink(ALSA) \u3092\u4f7f\u3063\u3066\u5fa9\u8abf\u3057\u305f\u97f3\u3092\u9cf4\u3089\u305d\u3046\u3068\u3057\u307e\u3057\u305f\u304c\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"console pre\"><code>Generating: '\/home\/pi\/Downloads\/top_block.py'\n\nExecuting: \/usr\/bin\/python2 -u \/home\/pi\/Downloads\/top_block.py\n\nqt5ct: using qt5ct plugin\ngr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4\nbuilt-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp \nUsing device #0 Generic RTL2832U SN: 77771111153705700\nusb_claim_interface error -6\n\nFATAL: Failed to open rtlsdr device.\n\nTrying to fill up 1 missing channel(s) with null source(s).\nThis is being done to prevent the application from crashing\ndue to gnuradio bug #528.\n\ngr::log :INFO: audio source - Audio sink arch: alsa\ngr::log :ERROR: audio_alsa_sink0 - [default]: set_channels failed: \u7121\u52b9\u306a\u5f15\u6570\u3067\u3059\nTraceback (most recent call last):\n  File \"\/home\/pi\/Downloads\/top_block.py\", line 171, in <module>\n    main()\n  File \"\/home\/pi\/Downloads\/top_block.py\", line 160, in main\n    tb.start()\n  File \"\/usr\/lib\/python2.7\/dist-packages\/gnuradio\/gr\/top_block.py\", line 109, in start\n    top_block_start_unlocked(self._impl, max_noutput_items)\n  File \"\/usr\/lib\/python2.7\/dist-packages\/gnuradio\/gr\/runtime_swig.py\", line 5656, in top_block_start_unlocked\n    return _runtime_swig.top_block_start_unlocked(r, max_noutput_items)\nRuntimeError: check topology failed on audio_alsa_sink(7) using ninputs=1, noutputs=0\n\n&gt;&gt;&gt; Done (return code 1)<\/module><\/code><\/p>\n\n\n\n<p>\u3000Audio Sink \u306e\u30c7\u30d0\u30a4\u30b9\u540d\u3092 hw:0,0 \u3068\u304b hw:0,1 \u3068\u304b\u3044\u308d\u3044\u308d\u5909\u3048\u3066\u307f\u3066\u3082\u3060\u3081\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3000<a href=\"https:\/\/github.com\/lutusp\/PLSDR\/issues\/6\">https:\/\/github.com\/lutusp\/PLSDR\/issues\/6<\/a> \u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u898b\u308b\u3068\u3001Audio Sink \u306e Input \u3092 2 \u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u5165\u529b\u304c 2 \u3064\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u304c\u3068\u308a\u3042\u3048\u305a\u3001\u540c\u3058\u3082\u306e\u3092\uff12\u3064\u3064\u306a\u304e\u307e\u3057\u305f\u3002\u518d\u751f\u306f\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sirius10.dip.jp\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/GNU_RADIO-1024x640.png\" alt=\"\" class=\"wp-image-624\" srcset=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/GNU_RADIO-1024x640.png 1024w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/GNU_RADIO-300x188.png 300w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/GNU_RADIO-768x480.png 768w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/GNU_RADIO.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u30d6\u30ed\u30c3\u30af\u56f3<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sirius10.dip.jp\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/GNU_RADIO2-1024x640.png\" alt=\"\" class=\"wp-image-625\" srcset=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/GNU_RADIO2-1024x640.png 1024w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/GNU_RADIO2-300x188.png 300w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/GNU_RADIO2-768x480.png 768w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/GNU_RADIO2.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u5b9f\u884c\u3057\u305f\u753b\u9762<\/figcaption><\/figure>\n\n\n\n<p>\u3000\u3061\u3083\u3093\u3068\u52d5\u304f\u3088\u3046\u3067\u3059\u3002\u3061\u3087\u3063\u3068\u4f7f\u3063\u3066\u307f\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p><a href=\"http:\/\/www.asahi-net.or.jp\/~ei7m-wkt\/numb1044.htm\">http:\/\/www.asahi-net.or.jp\/~ei7m-wkt\/numb1044.htm<\/a> \u304c\u53c2\u8003\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u4f7f\u3063\u305f GNU Radio \u306e\u30d6\u30ed\u30c3\u30af\u56f3\u306f<a href=\"\/Download\/index.php#FM_Radioi_grc.zip\">\u5404\u7a2e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\u304b\u3089\u3069\u3046\u305e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SDRSharp \u304c\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067 GNU Radio \u3092\u4f7f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb $ sudo apt-get install -y gnuradio gr-osmosdr \u8d77\u52d5 \u3000\u30e1\u30cb\u30e5\u30fc\u306e\u30d7\u30ed\u30b0\u30e9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-623","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=623"}],"version-history":[{"count":5,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/623\/revisions"}],"predecessor-version":[{"id":1705,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/623\/revisions\/1705"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}