Hi, I'm using the following code on the arduino BT, with no bootloader:
===================================================================================== /* BT test 01 * ------------------ * Massimo Banzi * */
int LED = 13; // select the pin for the LED int RESET = 7;
void setup() { pinMode(LED,OUTPUT); // declare the LED's pin as output pinMode(RESET,OUTPUT); // declare the LED's pin as output Serial.begin(115200); // connect to the serial port digitalWrite(RESET, HIGH); delay(10); digitalWrite(RESET, LOW); delay(2000); Serial.println("SET BT PAGEMODE 3 2000 1"); Serial.println("SET BT NAME BLUETEST"); Serial.println("SET BT ROLE 0 f 7d00"); Serial.println("SET CONTROL ECHO 0"); Serial.println("SET BT AUTH * 12345"); Serial.println("SET CONTROL ESCAPE - 00 1"); printString("SET CONTROL BAUD 115200,8n1"); }
void loop () { digitalWrite(LED, HIGH); delay(100); digitalWrite(LED, LOW); Serial.println("ciao"); delay(1000);
}
Everything worked well the first time I ran it. I then changed the serial speed setting, to see how fast I can make it run: ....... Serial.begin(921600); .... printString("SET CONTROL BAUD 921600,8n1"); .................
O.K. These settings didn't work. I got garbage characters returned when looking at the output in hyperterminal.
Then, I tried to return to the original configuration. It does not work. Still getting garbage characters. I tried to change the name of the bluetooth device, however the only the original one comes up on BlueSoleil. This indicates that the bluetooth initialization code is not being correctly executed on the blueGiga WT11 .
Does anyone know if there is a way to set the blueGiga WT11 back to defaults? I can't see any information about it in the manuals. Does BlueGiga WT11 start with a default configuration or does it start immediately with the last configured settings? Again, the manuals are not very helpful.
Thanks and regards, Chris Spooner.