
RF WIRELESS FOUNDATION COURSE BOOK ONE
Rev. 0.1 13
Exercise 1—How to Send Packets with Addressing Fields
This exercise uses a project which sends and receives packets where the source and destination addresses are
included into the header of the packet. The packet is received only if the destination address is identical with the
self address of the node which intended to receive the packet. If the packet ID is incorrect, the packet is dropped.
The packet structure of the packet is shown in Figure 15.
1. Open the following project:
“C:\Silabs\Srw\RF_Basics_Lesson\Lesson3”.
2. Open the Si4421.h header file and change the DESK_NUMBER definition according to your number.
3. Uncomment BOARD1 definition (while keeping BOARD2 definition commented), compile the code, and load it
into one of the EZLink board.
4. Uncomment BOARD2 definition (while keeping BOARD1 definition commented), compile the code, and load it
into the second EZLink board. These definitions swap the self and destination addresses.
5. If the push button of one of the EZLink unit is pressed, then the TR LED should blink (showing it is sending a
packet) and the second EZLink should blink the RC LED (showing that the packet is received).
Figure 16. Packet Transmission
6. The receiver board also reports the payload to the USB port. If the board is connected to the USB port, using a
simple terminal program (like “WDS Terminal Emulator”), the result can be confirmed:
a. Run WDS Terminal Emulator:
“C:\Program Files\Silabs\WDS Terminal Emulator\TE.exe”.
b. Wait until the program find the used com ports.
c. Set 9600 bps data rate, 8-bit, no parity and no handshaking.
d. Press Open Port.
1. Open project
5. Compile the code
6. Load into the MCU
2. Open Si4421.h
3. Change desk number
4. Select one of the boards
Note: this section defines the SELF
and DESTINATION addresses
Komentarze do niniejszej Instrukcji