What's the pairing code of the Bluetooth module?

Bluetooth, USB, UART, Storage, etc.
BITalino
Site Admin
Posts: 567
Joined: Tue Aug 27, 2013 3:47 pm

What's the pairing code of the Bluetooth module?

Postby BITalino » Sun Sep 22, 2013 10:05 am

1234

JoaoValente
Posts: 4
Joined: Tue Feb 25, 2014 8:24 pm

Re: What's the pairing code of the Bluetooth module?

Postby JoaoValente » Sat Mar 22, 2014 10:20 pm

Is it possible to change this same PIN programmatically through your API or by any other means?

Thanks in advance

BITalino
Site Admin
Posts: 567
Joined: Tue Aug 27, 2013 3:47 pm

Re: What's the pairing code of the Bluetooth module?

Postby BITalino » Sun Mar 23, 2014 12:17 pm

JoaoValente wrote:Is it possible to change this same PIN programmatically through your API or by any other means?

Thanks in advance


Hi João,

Currently, neither the API nor the firmware are prepared to do so, but it should be possible to change the PIN by tapping into the Bluetooth module UART interface. If you're using a BITalino Freestyle, you can just hook the Bluetooth block up to an FTDI, and use the Hyperterminal or any substitute way of sending commands to the module.

To change the pin, the command should be AT+PINxxxx, although you're advised to confirm in the reference guide for the module we're currently using:
http://www.micro4you.com/files/ElecFreaks/Bluetooth%20HC-06.pdf

If you have a BITalino Board or Plugged, you'll have to do some exploration in order to confirm what the best way of sending the AT commands to the module can be. Given that the UART is connected by default to the MCU block, and hence would be shared between the MCU and the FTDI, it may not work unless you cut the RX and TX lines and the re-solder them afterwards.

It should not the case for the PIN, but note that changing the settings on the Bluetooth module may render your BITalino unreachable.

Best regards,
The BITalino Team


Return to “I/O”




cron