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
network_protocol_programming_lab:15.3_4_exercise [2020/05/13 09:01] – [4. Exercise: Packet Transmission] rathkenetwork_protocol_programming_lab:15.3_4_exercise [2021/04/19 12:38] (current) – [Requirements] rathke
Line 3: Line 3:
 Most protocol in communication networks are packet oriented. To send a packet, all user data stored in the TX FIFO will be send. To store data in TX FIFO, function cc1200_reg_write will be used. As address parameter the address 0x3F will be provided and the data to store. After the TX FIFO has been filled. The CC1200 has to be switched into sending mode. Most protocol in communication networks are packet oriented. To send a packet, all user data stored in the TX FIFO will be send. To store data in TX FIFO, function cc1200_reg_write will be used. As address parameter the address 0x3F will be provided and the data to store. After the TX FIFO has been filled. The CC1200 has to be switched into sending mode.
  
-In sending mode, CC1200 will prepend the data to send with a programmable preamble and a sync word. After the data of the TX FIFO has been sent, an optional CRC will be calculated and also been sent. After the packet has been sent, CC1200 will go back to idle mode. The mode to enter after sending a packet can be changed by programming the ''RFEND_CFG0'' register.+In sending mode, CC1200 will prepend the data to send with a programmable preamble and a sync word. After the data of the TX FIFO has been sent, an optional CRC will be calculated and also been sent. After sending a packet, CC1200 will go back to idle mode. The mode to enter after sending a packet can be changed by programming the ''RFEND_CFG0'' register.
  
 The aim of this exercise is to send fixed length packets and variable length packets. The aim of this exercise is to send fixed length packets and variable length packets.
Line 11: Line 11:
 This task requires  This task requires 
  
-  * a ready BeagleBone Black equipped with the CC1200 +  * a ready BeagleBone Black equipped with the CC1200. 
-  * one TI Development Kit for the CC1200 +  * 4C attached to a second BeagleBone Black equipped with the CC1200.
-  * Smart RF Studio. +
 ===== Tasks  ===== ===== Tasks  =====
  
-  * connect the TI Development Kit to your computer and execute Smart RF Studio +  * connect the first BeagleBone Black to your computer and install, execute 4C. 
-  * open the CC1200 panel and select “Symbolrate 38.4kbps, 2-GFSK, RX BW 100kHz, ETSI Standard (868MHz)” in the typical settings part +  * open "TX Packet Mode" in test window. Some registers in the register view will change their value.
-  * press the button “Packet TX” in the lower window. Some registers in the register view will change their value+
   * in the option ''length config'' change ''variable'' to ''fixed''.   * in the option ''length config'' change ''variable'' to ''fixed''.
-  * nowchoose an appropriate length of the ''Length'' field, e.g. 10.+  * enter charters in the the text window. You will seethat ''Length'' field will change
   * export all registers to a file. This means 208 registers must be exported.   * export all registers to a file. This means 208 registers must be exported.
-  * connect the BeagleBone Black to your computer and login as superuser. +  * login to the second BeagleBone Black as superuser. 
-  * copy the export file from SmartRF Studio to the BeagleBone Black+  * copy the export file from 4C Studio to the BeagleBone Black
   * import the export file into your program and initialize the registers according the values of the export file.   * import the export file into your program and initialize the registers according the values of the export file.
   * verify that the registers have been written correctly.   * verify that the registers have been written correctly.
   * Read chapter 8 about the packet handling of the [[http://www.ti.com/lit/ug/swru346b/swru346b.pdf?ts=1588225642109|CC1200 Users Guide]] and implement it.   * Read chapter 8 about the packet handling of the [[http://www.ti.com/lit/ug/swru346b/swru346b.pdf?ts=1588225642109|CC1200 Users Guide]] and implement it.
-  * Bring SmartRF Studio in “Packet RX” mode, change the ''length config'' to fixed and change the ''Length'' field to the value used in the export file +  * Bring 4C Studio in “RX Packet Mode", change the ''length config'' to fixed and change the ''Length'' field to the value used in the export file. 
-  *  start the transmitter. At the receiver at SmartRF Studio, you should now receive the packets.+  *  start the transmitter. At the receiver, you should now receive the packets by 4C.
  
 If you are able to transmit packets in fixed length mode, the next step will be to transmit packets in variable length mode: If you are able to transmit packets in fixed length mode, the next step will be to transmit packets in variable length mode:
  
-  * go back to SmartRF Studio and change the ''length config'' to ''variable''+  * go back to 4C and change the ''length config'' to ''variable''
   * look, which registers have been changed.   * look, which registers have been changed.
   * modify the changed registers in your program. You do not need to reexport the complete registers.   * modify the changed registers in your program. You do not need to reexport the complete registers.
Line 40: Line 37:
 ===== Hints  ===== ===== Hints  =====
  
-  * keep in mind, that SmartRF Studio receiver will expect a CRC+  * same hints as by receiving packets.
network_protocol_programming_lab/15.3_4_exercise.1589353285.txt.gz · Last modified: 2020/05/13 09:01 by rathke
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0