summaryrefslogtreecommitdiff
path: root/cesar/common
diff options
context:
space:
mode:
authorNélio Laranjeiro2011-01-19 17:06:47 +0100
committerNélio Laranjeiro2011-02-01 13:38:30 +0100
commit907f71b7161e412e5b74623664251eb4a6c262dd (patch)
tree94690d766fb368c2a000c5633b9dd688f8a46df8 /cesar/common
parentd69425fccc2c4e4c978b8f5c0acd347d002d6cf7 (diff)
bsu/aclf: better synchronization between the STA and the CCo, closes #2256
Supported frequencies: - 48.42Hz to 51.68Hz for 50Hz PowerLine (1000000 +/- BTO_MAX ticks). - 57.74Hz to 62.44Hz for 60Hz PowerLine (833333 +/- BTO_MAX ticks). Modifications: - BSU_ACLF_SET_FREQUENCY: - does not set the beacon period value. - set the maximum/minimum beacon period tick corresponding to the frequency found. - 6th beacon_period computed by the STA i.e. bpsd[6] += bpsd[5] - bpsd[4].
Diffstat (limited to 'cesar/common')
-rw-r--r--cesar/common/defs/homeplugAV.h2
-rw-r--r--cesar/common/tests/tests1
2 files changed, 3 insertions, 0 deletions
diff --git a/cesar/common/defs/homeplugAV.h b/cesar/common/defs/homeplugAV.h
index fb3650c0a8..39da6f293e 100644
--- a/cesar/common/defs/homeplugAV.h
+++ b/cesar/common/defs/homeplugAV.h
@@ -84,6 +84,8 @@ typedef enum hpav_access_t hpav_access_t;
/** Invalid value for the BTO.*/
#define HPAV_BEACON_BTO_INVALID ((s16)0x8000)
+/** Number of valid bits in BTO. */
+#define HPAV_BEACON_BTO_VALID_BITS 15
/** Value of the permanent persistent schedule CSCD
* Only valid if operating in CSMA only mode.. */
diff --git a/cesar/common/tests/tests b/cesar/common/tests/tests
index b8b2a25445..c2c8e787ab 100644
--- a/cesar/common/tests/tests
+++ b/cesar/common/tests/tests
@@ -502,3 +502,4 @@ bsu/ntb: ./obj/ntb
bsu/aclf/test/utest:
make
bsu/aclf: ./obj/aclf
+beacon_estimation: python beacon_period.py