• 沒有找到結果。

USRP  Hands-­‐on  Experiment

N/A
N/A
Protected

Academic year: 2022

Share "USRP  Hands-­‐on  Experiment"

Copied!
28
0
0

加載中.... (立即查看全文)

全文

(1)

USRP  Hands-­‐on  Experiment

Shang-­‐Lun  Chiu

(2)

TA  Informa>on

•  Name:  邱上倫 (Louis)  

•  Email:  b98901035@ntu.edu.tw  

•  Office  hour:  (Wed.)  1700~19:00  @  EE2-­‐355  

(3)

Outline

•  USRP  introduc>on  

•  What  will  we  do?  

– Cyclic  Prefix   – Decoding   – Analysis  

(4)

What  will  we  do?

TODO

(5)

USRP  N200

(6)

USRP  N200

(7)

USRP  N200

•  Reference  clock:  

– The  external  clock  is  used  as  an  “accurate”  

oscillator  for  USRP  

– You  can  try  to  do  the  experiment  with/without   the  reference  clock

(8)

UHD

•  uhd_find_devices:  

– This  program  scans  the  network  for  supported   devices  and  prints  out  a  list  of  discovered  devices   and  their  IP  addresses.  

•  uhd_usrp_probe:  

– This  program  constructs  an  instance  of  the  device   and  prints  out  its  proper>es,  such  as  detected  

daughterboards,  frequency  range,  gain  ranges,   etc...  

(9)

UHD

•  How  to  write  a  UHD  (in  C++)  program?  

– Check  out  the  example  files  

•  single_tx_sync.cpp  

•  single_rx_sync.cpp

(10)

UHD

•  How  to  compile  a  UHD  program?  

– Directory:  uhd/host/examples   – CMakeList.txt  

•  Add  in  your  file  in  the  list  

– sudo  make  

(11)

UHD

•  How  to  run  your  program?  

– Commandline:  

single_rx_sync

--args=“addr=192.168.10.3”

--clock=true single_tx_sync

--args=“addr=192.168.10.4”

--thres=0.02

--file=“./source_test.dat”

--clock=true

(12)

What  will  we  do?

TODO

(13)

Synchroniza>on

•  Time  line

tx 3AC

rx

DATA

no>fy

Time  Gap

Time  Gap

(14)

Ac>on  Gap

•  What  is  this?  

– Tune  the  synchroniza>on  in  very  >ny  scale   – Please  understand  the  purpose  of  ac>on  gap  

(15)

Modula>on

•  We  have  done  this  part  for  you  

•  The  source  data  “source_test.dat”  

– Not  a  bit  stream  

– It  contains  BPSK  samples  (-­‐0.05,  +0.05)  

(16)

Cyclic  Prefix

•  This  part  is  TODO  

•  In  OFDM,  CP  (cyclic  prefix)  is  crucial  to  fight   mul>path  

•  Add  in  CP  before  any  symbol  you  send

(17)

MATLB  decoding

•  Symbol  design  

•  Channel  learning  

•  Phase  tracking

(18)

Symbol  Design

•  There  are  blanks  in  the  middle  of  tx  data  

(19)

Symbol  Design

•  Re-­‐allocate  the  symbol  as  following  

•  Then,  data  points  [1:64]  are  mapped  to  the  

subcarrier  [-­‐32  …  -­‐1,  1,  ...,  32].  

(20)

Channel  Learning

•  In  the  >meline,  3AC  are  sent  to  learn  channel  

– Both  TX  and  RX  know  the  paoern  of  3  AC  symbols   – Use  these  symbols  to  do  coherent  detec>on

(21)

Channel

•  Good  

(22)

Channel

•  Bad

(23)

Phase  Tracking

•  This  part  is  TODO  

•  Hint:  

– In  most  communica>on  system,  we  add  in  some  

“pilots”  in  our  transmioed  symbols   – The  phase  ship  is  linear  

•  Do  linear  regression  

(24)

Phase  Tracking

•  Reference:  802.11a  

–  hop://www.vocal.com/wp-­‐content/uploads/2012/05/80211a_wp1pdf.pdf  

– Check  page  9.  

(25)

Phase  track

•  With  phase  tracking

(26)

Phase  track

•  Without  phase  tracking

(27)

Analysis

•  Output  the  SNR  of  each  Symbol  

•  Output  avrage  SNR  of  each  sub-­‐carrier  

•  Note:  

– The  data:  

•  1  preamble  symbol  

•  3  AC  symbols  

•  150  data  symbols

(28)

Summary

•  TODO:  

– UHD:  

•  single_tx_sync  

– Matlab:  

•  decoder  

•  phaseTrack  func>on  

– Analysis:  

•  Average  SNR  on  each  symbol  

•  Average  SNR  on  each  sub-­‐carrier  

參考文獻

相關文件

These strategies include hands-on and minds-on exploratory activities that allow students to integrate and apply knowledge and skills, sustain their interests in science

The Seed project, REEL to REAL (R2R): Learning English and Developing 21st Century Skills through Film-making in Key Stage 2, aims to explore ways to use film-making as a means

- strengthening students’ ability to integrate and apply knowledge and skills (including skills related to hands-on experiences) within and across the KLAs of Science, Technology

反之, 有了 parametric equation, 我們可利用這些在 R n 的 direction vectors, 利 用解聯立方程組的方法求出和這些 direction vectors 垂直的 normal vectors,

而利用 row vectors 的方法, 由於可以化為 reduced echelon form, 而 basis 是由此 reduced echelon form 中的 nonzero vectors 所組成, 所以雖然和來的 spanning

We point out that extending the concepts of r-convex and quasi-convex functions to the setting associated with second-order cone, which be- longs to symmetric cones, is not easy

Hence, we have shown the S-duality at the Poisson level for a D3-brane in R-R and NS-NS backgrounds.... Hence, we have shown the S-duality at the Poisson level for a D3-brane in R-R

 依序填入該學生社團負責人之相關資訊,並於下方