Section 3
Programming Notes
The following describes optional programming that is not necessary to use the kit to demonstrate the roll-
ing code algorithm over an RF link. In addition to the information below, the accompanying CD contains
a “readme.html” file that documents user programming of both the receiver and transmitter.
This information is included for the advanced user who wishes to experiment with the kit and its
expanded capabilities.
3.1
Configuration
There are numerous options for the system, e.g., cryptographic key sizes, message field sizes etc. The
parameters are given as #define macros in the config.h files in both the transmitter and receiver source
code folder. The most important parameters are given in. It is important that the parameters for the trans-
mitter and receiver code are the same.
The configuration file contains several other advanced parameters. Parameter usage is explained in
comment blocks in the files themselves and should not be altered. Always keep a backup copy of the
original default configuration.
Table 3-1. Basic Configuration Parameters
Default
Parameter Name
KEY_BITS
SERIAL_NO_BYTES
COMMAND_CODE_BYTES
SEQ_COUNTER_BYTES
MAC BYTES -
MAX_TRANSMITTERS
WINDOW SIZE -
Value
128
4
1
4
4
5
100
Description
Size of the AES cipher key in bits. Allowed values are 128, 192 and 256
bits, where 256 bits is the most secure option.
Size in bytes of the message field containing a transmitter's serial
number. Allowed values are 1, 2, and 4 bytes (1) .
Size in bytes of the message field containing the requested command.
Allowed values are 1, 2, and 4 bytes (1) .
Size in byte of the message field containing the sequential counter
value. Allowed values are 1, 2, and 4 bytes (1) .
Size in bytes of the message field containing the MAC. The value must
not be larger than 16 bytes. More bytes give a more secure
authentication.
Maximum number of transmitters that one receiver can learn. This
number is limited by the amount of free EEPROM memory. A compile
error will occur of the number is chosen too large.
The size of the rolling window of acceptance.
Note:
STK512 User Guide
1. Serial number, command code and sequential counter value fields must not exceed 16 bytes. A compile
error will occur if the total size exceeds this limit.
3-1
5170C–AVR–10/09
相关PDF资料
ATAVRUSBRF01 KIT REF DES AVR NORDIC 2.4GHZ
ATMEGA128RFA1-ZUR IC AVR MCU 2.4GHZ XCEIVER 64QFN
ATMEGA64RZAPV-10AU BUNDLE ATMEGA644P/AT86RF230 TQFP
ATP101-TL-H MOSFET P-CH 30V 25A ATPAK
ATP102-TL-H MOSFET P-CH 30V 40A ATPAK
ATP103-TL-H MOSFET P-CH 30V 55A ATPAK
ATP104-TL-H MOSFET P-CH 30V 75A ATPAK
ATP106-TL-H MOSFET P-CH 40V 30A ATPAK
相关代理商/技术参数
ATAKSTK512-4 功能描述:射频开发工具 REMOTE ACCESS CNTRL UNDIRECTIONAL KIT RoHS:否 制造商:Taiyo Yuden 产品:Wireless Modules 类型:Wireless Audio 工具用于评估:WYSAAVDX7 频率: 工作电源电压:3.4 V to 5.5 V
ATALB WAF 制造商:Fairchild Semiconductor Corporation 功能描述:
AT-AM-2A 制造商:Banner Engineering 功能描述:Relay, E-Mech, Control, Cur-Rtg 4A, Ctrl-V 115AC, Vol-Rtg 250AC/DC, DIN Rail Mnt, CE 制造商:Banner Engineering 功能描述:SAFETY RELAY SPST-NO 115VAC 4A 制造商:Banner Engineering 功能描述:SAFETY RELAY, SPST-NO, 115VAC, 4A 制造商:Banner Engineering 功能描述:SAFETY RELAY, SPST-NO, 115VAC, 4A, Coil Voltage VAC Nom:115V, Contact Current Ma 制造商:Banner Engineering 功能描述:SAFETY RELAY, SPST-NO, 115VAC, 4A, Coil Voltage VAC Nom:115V, Contact Current Max:4A, Contact Voltage AC Nom:250V, Contact Voltage DC Nom:250V, Contact Configuration:SPST-NO, No. of Poles:1, Relay Mounting:DIN Rail, Carry Current:4A , RoHS Compliant: Yes
ATAM510 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:MARC4 4-bit MTP Universal Microcontroller
ATAM510X-ILQY 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:MARC4 4-bit MTP Universal Microcontroller
ATAM510X-ILSY 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:MARC4 4-bit MTP Universal Microcontroller
ATAM862 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:Microcontroller with UHF ASK/FSK Transmitter
ATAM862-3 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:Microcontroller with UHF ASK/FSK Transmitter