Allow connection based on mac address.................?


#1

Hai

in my project i am using BlueDuino as a bluetooth interface. all my devices will connect to this BlueDuino and BlueDuino will do some certain operations based on instructions from connected devices.so in order to provide security. i need to allow connections to some particular device only. for that i need to store the mac address of each device in permanent memory. so when i device is trying to connect BlueDuino i can compare its mac with the mac in memory.and allow connection if they are same.

so i need to know the following details.

1.how to get the mac address of a connected device.
2.how to disconnect a device through program .

thankyou


#2

1.how to get the mac address of a connected device.

Sorry. It’s not supported yet. We’ll add a command to get the mac.


#3

Hi,

We have made a new firmware for CC2540. It resolves some issues you metioned. Please see our wiki for how to upgrade firmware.

Do you have a USB to UART converter for upgrading?


#4

i need to disconnect the central when a specific condition occurred . so which AT command should i use to disconnect the central…?


#5

try to use the AT command directly

Serial1.write("AT\r\n");

#6

Ok it is working perfectly fine

thank you


#7

will this commend affect the operation of processor…? like reset command


#8

how to get notified when a centarl is connected…?


#9

Do you mean a central module that can connect to other peripheral module? AT+RESET should also work.

No a notification at peripheral side. But you will get a response OK+CONN at central side


#10

can i implement a pin number based pairing when a device is try to connect…?


#11

There’s only P0.1 wire to BlueDuino. The pin is used for wake up already. What do you think about implement a OK+CONN notify string at peripheral side when connected?


#12

i mean a security pin not i/o pin. pin number based pairing such as in phones


#13

Got it. But it’s not supported yet.