User Tools

Site Tools


fpga_phy_zigbee

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
fpga_phy_zigbee [2017/12/06 16:11] – [Check results] ooubejjafpga_phy_zigbee [2017/12/14 13:47] – [Find the Bitstream] ooubejja
Line 1: Line 1:
  --- //[[othmane.oubejja@inria.fr|Othmane Oubejja]] 2017/11/30 17:33//  --- //[[othmane.oubejja@inria.fr|Othmane Oubejja]] 2017/11/30 17:33//
  
-! UNDER CONSTRUCTION ! 
 {{ :under-128.png?100 |}} {{ :under-128.png?100 |}}
  
Line 9: Line 8:
  
  
-In this tutorial we will focus on the PHY layer exclusively and, in order to encode/decode packets, we will use a custom and (very) light MAC frame structure using [[https://en.wikipedia.org/wiki/Intel_HEX|Intel HEX]] data format, **which has nothing to do with the native 802.15.4 MAC Frame Structure !** +In this tutorial we will focus on the PHY layer exclusively and, in order to encode/decode packets, we will use a (very) light MAC frame structure using [[https://en.wikipedia.org/wiki/Intel_HEX|Intel HEX]] data format. (//which has nothing to do with the native 802.15.4 MAC Frame Structure !//)
  
 ==== What's new here ? ==== ==== What's new here ? ====
Line 22: Line 21:
 We will need some blocks of the module [[https://github.com/CorteXlab/gr-cortexlab|gr-cortexlab]]. Normally, if you followed the previous tutorials (highly suggested!), you might have started by installing [[building_a_toolchain|The FIT/CorteXlab Toolchain]], which automatically installs this module. We will need some blocks of the module [[https://github.com/CorteXlab/gr-cortexlab|gr-cortexlab]]. Normally, if you followed the previous tutorials (highly suggested!), you might have started by installing [[building_a_toolchain|The FIT/CorteXlab Toolchain]], which automatically installs this module.
  
-==== Download bitstream ==== +==== Find the Bitstream ==== 
-In order to use the FPGA Transmitter design, we will have to load the custom bitstream on the transmitter node(s). The Bitstream can be found [[here]] +In order to use the FPGA Transmitter design, we will have to load the custom Bitstream on the transmitter node(s). The Bitstream is loaded in the Airlock server of CorteXlab, and can be found in :  
-The receiver node(s) will run the default bitstream (Pass-through design)+ 
 +''/cortexlab/fpga/pico_tx802154_sx315.bit'' 
 + 
 +Copy the file in your main directory : 
 +<code> 
 +you@srvairlock:~$ cp /cortexlab/bitstreams/pico_tx802154_sx315.bit . 
 +</code> 
 + 
 +//The receiver node(s) will run the default Bitstream (Pass-through design)//
  
 ---- ----
Line 56: Line 63:
  
   * ATTENTION : **Channel** parameter has to be set to **__3__** as in the previous image. That's the only channel that allows access to the custom design.   * ATTENTION : **Channel** parameter has to be set to **__3__** as in the previous image. That's the only channel that allows access to the custom design.
- 
- * **Radio420x**  
-  * Set CR1 value to 0 to enable the transmitter 
  
  * **Custom Register** (CR 1 & 4)  * **Custom Register** (CR 1 & 4)
Line 64: Line 68:
   * Set CR1 value to 0 to enable the transmitter   * Set CR1 value to 0 to enable the transmitter
   * Set CR4 value to 0 to disable MIMO synchronization   * Set CR4 value to 0 to disable MIMO synchronization
 +
 + * **Radio420 ** 
 +  * The Radio420x is a Multimode SDR [[https://en.wikipedia.org/wiki/FPGA_Mezzanine_Card|FMC]] RF transceiver. PicoSDR 2x2 contains 2 Radio420M modules which are MIMO capable //(M for MIMO, pretty smart, huh ?)//. It is mandatory to initialize BOTH radio cards, even if only 1 is used. So, since our device contains 2 Radio420M transceivers, it means we will have 2 ''Radio420 TX'' blocks and 2 ''Radio420 RX'' blocks. Here is a [[https://www.nutaq.com/sites/default/files/Radio420x_V1.3_03_24_2014_web.pdf|product sheet]] for more info. 
 +  * To be short, add 2 ''Radio420 TX'' blocks and 2 ''Radio420 RX'' blocks
 +  * Now, we only need one transmitter per node, so make sure to enable only the Radio420 TX of Card 1, and set the gain values as following :  
 +
 +{{ :radio420.png?250 |}}
 +
 +  * For the 3 remaining ''Radio420'' blocks, we only need to disable them by setting the __Enable__ parameter to __False__
 +
  
 //If you don't get this part, have a look [[from_gnuradio_to_cortxlab_pico|here]].// //If you don't get this part, have a look [[from_gnuradio_to_cortxlab_pico|here]].//
  
-There isn't that much done in here since all baseband processing is done by the FPGA. All that is left is to connect a ''**File Source**'' block to the ''**RTDEx Sink**'' block, and specify the absolute path to your ".hex" file in ''**File Source**'' block parameters :+There isn't that much left in here since all baseband processing is done by the FPGA. All you have to do now is to connect a ''**File Source**'' block to the ''**RTDEx Sink**'' block, and specify the absolute path to your ".hex" file in ''**File Source**'' block parameters :
 {{ :filesource.png?400 |}} {{ :filesource.png?400 |}}
  
-The final flow-graph should look like this : +The final flow-graph of your transmitter should look like this : 
  
 {{ :ieee802154_tx_pico.grc.png?400 |}} {{ :ieee802154_tx_pico.grc.png?400 |}}
Line 149: Line 163:
 <code> <code>
 ... ...
-├── pico_zigbee.task 
 ├── pico_zigbee ├── pico_zigbee
 │   ├── frame_fpga.hex │   ├── frame_fpga.hex
Line 158: Line 171:
 │   ├── scenario.yaml │   ├── scenario.yaml
 │   ├── pico_tx802154_sx315.bit │   ├── pico_tx802154_sx315.bit
- 
 ... ...
 </code> </code>
Line 218: Line 230:
 │   │   │   │   ├── scenario.yaml~ │   │   │   │   ├── scenario.yaml~
 │   │   │   │   ├── pico_tx802154_sx315.bit │   │   │   │   ├── pico_tx802154_sx315.bit
-impact_instr.txt +│   │   │   │   ├── impact_instr.txt 
-frame_fpga.hex  +│   │   │   │   ├── frame_fpga.hex  
-_impactbatch.log   +│   │   │   │   ├── _impactbatch.log   
-stderr.txt +│   │   │   │   ├── stderr.txt 
-__stdout.txt__+│   │   │   │   ├── stdout.txt
  
 ... ...
fpga_phy_zigbee.txt · Last modified: 2017/12/14 16:25 by ooubejja

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki