summaryrefslogtreecommitdiff
path: root/cesar/bsu/aclf/src
AgeCommit message (Collapse)Author
2012-12-12cesar/bsu/aclf: add ACLF_TRACKING config item, refs #3341Nélio Laranjeiro
2012-07-18cesar/{bsu,mac}: add an expiration ntb to pb_beacon_t, closes #3057Nélio Laranjeiro
A frame reception on PBProc can cancel an emission. To avoid to not transmit the frame the PBProc reschedule it, but before sending the frame it will check the expiration ntb date of the PBs it should send in the frame. This is correct for any PB but for Beacon PB it is not, those special PB did not have an expiration ntb date in their descriptor. So at the end some beacons were dropped because the PBProc was comparing an expiration ntb date to something which was not. This commit fix it by adding an expiration ntb date in the Beacon PB corresponding to the end of the beacon period within the one it is valid.
2012-07-18cesar/bsu: clear synced bpsd in aclf, closes #2920Nélio Laranjeiro
A new function called by BSU when the tracking data are cleared will be called in order to un-synchronize the beacon period start date. Only the next beacon period date will have a delay corresponding to N beacon slots with N in [0, HPAV_BEACON_NUMSLOTS_MAX[, N is randomly get using lib_rnd_uniform function. This modification should help in coexistence problems.
2011-09-22cesar/bsu/aclf: remove unused variableNélio Laranjeiro
2011-09-14cesar/bsu/aclf: delay the bpsd from the cross date, closes #2478Nélio Laranjeiro
2011-05-09cesar/bsu/aclf: store frequency detection kind, refs #2463Nélio Laranjeiro
2011-05-05cesar/bsu: replace static keyword by PRIVATE keywordNélio Laranjeiro
2011-05-05cesar/bsu/aclf: filter strange 0_cross register dates, refs #2459Nélio Laranjeiro
0_cross register have sometimes an interval of cross values of 20e3 ticks, a PowerLine cycle is around 250e3 ticks. To avoid a wrong beacon period computation, those values are not used.
2011-04-20cesar/bsu: avoid computing twice the BTS in phy clock, closes #2450Nélio Laranjeiro
2011-04-14cesar/bsu/aclf: fix beacon period start date computation when bto is ↵Nélio Laranjeiro
invalid, closes #2418
2011-04-14cesar/cp/bsu/aclf: assert on zero denominator values, closes #2341Nélio Laranjeiro
2011-04-14cesar/bsu/aclf: track crossing edge of the power line, refs #2341Nélio Laranjeiro
This replaces the beacon duration computation by tracking powerline cross
2011-04-14cesar/bsu/aclf: remove PowerLine synchronisation weights, refs #2341Nélio Laranjeiro
2011-04-14cesar/bsu/aclf: compute a mean value from 0_cross register, refs #2341Nélio Laranjeiro
0_crossing have a lot of jitter, to get a better beacon period duration at startup, it will takes sample for 500ms and compute the mean value.
2011-04-01cesar/bsu: avoid to provide future schedules to the CA, closes #2333Nélio Laranjeiro
2011-02-07Merge branch 'master' into avNélio Laranjeiro
Conflicts: cesar/bsu/aclf/aclf.h cesar/bsu/aclf/src/aclf.c cesar/bsu/aclf/test/utest/src/aclf.c cesar/bsu/src/bsu.c
2011-02-07cesar/bsu/aclf: two coefficients for beacon period computation, closes #2230Nélio Laranjeiro
Use a "FAST" weight to synchronise the beacon period on the PowerLine cycle and a "slower" one once this is done. The Switch is made by a number of synchronisation of the PowerLine configured in the Config file. This reverts commit 70ae5daad6043272daf32bd81d953bea0359d43f.
2011-02-07Revert "cesar/bsu: add stats, closes #2213"Nélio Laranjeiro
This reverts commit dcb2f6d35d78a3f4b68d79e26f88dc2d97775cbb.
2011-02-07cesar/bsu: add stats, closes #2213Nélio Laranjeiro
- current ntb_tck_offset - current frequency error in q30.
2011-02-07cesar/bsu/aclf: add stats for beacon period, refs #2213Nélio Laranjeiro
2011-02-01Merge branch 'master' into avNélio Laranjeiro
Conflicts: cesar/bsu/aclf/aclf.h cesar/bsu/aclf/src/aclf.c cesar/bsu/aclf/test/utest/src/bpsd.c cesar/bsu/aclf/test/utest/src/common.c cesar/bsu/aclf/test/utest/src/misc.c cesar/bsu/test/utest/src/schedules.c
2011-02-01bsu/aclf: better synchronization between the STA and the CCo, closes #2256Nélio Laranjeiro
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].
2010-12-07cesar/bsu: handle schedules program for CA modifications, closes #1945Nélio Laranjeiro
2010-12-07cesar/bsu: remove aclf timer and prepare bsu to handle timer, closes #1945Nélio Laranjeiro
2010-09-16cesar/bsu/aclf: fix bts computation, closes #1876Nélio Laranjeiro
See specification section 5.1.1.1 Line Cycle Synchronization.
2010-07-22cesar/bsu/aclf: add a function to get the beacon period in ATUlaranjeiro
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7304 017c9cb6-072f-447c-8318-d5b54f68fe89
2010-06-22cesar/bsu/aclf: add a function to clear computed datalaranjeiro
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7249 017c9cb6-072f-447c-8318-d5b54f68fe89
2010-05-21cesar/bsu/aclf: fix beacon period start date computationlaranjeiro
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7129 017c9cb6-072f-447c-8318-d5b54f68fe89
2010-05-17cesar/bsu/aclf: add some assertslaranjeiro
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7102 017c9cb6-072f-447c-8318-d5b54f68fe89
2010-05-17cesar/bsu/aclf: fix schedules computationlaranjeiro
* On each schedule shift compute the current beacon period duration * Compute correctly the beacon time stamp from the central beacon * Keep the aclf activation status git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7091 017c9cb6-072f-447c-8318-d5b54f68fe89
2010-05-17cesar/bsu/aclf: Initialized some valueslaranjeiro
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7079 017c9cb6-072f-447c-8318-d5b54f68fe89
2010-05-17cesar/bsu/aclf: add a timer to compute beacon period start datelaranjeiro
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7060 017c9cb6-072f-447c-8318-d5b54f68fe89
2010-05-17cesar/bsu: fix aclflaranjeiro
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7052 017c9cb6-072f-447c-8318-d5b54f68fe89
2010-05-17cesar/bsu/aclf: change frequency detection bahaviorlaranjeiro
In unit tests and maximus if phy_date always return the same value the frequency is directly set as 50Hz. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7044 017c9cb6-072f-447c-8318-d5b54f68fe89
2010-05-17cesar/{bsu, cp/beacon}: modify phy_date use after merge with git-svnmercadie
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7041 017c9cb6-072f-447c-8318-d5b54f68fe89
2010-05-17cesar/{bsu,bsu/aclf}: return bsu_aclf_t context on bsu_aclf_initlaranjeiro
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7031 017c9cb6-072f-447c-8318-d5b54f68fe89
2010-05-17cesar/bsu/aclf: add aclf sub modulelaranjeiro
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7016 017c9cb6-072f-447c-8318-d5b54f68fe89