Hello to all!
I'm trying to use the RF24Network library.
First I've played with the RF24 library and tested the simple pingpair example.
I've used the 'radio.setDataRate(RF24_250KBPS);' to reduce speed and increase the range.
Now I would like to do the same with the meshping example but cannot change the speed.
I've set it up here:
(...)
void setup(void)
{
//
// Print preamble
//
Serial.begin(57600);
printf_begin();
printf_P(PSTR("\n\rRF24Network/examples/meshping/\n\r"));
printf_P(PSTR("VERSION: %s\n\r"),program_version);
//
// Pull node address out of eeprom
//
// Which node are we?
this_node = nodeconfig_read();
//
// Bring up the RF network
//
SPI.begin();
radio.begin();
radio.setDataRate(RF24_250KBPS); ######<---------------------------
network.begin(/*channel*/ 100, /*node address*/ this_node );
}
(...)
But I obtain:
RF24Network/examples/meshping/
VERSION: Unknown
ADDRESS: 0
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xf0f0f0f03c 0xf0f0f0f05a
RX_ADDR_P2-5 = 0x69 0x96 0xa5 0xc3
TX_ADDR = 0xf0f0f0d23c
RX_PW_P0-6 = 0x20 0x20 0x20 0x20 0x20 0x20
EN_AA = 0x3f
EN_RXADDR = 0x3f
RF_CH = 0x64
RF_SETUP = 0x07
CONFIG = 0x0f
DYNPD/FEATURE = 0x00 0x00
Data Rate = 1MBPS ######<---------------------------
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_HIGH
Do I use the command in the wrong place? It's the wrong command for the RF24Network version?
Thank's for the help!
Simon