pradeep shekhar
/
Beacon_BAE_intergration_test_3
General testings
Fork of BEACON_CODE_NEW by
Revision 4:d1a2b3ff6b5e, committed 2016-04-13
- Comitter:
- shekhar
- Date:
- Wed Apr 13 13:21:56 2016 +0000
- Parent:
- 1:e4b70669ae61
- Child:
- 5:ee01f6c87022
- Commit message:
- Updated Long_bcn
Changed in this revision
BCN.cpp | Show annotated file Show diff for this revision Revisions of this file |
BCN.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/BCN.cpp Mon Nov 02 14:22:50 2015 +0000 +++ b/BCN.cpp Wed Apr 13 13:21:56 2016 +0000 @@ -179,16 +179,16 @@ } void LONG_BCN_TX() { - writereg(RF22_REG_6E_TX_DATA_RATE,0x04); - writereg(RF22_REG_6F_TX_DATA_RATE,0xEA);//600 bps + writereg(RF22_REG_6E_TX_DATA_RATE,0x08); + writereg(RF22_REG_6F_TX_DATA_RATE,0x31);//1000 bps writereg(RF22_REG_3E_PACKET_LENGTH,LONG_TX_DATA); //long packet length wait(0.02); uint32_t timeout_count=10e5; //get long_beacon array - uint8_t Long_beacon[75]; - for(int i = 0;i<75;) + uint8_t Long_beacon[125]; + for(int i = 0;i<125;) { Long_beacon[i++] = 0xAA; } @@ -217,7 +217,7 @@ cs = 0; spi.write(0xFF); - for(int i=60; i<75;i++) + for(int i=60; i<125;i++) { spi.write(Long_beacon[i]); }
--- a/BCN.h Mon Nov 02 14:22:50 2015 +0000 +++ b/BCN.h Wed Apr 13 13:21:56 2016 +0000 @@ -9,7 +9,7 @@ //Size of tx data #define SHORT_TX_DATA 60 //in bytes -#define LONG_TX_DATA 75 //in bytes +#define LONG_TX_DATA 125 //in bytes //#define RF_SILENCE_TIME 35*60 #define RF_SILENCE_TIME 5 //changed for testing