Skip to content

Commit

Permalink
turned on correlator in radio packet filter
Browse files Browse the repository at this point in the history
Enabling this option seems to greatly improve transciever performance with
Contikimac. This seems to happen because Contikimac CCAs are much less likely
to detect false positives (thus screwing up the CCA sequence).
  • Loading branch information
bkozak-scanimetrics committed Jul 6, 2015
1 parent e7aba9b commit b7565f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cpu/cc26xx/dev/cc26xx-rf.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,10 +892,11 @@ init_rf_params(void)
/* Configure CCA settings */
GET_FIELD(cmd_ieee_rx_buf, CMD_IEEE_RX, ccaOpt) =
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaEnEnergy, 1) |
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaEnCorr, 0) |
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaEnCorr, 1) |
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaEnSync, 0) |
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaCorrOp, 0) |
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaSyncOp, 0);
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaCorrOp, 1) |
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaSyncOp, 1) |
BITVALUE(CMD_IEEE_RX, ccaOpt, ccaCorrThr, 3);
/* Set CCA RSSI Threshold, 0xA6 corresponds to -90dBm (two's comp.)*/
GET_FIELD(cmd_ieee_rx_buf, CMD_IEEE_RX, ccaRssiThr) = 0xA6;
GET_FIELD(cmd_ieee_rx_buf, CMD_IEEE_RX, numExtEntries) = 0x00;
Expand Down

0 comments on commit b7565f3

Please sign in to comment.