1
\$\begingroup\$

I wish to develop an Android application for my phone (nexus 4) which needs to get the device to communicate with a Bluetooth chip/receiver and back at regular intervals. When I say 'chip' I mean any form of device/transmitter which is capable of using Bluetooth to receive and send messages to my phone.

Would anyone be able to tell me the hardware I need to get started?

Apologies if my question is vague but I need pointing in the right direction.

\$\endgroup\$
2
  • \$\begingroup\$ So you only need serial communications (RFCOMM/SPP)? \$\endgroup\$ Jun 16, 2013 at 2:06
  • \$\begingroup\$ Thanks for the reply Ignacio. I'm not sure what that is - I need a transmitter that can communicate with my android device. The application requires it to ping every 10 minutes - that's all! \$\endgroup\$
    – davidian
    Jun 16, 2013 at 8:29

1 Answer 1

0
\$\begingroup\$

You can essentially use any Bluetooth device that supports SPP (Serial Port Protocol). Some of the most popular are RN-42 based boards like the Bluetooth Mate Silver. A lot of these are advertised as serial port replacements (UART in on one side - UART out on the other).

On the android side things are relatively simple, although there are some inconsistencies between Android versions. When starting, my approach was to adapt the BluetoothChat sample application. This should be available when you have installed the Android SDK under samples/[platform version]/BluetoothChat. The only trick is to make sure you use the UUID specific to SPP: 00001101-0000-1000-8000-00805F9B34FB

The hardware side is extremely easy - just hook your Bluetooth module up to your microcontroller via the UART and switch the power on. If you need more help on the Android side I found the Android StackOverflow an very useful place for Bluetooth help.

\$\endgroup\$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.