BRA is a radio protocol based on 802.15.4 standard. It follows the same goals as ZigBee(tm) but it is simpler and truly open. It can utilize both non-sleeping (always ready) and sleeping (idle) devices/nodes.
BRA is:
MAC Layer Frame Format
BRA Layer Frame Format
|
BRA MAC address length. 4 bytes address format A.B.C.D is used. Every device has unique address burned in - can be modified by application. 255.255.255.255 denotes everybody. |
|
Max radio frequency - 2483 MHz. See CC2420 Radio Datasheet. |
|
Min radio frequency - 2400 MHz. See CC2420 Radio Datasheet. |
|
BRA packet version. |
|
Application data in BRA packet. |
|
Destination address tag in BRA packet. |
|
Source address tag in BRA packet. |
|
Application tag in BRA packet. |
|
Version tag in BRA packet. |
|
Low level read access to CC2420 radio chip registers, RAM and strobe commands. See CC2420 Radio Datasheet.
|
|
Low level write access to CC2420 radio chip RAM and registers. Write to registers 0x00..0x0e is equivalent to read operation, i.e. strobe command. See CC2420 Radio Datasheet.
|
|
Returns current radio frequency.
|
|
LQI - Link Quality Indicatior of the last packed received. Low byte is RSSI, hi byte is correlation as defined in CC2420 Radio Datasheet.
|
|
Get device MAC address (possibly modified by bra_mac_set()).
|
|
Reset device MAC address previously modified with bra_mac_set() to factory default. |
|
Modify device MAC address. |
|
Function to construct BRA packet.
|
|
Seek tag in BRA packet header.
|
|
Set radio frequency channel, can be between 11 and 26. Default is 26.
|
|
Set radio frequency, can be between DEF_BRA_MIN_FREQ and DEF_BRA_MAX_FREQ. Default is 2480MHz (channel 26).
|
|
Set radio Tx (transmit) power. See CC2420 Radio Datasheet.
|
|
Returns current Tx power.
|
|
BRA Tx and Rx function - this is the main call for radio communication. Tx/Rx loop to communicate that can be used to communicate with both idle (sleeping) and ready (non-sleeping) devices. The loop looks following: while(nr_tx--) { tx(); tmp_nr_rx=nr_rx; while(tmp_nr_rx--) { delay_ms(after_tx_ms); rx(); if something received: check destination addr me or everybody check application tag } }
|
Copyright © 2004-2006 BLADOX | Turbo version 1.2
|