Forum: Mikrocontroller und Digitale Elektronik Seeedstudio Bluetooth Shield


von Da H. (darko91)


Lesenswert?

Hallo Zusammen,

Hat jemand Erfahrung mit dem Seeedstudio Bluetooth Shield gemacht?

Beim Verbinden mit dem Modul gibt das Terminal Strings aus wie z.B.

+BTSTATE:3
CONENCT:OK
+BTSTATE:4

Ich nehme stark an, dass das in der Bluetoothinitialisierung so 
definiert ist, um zu sehen, wer Master bzw. Slave ist.
1
void setupBlueToothConnection()
2
{
3
  blueToothSerial.begin(38400);                           // Set BluetoothBee BaudRate to default baud rate 38400
4
  blueToothSerial.print("\r\n+STWMOD=0\r\n");             // set the bluetooth work in slave mode
5
  blueToothSerial.print("\r\n+STNA=SeeedBTSlave\r\n");    // set the bluetooth name as "SeeedBTSlave"
6
  blueToothSerial.print("\r\n+STOAUT=1\r\n");             // Permit Paired device to connect me
7
  blueToothSerial.print("\r\n+STAUTO=0\r\n");             // Auto-connection should be forbidden here
8
  _delay_ms(2000);
9
  // This delay is required.
10
  blueToothSerial.print("\r\n+INQ=1\r\n");                // make the slave bluetooth inquirable
11
  //Serial.println("The slave bluetooth is inquirable!");
12
  _delay_ms(2000);                                        // This delay is required.
13
  blueToothSerial.flush();
14
  
15
}
Rauskommentieren bringt leider nichts..
Hat wer eine Idee?

LG
D.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.