0

How can I use serial communication (port) via Bluetooth to send data?

I need to send serial data through an Android device to a Bluetooth model (BlueSMiRF Silver) (that is connected to an Arduino board).

I was literally sitting for three day trying to understand how to do that...

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
whiteberryapps
  • 1,392
  • 4
  • 16
  • 21
  • Flagged as exact duplicate of http://stackoverflow.com/q/12056756/1440715 Please don't repost questions due to negative rating. Instead, try elaborating on the original post. – ZnArK Aug 21 '12 at 20:02

1 Answers1

0

Would be nice to have more details about what you tried and where you are stuck.

On the Android side the first step is to pair with the BlueSMiRF module. You should be able to discover the BlueSMiRF and pair from the "Bluetooth Settings" on android. You might have to put the BlueSMiRF module in discoverable mode (and you can set the a pin code for it).

Once paired, to be able to send and receive data you need to connect using a Bluetooth socket. To communicate with the BlueSMiRF module you need to use the Serial Port Profile (SPP) and create and RFCOMM socket. For an example you can have a look at this post.

Community
  • 1
  • 1
Franck
  • 86
  • 1