6
\$\begingroup\$

I'm looking to be able to build a kind of course location based system where a mobile Arduino will scan for a list of currently visible (discoverable) bluetooth points, and then depending on pattern matching will do work accordingly.

Does anybody know of how this might be achieved? The bluetooth shields and bluetooth version of Arduino seem to just be endpoints for attaching to the serial of the Arduino itself. Does anyone have experience with this?

\$\endgroup\$

1 Answer 1

7
\$\begingroup\$

If you can send AT commands to your bluetooth module, you can also discover nearby devices.

See for example this guide. In the example they are sending commands from computer, but you can do exactly the same with your Arduino. Sending command

AT+JDDS=0

should return list of matching devices. Additionally, you can also search for specific services:

AT+JSDS=0026C3AB5A39,1101

Where 0026C3AB5A39 is MAC address of device and 1101 is code for serial port.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ The guide posted on this answer is worth checking. It does explain how to search for discoverable bluetooth devices. \$\endgroup\$
    – 0xakhil
    Commented May 22, 2011 at 18:16

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.