Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network_protocol_programming_lab:15.3_2_exercise [2020/05/07 08:31] – rathke | network_protocol_programming_lab:15.3_2_exercise [2021/04/19 12:38] (current) – [Requirements] rathke | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== 2. Exercise: Packet Reception ====== | ====== 2. Exercise: Packet Reception ====== | ||
| - | Most protocol in communication networks are packet oriented. To receive a packet, CC1200 has a built in packet reception protocol engine. Using the engine, C1200 waits until the medium gets active by recognizing a preamble and s sync word. The patterns of the preamble and sync-word | + | Most protocol in communication networks are packet oriented. To receive a packet, CC1200 has a built in packet reception protocol engine. Using the engine, C1200 waits until the medium gets active by recognizing a preamble and s sync word. The patterns of the preamble and sync-word |
| - | The aim of this exercise is to receive packets of fixed length packets and variable length packets. | + | The aim of this exercise is to receive |
| + | |||
| + | ===== Requirements | ||
| + | |||
| + | This task requires | ||
| + | |||
| + | * a ready BeagleBone Black equipped with the CC1200. | ||
| + | * 4C attached to a second BeagleBone Black equipped with the CC1200. | ||
| + | ===== Tasks ===== | ||
| + | |||
| + | * connect the first BeagleBone Black to your computer and install, execute 4C. | ||
| + | * open "RX Packet Mode" in test window. Some registers in the register view will change their value. | ||
| + | * in the option '' | ||
| + | * now, choose an appropriate length | ||
| + | * export all registers to a file. This means 208 registers must be exported. | ||
| + | * login to the second BeagleBone Black as superuser. | ||
| + | * copy the export file from 4C to the BeagleBone Black | ||
| + | * 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. | ||
| + | * Read chapter 8 about the packet handling of the [[http:// | ||
| + | * Bring 4C “TX Packet Mode", change the '' | ||
| + | * start the transmitter. At the receiver, the BeagleBone Black, You should now receive the packets. | ||
| + | |||
| + | If you are able to receive packets in fixed length | ||
| + | |||
| + | * go back to 4C and change the '' | ||
| + | * look, which registers have been changed. | ||
| + | * modify the changed registers in your program. You do not need to reexport the complete registers. | ||
| + | * now, implement | ||
| + | ===== Hints ===== | ||
| + | |||
| + | * keep in mind, that 4C transmitter will add a CRC to the packet. | ||
| + | * the CC1200 at the receiver is programmed to add a packet status in the RX FIFO | ||
| + | * in variabel packet length mode the size of the received packet is limited. Packets larger than that limit will be discarded. | ||
| + | * you have to adjust the packet mode bits in register PKT_CFG0 and the PTK_LEN register by yourself. | ||
