{"id":656,"date":"2026-06-11T13:43:13","date_gmt":"2026-06-11T05:43:13","guid":{"rendered":"https:\/\/projectleon.net\/make\/blog\/sdr-mesh-radio-gnu-radio-usrp-b200-digital-network-farsi\/"},"modified":"2026-06-11T13:43:14","modified_gmt":"2026-06-11T05:43:14","slug":"sdr-mesh-radio-gnu-radio-usrp-b200-digital-network-farsi","status":"publish","type":"post","link":"https:\/\/projectleon.net\/make\/blog\/sdr-mesh-radio-gnu-radio-usrp-b200-digital-network-farsi\/","title":{"rendered":"\u0633\u0627\u062e\u062a \u0631\u0627\u062f\u06cc\u0648 \u0645\u0634 SDR \u0628\u0627 GNU Radio \u0648 USRP B200: \u0634\u0628\u06a9\u0647 \u0631\u0627\u062f\u06cc\u0648 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 (\u0641\u0627\u0631\u0633\u06cc)"},"content":{"rendered":"<div class='hero-image-container' style='margin-bottom:28px;border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,0.08)'>\n<img src='https:\/\/projectleon.net\/make\/wp-content\/uploads\/2026\/06\/post117-sdr-mesh-gnuradio.jpg' alt='GNU Radio USRP B200 SDR Mesh \u0634\u0628\u06a9\u0647 \u0631\u0627\u062f\u06cc\u0648 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644' style='width:100%;height:auto;display:block' loading='eager'\/>\n<\/div>\n<div class='beginner-intro' style='background:#f0f7ff;border-right:4px solid #2e5fb6;padding:16px 20px;border-radius:10px;margin-bottom:22px'>\n<h2 style='margin-top:0'>\u0634\u0628\u06a9\u0647 \u0645\u0634 \u0631\u0627\u062f\u06cc\u0648 SDR \u0686\u06cc\u0633\u062a\u061f (\u0645\u0628\u062a\u062f\u06cc)<\/h2>\n<p>\u062f\u0631 \u06cc\u06a9 \u0634\u0628\u06a9\u0647 \u0645\u0634 \u0631\u0627\u062f\u06cc\u0648 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644\u060c \u0647\u0631 \u0646\u0648\u062f \u06cc\u06a9 SDR (<strong>USRP B200<\/strong> \u06cc\u0627 RTL-SDR \u0628\u0627 TX \u0645\u062b\u0644 HackRF) \u062f\u0627\u0631\u062f \u06a9\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0647\u0645 \u0627\u0631\u0633\u0627\u0644 \u0648 \u0647\u0645 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u062f. <strong>GNU Radio<\/strong> \u0644\u0627\u06cc\u0647 \u0641\u06cc\u0632\u06cc\u06a9\u06cc (\u0645\u062f\u0648\u0644\u0627\u0633\u06cc\u0648\u0646 OFDM \u06cc\u0627 GMSK) \u0631\u0627 \u067e\u06cc\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f. \u06cc\u06a9 MAC Layer \u0633\u0627\u062f\u0647 \u0631\u0648\u06cc Python \u067e\u06cc\u0627\u0645\u200c\u0647\u0627 \u0631\u0627 \u0628\u0633\u062a\u0647\u200c\u0628\u0646\u062f\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u0645\u0633\u06cc\u0631\u06cc\u0627\u0628\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<p>\u0627\u06cc\u0646 \u0631\u0648\u06cc\u06a9\u0631\u062f \u0628\u0631\u0627\u06cc \u062a\u062d\u0642\u06cc\u0642\u0627\u062a \u0634\u0628\u06a9\u0647\u200c\u0647\u0627\u06cc \u0631\u0627\u062f\u06cc\u0648\u06cc\u06cc \u0627\u0631\u062a\u0634\u060c \u0647\u0648\u0627\u067e\u06cc\u0645\u0627\u0647\u0627\u06cc \u0628\u062f\u0648\u0646 \u0633\u0631\u0646\u0634\u06cc\u0646 \u0645\u062f\u0646\u06cc\u060c \u0648 \u0634\u0628\u06a9\u0647\u200c\u0647\u0627\u06cc \u0627\u0636\u0637\u0631\u0627\u0631\u06cc \u062c\u0627\u0644\u0628 \u0627\u0633\u062a. USRP B200 \u062d\u062f\u0648\u062f \u06f6\u06f0\u06f0 \u062f\u0644\u0627\u0631 \u0627\u0633\u062a \u0627\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0628\u0627 HackRF (\u06f2\u06f0\u06f0 \u062f\u0644\u0627\u0631) \u0647\u0645 \u0634\u0631\u0648\u0639 \u06a9\u0631\u062f.<\/p>\n<\/div>\n<div style='border:1px solid #d8d8d8;padding:18px 20px;border-radius:12px;background:#fafafa;margin-bottom:22px'>\n<h2 style='margin-top:0'>\u0645\u062d\u0635\u0648\u0644\u06cc \u06a9\u0647 \u0645\u06cc\u200c\u0633\u0627\u0632\u06cc\u062f<\/h2>\n<p>\u06cc\u06a9 \u0634\u0628\u06a9\u0647 \u0631\u0627\u062f\u06cc\u0648 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 \u06f2 \u0646\u0648\u062f\u06cc \u0628\u0627 GNU Radio \u0648 USRP\/HackRF.<\/p>\n<ul>\n<li><strong>\u0647\u0632\u06cc\u0646\u0647:<\/strong> HackRF One \u2248 \u06f2\u06f5\u06f0 \u062f\u0644\u0627\u0631 (\u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0627\u0631\u0632\u0627\u0646\u200c\u062a\u0631)<\/li>\n<li><strong>\u0645\u062f\u0648\u0644\u0627\u0633\u06cc\u0648\u0646:<\/strong> GMSK \u06cc\u0627 BPSK<\/li>\n<li><strong>\u0646\u0631\u062e \u062f\u0627\u062f\u0647:<\/strong> \u06f1\u06f0-\u06f1\u06f0\u06f0kbps<\/li>\n<\/ul>\n<\/div>\n<p><svg viewBox='0 0 860 200' width='100%' xmlns='http:\/\/www.w3.org\/2000\/svg' style='background:#0d1117;border:1px solid #333;border-radius:12px;margin-bottom:22px'>\n<rect x='0' y='0' width='860' height='200' rx='12' fill='#0d1117'\/>\n<text x='430' y='20' text-anchor='middle' font-size='12' font-family='monospace' fill='#4fc3f7'>GNU Radio Flowgraph \u2014 SDR Mesh Node<\/text>\n<!-- \u0628\u0644\u0648\u06a9\u200c\u0647\u0627\u06cc GNU Radio -->\n<rect x='30' y='40' width='110' height='40' rx='4' fill='#1a3a4a' stroke='#4fc3f7' stroke-width='1'\/>\n<text x='85' y='64' text-anchor='middle' font-size='9' font-family='monospace' fill='#4fc3f7'>Message Source<\/text>\n<line x1='140' y1='60' x2='170' y2='60' stroke='#4fc3f7' stroke-width='1'\/>\n<rect x='170' y='40' width='120' height='40' rx='4' fill='#1a4a1a' stroke='#4caf50' stroke-width='1'\/>\n<text x='230' y='57' text-anchor='middle' font-size='9' font-family='monospace' fill='#4caf50'>GMSK Modulator<\/text>\n<text x='230' y='70' text-anchor='middle' font-size='8' font-family='monospace' fill='#888'>BT=0.3 1200bps<\/text>\n<line x1='290' y1='60' x2='320' y2='60' stroke='#4caf50' stroke-width='1'\/>\n<rect x='320' y='40' width='110' height='40' rx='4' fill='#3a1a1a' stroke='#ff5722' stroke-width='1'\/>\n<text x='375' y='64' text-anchor='middle' font-size='9' font-family='monospace' fill='#ff5722'>USRP\/HackRF TX<\/text>\n<line x1='430' y1='60' x2='460' y2='60' stroke='#ff5722' stroke-width='1' stroke-dasharray='3,2'\/>\n<text x='475' y='58' font-size='10' font-family='monospace' fill='#aaa'>\u2248<\/text>\n<line x1='490' y1='60' x2='520' y2='60' stroke='#81c784' stroke-width='1' stroke-dasharray='3,2'\/>\n<rect x='520' y='40' width='110' height='40' rx='4' fill='#3a1a1a' stroke='#ff5722' stroke-width='1'\/>\n<text x='575' y='64' text-anchor='middle' font-size='9' font-family='monospace' fill='#ff5722'>USRP\/HackRF RX<\/text>\n<line x1='630' y1='60' x2='660' y2='60' stroke='#81c784' stroke-width='1'\/>\n<rect x='660' y='40' width='120' height='40' rx='4' fill='#1a4a1a' stroke='#4caf50' stroke-width='1'\/>\n<text x='720' y='57' text-anchor='middle' font-size='9' font-family='monospace' fill='#4caf50'>GMSK Demodulator<\/text>\n<text x='720' y='70' text-anchor='middle' font-size='8' font-family='monospace' fill='#888'>Clock Recovery<\/text>\n<!-- \u0644\u0627\u06cc\u0647 MAC -->\n<rect x='30' y='110' width='800' height='60' rx='8' fill='#1a1a3a' stroke='#7986cb' stroke-width='1'\/>\n<text x='430' y='135' text-anchor='middle' font-size='11' font-family='monospace' fill='#7986cb'>MAC Layer (Python) \u2014 Framing, ARQ, Addressing<\/text>\n<text x='430' y='155' text-anchor='middle' font-size='10' font-family='monospace' fill='#888'>| Preamble | Sync | DST | SRC | LEN | Payload | CRC |<\/text>\n<text x='430' y='188' text-anchor='middle' font-size='11' font-family='Tahoma' fill='#888'>GNU Radio Mesh \u2014 \u0644\u0627\u06cc\u0647 \u0641\u06cc\u0632\u06cc\u06a9\u06cc GMSK + MAC \u0633\u0627\u062f\u0647<\/text>\n<\/svg><\/p>\n<h2>MAC Layer \u0633\u0627\u062f\u0647 \u0628\u0627 Python<\/h2>\n<pre style='background:#1e1e1e;color:#d4d4d4;padding:14px;border-radius:10px;overflow-x:auto;font-size:13px'><code class='language-python'>\nimport struct, time\nfrom gnuradio import gr, blocks, digital\n\nclass SimpleMACLayer:\n    \"\"\"MAC Layer \u0633\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc \u0634\u0628\u06a9\u0647 \u0631\u0627\u062f\u06cc\u0648 SDR\"\"\"\n    PREAMBLE = bytes([0xAA]*4)\n    SYNC = bytes([0x2D,0xD4])\n\n    def __init__(self, my_addr):\n        self.addr = my_addr\n\n    def frame(self, dst, payload: bytes) -> bytes:\n        \"\"\"\u0633\u0627\u062e\u062a \u0641\u0631\u06cc\u0645 MAC\"\"\"\n        header = struct.pack(\"BBB\", dst, self.addr, len(payload))\n        data = self.PREAMBLE + self.SYNC + header + payload\n        crc = sum(data) & 0xFF\n        return data + bytes([crc])\n\n    def deframe(self, raw: bytes):\n        \"\"\"\u0628\u0627\u0632 \u06a9\u0631\u062f\u0646 \u0641\u0631\u06cc\u0645\"\"\"\n        idx = raw.find(self.SYNC)\n        if idx < 0: return None\n        body = raw[idx+2:]\n        dst, src, ln = struct.unpack(\"BBB\", body[:3])\n        if len(body) < 3+ln+1: return None\n        payload = body[3:3+ln]\n        crc_calc = sum(body[:-1]) &#038; 0xFF\n        crc_recv = body[-1]\n        if crc_calc != crc_recv: return None\n        return {\"dst\":dst, \"src\":src, \"payload\":payload}\n\n# \u0627\u0633\u062a\u0641\u0627\u062f\u0647:\nmac = SimpleMACLayer(my_addr=1)\nframe = mac.frame(dst=2, payload=b\"Hello Node 2!\")\nprint(f\"Frame: {frame.hex()}\")\ndecoded = mac.deframe(frame)\nprint(f\"Decoded: {decoded}\")\n<\/code><\/pre>\n<h2>\u0686\u06a9\u200c\u0644\u06cc\u0633\u062a \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc<\/h2>\n<table style='width:100%;border-collapse:collapse;margin-bottom:18px'>\n<thead>\n<tr style='background:#e8f0fe'>\n<th style='padding:9px;border:1px solid #ddd;text-align:right'>\u0628\u0631\u0631\u0633\u06cc<\/th>\n<th style='padding:9px;border:1px solid #ddd;text-align:right'>\u062a\u0648\u0636\u06cc\u062d<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>GNU Radio \u0646\u0635\u0628 \u0627\u0633\u062a\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>sudo apt install gnuradio<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>HackRF\/USRP \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0645\u06cc\u200c\u0634\u0648\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>hackrf_info \u06cc\u0627 uhd_find_devices<\/td>\n<\/tr>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>GMSK TX\/RX Loop-back \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u0622\u0646\u062a\u0646 \u06a9\u0648\u062a\u0627\u0647 loop-back<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>\u067e\u06cc\u0627\u0645 \u0628\u06cc\u0646 \u06f2 \u0646\u0648\u062f \u0627\u0631\u0633\u0627\u0644 \u0634\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u06f1 \u0645\u062a\u0631 \u0641\u0627\u0635\u0644\u0647 \u0628\u0627 \u0622\u0646\u062a\u0646 \u06a9\u0648\u0686\u06a9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><svg viewBox='0 0 860 200' width='100%' xmlns='http:\/\/www.w3.org\/2000\/svg' style='background:#fff;border:1px solid #e0e0e0;border-radius:12px;margin-bottom:22px'>\n<rect x='40' y='75' width='155' height='60' rx='12' fill='#f7d794' stroke='#a06d00' stroke-width='2'\/>\n<rect x='245' y='75' width='155' height='60' rx='12' fill='#8bd3dd' stroke='#1f6f78' stroke-width='2'\/>\n<rect x='450' y='75' width='155' height='60' rx='12' fill='#8bd3dd' stroke='#1f6f78' stroke-width='2'\/>\n<rect x='655' y='75' width='165' height='60' rx='12' fill='#b7e4a0' stroke='#3a7a1e' stroke-width='2'\/>\n<line x1='195' y1='105' x2='245' y2='105' stroke='#555' stroke-width='2.5'\/>\n<line x1='400' y1='105' x2='450' y2='105' stroke='#555' stroke-width='2.5' stroke-dasharray='6,3'\/>\n<line x1='605' y1='105' x2='655' y2='105' stroke='#555' stroke-width='2.5'\/>\n<text x='117' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>HackRF TX<\/text>\n<text x='117' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>GMSK<\/text>\n<text x='322' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>GNU Radio<\/text>\n<text x='322' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>MAC Layer<\/text>\n<text x='527' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>GNU Radio<\/text>\n<text x='527' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>GMSK Demod<\/text>\n<text x='737' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>HackRF RX<\/text>\n<text x='737' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>\u0646\u0648\u062f \u06f2<\/text>\n<text x='430' y='175' text-anchor='middle' font-size='13' font-family='Tahoma' fill='#666'>SDR Mesh \u2014 HackRF + GNU Radio GMSK + MAC Python<\/text>\n<\/svg><\/p>\n<h2>\u0648\u06cc\u062f\u0626\u0648\u0647\u0627\u06cc \u0622\u0645\u0648\u0632\u0634\u06cc<\/h2>\n<div style='display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;margin:20px 0'>\n<iframe width='100%' height='315' src='https:\/\/www.youtube.com\/embed\/D8I51aGXiME' title='GNU Radio Digital Modulation GMSK Tutorial' frameborder='0' allow='accelerometer;autoplay;clipboard-write;encrypted-media;gyroscope;picture-in-picture' allowfullscreen><\/iframe><br \/>\n<iframe width='100%' height='315' src='https:\/\/www.youtube.com\/embed\/1apMuoE0B8Y' title='HackRF GNU Radio SDR Mesh Network' frameborder='0' allow='accelerometer;autoplay;clipboard-write;encrypted-media;gyroscope;picture-in-picture' allowfullscreen><\/iframe>\n<\/div>\n<h2>\u0645\u0646\u0627\u0628\u0639 \u0628\u06cc\u0634\u062a\u0631<\/h2>\n<ul>\n<li><a href='https:\/\/www.aparat.com\/result\/GNU_Radio_SDR_%D8%B4%D8%A8%DA%A9%D9%87_%D8%B1%D8%A7%D8%AF%DB%8C%D9%88' target='_blank'>\u0622\u067e\u0627\u0631\u0627\u062a: GNU Radio SDR \u0634\u0628\u06a9\u0647 \u0631\u0627\u062f\u06cc\u0648 \u0641\u0627\u0631\u0633\u06cc<\/a><\/li>\n<li><a href='https:\/\/wiki.gnuradio.org\/index.php\/Tutorials' target='_blank'>GNU Radio: Official Tutorials<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0622\u0645\u0648\u0632\u0634 \u0633\u0627\u062e\u062a \u06cc\u06a9 \u0634\u0628\u06a9\u0647 \u0631\u0627\u062f\u06cc\u0648 \u0645\u0634 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 \u0628\u0627 GNU Radio \u0648 USRP B200\u061b \u0645\u062f\u0648\u0644\u0627\u0633\u06cc\u0648\u0646 OFDM\u060c MAC Layer \u0633\u0627\u062f\u0647\u060c \u0627\u0631\u062a\u0628\u0627\u0637 \u06f2 \u0646\u0648\u062f\u060c \u067e\u0631\u062f\u0627\u0632\u0634 \u0631\u0648\u06cc \u0644\u067e\u200c\u062a\u0627\u067e.<\/p>\n","protected":false},"author":1,"featured_media":655,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[19],"tags":[355,443,441,328,440,50,141,442],"class_list":["post-656","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials-2","tag-gnu-radio","tag-mac-layer","tag-ofdm","tag-sdr-mesh","tag-usrp-b200","tag-50","tag-141","tag-442"],"_links":{"self":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/comments?post=656"}],"version-history":[{"count":1,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/656\/revisions"}],"predecessor-version":[{"id":657,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/656\/revisions\/657"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media\/655"}],"wp:attachment":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media?parent=656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/categories?post=656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/tags?post=656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}