Page 1 of 1

RFBee firmware configuration

Posted: Mon Oct 01, 2012 2:20 pm
by bluedude
How can I change configuration parameters to set the radio in 868 mode?

For now I have set some parameters in the reset but that isn't the best way.

Should it be in Config.h?

/ config layout
#define CONFIG_RFBEE_MARKER 0 // Marker
#define CONFIG_HW_VERSION 1 // Hardware version
#define CONFIG_FW_VERSION 2 // Firmware version
#define CONFIG_DEST_ADDR 3 // Receiver address
#define CONFIG_MY_ADDR 4 // Sender address
#define CONFIG_ADDR_CHECK 5 // Address checking
#define CONFIG_TX_THRESHOLD 6 // Transmit threshold
#define CONFIG_BDINDEX 7 // Index to baudrate
#define CONFIG_PAINDEX 8 // Index to PowerAmplifier
#define CONFIG_CONFIG_ID 9 // Selected CCx configuration
#define CONFIG_OUTPUT_FORMAT 10 // output format to use
#define CONFIG_RFBEE_MODE 11 // rfBee operating mode (e.g. transmit/receive/idle)

Re: RFBee firmware configuration

Posted: Sat Nov 03, 2012 2:27 am
by dino2
Would like to know the same thing.
As well as how to change communication baud rate ?

Re: RFBee firmware configuration

Posted: Tue Jun 02, 2015 1:55 pm
by Tanmay.y12
Read the Datasheet and modify the parameters in the code as per your requirements.

Code: Select all

void setup()
{                
Serial.begin(9600); // beginning the Serial Communication 

// Read the AT Commands section in RFBee Datasheet to understand AT Commands below
//Start control mode in RFBEE using NUM's +++
Serial.print("+++\r");
delay(40);
//Read firmware version (should be 1.1)
Serial.print("ATFV\r");
delay(10);
//Read HW version (should be 1.0)
Serial.print("ATHV\r");
delay(10);
//Read current baud setting (should be 0=9600bps)
Serial.print("ATBD\r");
delay(10);
//set mode, initially it's transceiving
Serial.write("ATMD0\r");
delay(10);
//Set Output format
Serial.write("ATOF3\r"); // Check Datasheet
delay(10);
//Set My (source) Address
Serial.write("ATMA2\r");
delay(10);
//Set Destination Address
Serial.write("ATDA1\r");
delay(10);
Serial.write("ATAC2\r");
delay(10);
Serial.write("ATTH0\r");
delay(10);
Serial.write("ATPA7\r"); Maximum Power, can adjust as per requirement
delay(10);
Serial.write("ATCF5\r"); Least Data rate, can change as per requirement
delay(10);


//Go back to data mode
Serial.print("ATo0\r");  
}

void loop()
{

     
     Serial.print('1');
     delay (2000); // delay 2 seconds
}