Porton bluetooth hc-05

Hola mi nombre es Marcos y mi pregunta venia dada de un proyecto el cual estoy usando un modulo bluetooth Hc-05 y quiero hacer un portón automático sin el uso de una aplicación Android, solo con que el modulo hc-05 se conecte con un smartphone el Arduino, verificando esta conexión pueda activar un motor eléctrico.
Y mi otra duda relacionada con esto viene de que querría poder crear una lista de smartphones a los que el hc-05 se pudiese conectar he visto algo parecido con el comando AT+BIND pero este es solo con un dispositivo.
Estoy utilizando un Arduino uno

I'm pretty sure that's for a single device pair, though I've seen people link 2 devices to a single HC-05 with this, but that's iffy.

You could set it to pair any mode and reject anyone that doesn't have an approved address. Probably the wrong way, but it is a way.

First of all thank you very much for answering this forum, could you send me a video or a page where explain how to do that because I am quite new to this.
Thanks a lot.

Moderador:
Te han enviado al foro Arduino en Español, asi que de aquí en mas, solo habla español y si alguien te responde en inglés yo me encargaré de que modifique su comentario.

Mira este link a ver si es posible la solución propuesta por @punk
El dice y pego:

the hc-05 wasn't showing the full address of my hc-06, it was showing 21,13,AD4E when the real was 0021,12,00AD4E

then i found out that after you set it to be master, first i set everything ok

AT+CMODE=0 allows the HC-05 to connect to any device AT+INQM=0,5,9 set inquiry to search for up to 5 devices for 9 seconds AT+INIT initiates the SPP profile. If SPP is already active you will get an error(17) which you can ignore. AT+INQ searches for other Bluetooth devices.

and after that

AT+BIND=0021,13,00AD4E

AT+PAIR=0021,13,00AD4E,20

and everything was ok, i culd communicate and didn't need the link command at all

x 9 segundos puede ver hasta 5 dispositivos, tendras que validar si es uno de los permitidos.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.