Nikolas Goldin original creater of this. Added some of my own notes and also a few additional commands

Dependencies:   btbee m3pi_ng mbed

Fork of configure_btbee by Nikolas Goldin

Files at this revision

API Documentation at this revision

Comitter:
smeisel
Date:
Wed Nov 13 17:58:30 2013 +0000
Parent:
1:af0aa8d6e586
Commit message:
Took a program from Nikolas Goldin and added additional instrucitons and tip and hints for success This has been tested for the DFRobot BlueTooth Bee ver 2.0.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r af0aa8d6e586 -r d0adbf94c4c0 main.cpp
--- a/main.cpp	Thu May 16 14:16:04 2013 +0000
+++ b/main.cpp	Wed Nov 13 17:58:30 2013 +0000
@@ -19,18 +19,45 @@
     }
     btbee.at_baud();
 // end initialization stuff ////////////////////////////////////////////////////////////////////////////////////////////////
-    m3pi.locate(0,1);
+    m3pi.locate(0,0);
     m3pi.printf("ATSWITCH");
-    m3pi.locate(0,0);
+    m3pi.locate(0,1);
     m3pi.printf("RIGHT???");
     wait(0.1);
     m3pi_led[0]=1;
+/*****************
+The commands sent to the bee have to be lower case
+The commands sent to the bee do not start with \r\n as the BlueTooth Bee wiki state
+This works with the DFRobot BlueToothBee ver 2.0  Tested and verified 11/13/13 on my personal M3PI and BTBee module
+Additional commands can be found at:  http://www.dfrobot.com/image/data/TEL0026/TEL0026_Datasheet.pdf
 
-//btbee.printf("at\r\n"); // test command, returns "OK\r\n"
-//btbee.printf("at+uart=9600,0,0\r\n"); //default values, returns "OK\r\n"
-//btbee.printf("at+uart=115200,0,0\r\n"); //changing the baud rate, returns "OK\r\n"
-    btbee.printf("at+uart?\r\n"); //asking for the set parameters, replies "+UART:baud,stop,parity\r\n"
+Steps to success:
+    1.Power off
+    2.switch on bee to AT Mode
+    3.Power on
+    4.Download program to MBED
+    5.Run MBED program
+    6.Power off     settings in the bee are sent to ROM and will be retained after the power cycle
+    7.Switch to !AT Mode
+    8.Power On
+*****************/
+
 
+    //btbee.printf("at\r\n"); // test command, returns "OK\r\n"
+    //btbee.printf("at+uart=9600,0,0\r\n"); //default values, returns "OK\r\n"
+    //btbee.printf("at+uart=115200,0,0\r\n"); //changing the baud rate, returns "OK\r\n"
+    //wait(2.0);    //necessary delay after a baud rate change
+    
+    //btbee.printf("at+name=Pololu_Car\r\n");   /set the name of the Bluetooth Module to:  Pololu_Car
+    
+    wait(2.0);  //found that this delay elmiminates a lot of issues  Never Remove it
+    
+    //btbee.printf("at+uart?\r\n");     //asking for the serial set parameters, replies "+UART:baud,stop,parity\r\n"
+    //btbee.printf("at+name?\r\n");     //returns the name assigned to the bee module
+    //btbee.printf("at+role?\r\n");     //returns the role of the bee (master = 1, slave=0, slave is default)
+    btbee.printf("at+pswd?\r\n");       //returns the current bee paring password (default is 1234)
+    
+    
     m3pi_led[1]=1;
 
     while (!btbee.readable()) { //wait for reply