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:fast_scan [2020/06/05 10:50] – [Tasks] rathkenetwork_protocol_programming_lab:fast_scan [2021/04/19 12:44] (current) – [Requirements] rathke
Line 1: Line 1:
 ====== Exercise: Scanning faster ====== ====== Exercise: Scanning faster ======
  
-In this lesson, we are finishing the receiver. The maximum number of channels that could be scanned is limited. Scanning could only be successful, if the actions that are required to be done does not exceed the bit rate of the preamble. E.g Times, that hit to be taken into account are:+In this lesson, we are finishing the receiver. The maximum number of channels that could be scanned is limited. Scanning could only be successful, if the actions that are required to be done does not exceed the length of the preamble. E.g Times, that has to be taken into account are:
  
   * the time needed to switch from idle state to receive state and vice versa (e.g. $50\mu s$),   * the time needed to switch from idle state to receive state and vice versa (e.g. $50\mu s$),
   * the time to measure the RSSI (e.g. $990\mu s$),   * the time to measure the RSSI (e.g. $990\mu s$),
-  * the time to read or write the registers of CC1200 (e.g. SPI overhead $60\mu s$), +  * the time to read or write the registers of CC1200 (SPI overhead e.g. $60\mu s$), 
-  * the time to perform a strobe command (e.g. SPI overhead $140\mu s$),+  * the time to perform a strobe command (SPI overhead e.g. $140\mu s$),
   * and for sure the processing time of the Beaglebone Black.   * and for sure the processing time of the Beaglebone Black.
  
Line 17: Line 17:
 The answer could be to look deeper at the scanning process: Changing the frequency need every time a calibration of the Voltage Controlled Oscillator (VCO). Calibration means, that the VCO must be re-configured. Calibration is done normally every time leaving the idle state and switching to receiving or transmitting state. The calibration overhead is included in the measured SPI overhead.  The answer could be to look deeper at the scanning process: Changing the frequency need every time a calibration of the Voltage Controlled Oscillator (VCO). Calibration means, that the VCO must be re-configured. Calibration is done normally every time leaving the idle state and switching to receiving or transmitting state. The calibration overhead is included in the measured SPI overhead. 
  
-To fasten calibration, CC1200 offers a pre-calibration mode. Pre-calibration means, that sou select a frequency by programming the FREQ registers. Afterwards you instruct a manual calibration by performing the SCAL strobe command. The SCAL strobe instructs the CC1200 to do a calibration of the VCO by the selected frequency. If the calibration is done (CC1200 is back in idle state) the result of the calibration is sorted in the FS_CHP, FS_VCO4 and FS_VCO2 registers.+To fasten calibration, CC1200 offers a pre-calibration mode. Pre-calibration means, that you select a frequency by programming the FREQ registers. Afterwards you instruct a manual calibration by performing the SCAL strobe command. The SCAL strobe instructs the CC1200 to do a calibration of the VCO by the selected frequency. If the calibration is done (CC1200 is back in idle state) the result of the calibration is sorted in the FS_CHP, FS_VCO4 and FS_VCO2 registers.
  
 This means, whenever you like to jump to a frequency, just program the FREQ registers and the three mentioned register in idle state and jump to receive or transmit state without calibration. This only works, if automatic calibration has been disabled in the SETTLING_CFG register. This means, whenever you like to jump to a frequency, just program the FREQ registers and the three mentioned register in idle state and jump to receive or transmit state without calibration. This only works, if automatic calibration has been disabled in the SETTLING_CFG register.
Line 28: Line 28:
 This task requires  This task requires 
  
-  * a ready BeagleBone Black equipped with the CC1200 operating at a symbol rate of 1.2 kBaude+  * 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 sending packets with a symbol rate of 1.2 kBaude and a preamble count of 6 Bytes. +  * 4C sending packets with a symbol rate of 1.2 kBaude and a preamble count of 6 Bytes.
 ===== Tasks  ===== ===== Tasks  =====
  
   * the programming is done by extending the source files from the previous lesson [[network_protocol_programming_lab:robust|Exercise: Making the system robust against disturbances]].   * the programming is done by extending the source files from the previous lesson [[network_protocol_programming_lab:robust|Exercise: Making the system robust against disturbances]].
-  * Extend your program to control packet reception by timers+  * Extend your program by pre-calibration
   * For testing, start your program and use the same test scenarios used by [[network_protocol_programming_lab:robust|Exercise: Making the system robust against disturbances]].   * For testing, start your program and use the same test scenarios used by [[network_protocol_programming_lab:robust|Exercise: Making the system robust against disturbances]].
-  * To open the possibility, of testing, that pre-calibration is really faster than auto-calibration, make sure, that both calibration methods can be enabled and disabled.+  * To open the possibility to test, that pre-calibration is really faster than auto-calibration, make sure, that both calibration methods can be enabled and disabled.
  
 ===== Hints  ===== ===== Hints  =====
network_protocol_programming_lab/fast_scan.1591347048.txt.gz · Last modified: 2020/06/05 10:50 by rathke
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0