Go Down

Topic: bluetooth (Read 2 times) previous topic - next topic

rainerunsinn

Hey,
I bought myselfe an arduino bluetooth shield. http://imall.iteadstudio.com/im120417010.html

I tried to communicate with my pc via the following code:
Code: [Select]

void setup()
{
  Serial.begin(9600);
}


void loop()
{
if (Serial.available())
  {
    Serial.write("Incomming");
  }
Serial.write("HELLO");
}


I had paired my pc with the arduino bluetooth and connected the bluetooth of my pc to /dev/rfcomm0

But I see no income and no outgoing. What am I doing wrong?

PaulS

Where did you put the jumpers?

rainerunsinn

#2
Jan 13, 2013, 07:30 pm Last Edit: Jan 13, 2013, 07:32 pm by rainerunsinn Reason: 1
I let them at the default position.

rx is at 0 and tx is at 1.

cbagz

Try 38400 Baud rate, and is your switch to CMD or DAT. 

rainerunsinn

#4
Jan 14, 2013, 06:17 pm Last Edit: Jan 14, 2013, 06:28 pm by rainerunsinn Reason: 1
Hey,

thank you for your answer. I tried it with 38400 Baud, but nothing happened:-(
my switch is at DAT, when I set it on CMD I can't find the shield with my computer.

I also tried it with software serial:
Code: [Select]

#include <SoftwareSerial.h>
SoftwareSerial ss(6,7); //I set the jumper for rx to 6 and tx to 7
void setup()
{
  ss.begin(9600);
}
void loop()
{
  if(ss.available())
  {
     ss.write("Incomming");
  }
}

But this neither worked.

Go Up