Go Down

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

Cue2

can you elaborate on how you have set up your linux machine and how you listen for incoming data on rfcomm0?

Does it make a difference if you use Serial.print("Hello") instead?

rainerunsinn

Hey,

I used blueman to connect the shield to /dev/rfcomm0
Then I used cat /dev/rfcomm0 to listen and echo hello > /dev/rfcomm0 to send.
Serial.print("Hello") and Serial.write("Hello") don't make a difference.

rainerunsinn


Cue2

#8
Jan 29, 2013, 03:52 pm Last Edit: Jan 29, 2013, 03:54 pm by Cue2 Reason: 1
I don't know what the problem could be, far too many things could be wrong and without being able to see how your linux box or shield is set up it's hard to say. when you type "rfcomm" at the command line does it show your bluetooth device?

Code: [Select]
rfcomm0: xx:xx:xx:xx:xx:xx channel 1 closed


where "xx:xx:xx:xx:xx:xx" is the address of your particular bluetooth shield?

rainerunsinn

Hey,

when I enter: rfcomm
I get this information:
Code: [Select]
rfcomm0: 00:23:4D:E5:7F:0F -> 00:12:11:12:06:48 channel 1 connected [reuse-dlc tty-attached]

Go Up