0

nRF8001 newbie help
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

nRF8001 newbie help

by johnmax on Mon Mar 31, 2014 10:47 am

I am looking to use the nRF8001 BLE to recognize multiple Bluetooth devices and output device specific commands or I/O outputs via an Arduino controller when a specific Bluetooth device is in proximity. I will not be sending any data back and forth, just need an action when a device is near by.

Is this possible with these devices? Any tips or help are appreciated.
johnmax
 
Posts: 6
Joined: Fri Mar 28, 2014 12:25 pm

Re: nRF8001 newbie help

by adafruit_support_mike on Tue Apr 01, 2014 2:15 am

It depends on what kinds of devices you want to recognize.

Bluetooth has 'central' and 'peripheral' device categories. Central devices initiate connections and issue commands. Peripherals tend to be low-energy, resource-constrained devices that know how to obey specific commands sent from a central device.

Peripherals chirp out an 'advertising' packet every so often to let nearby central devices know they exist, but peripherals don't listen for chirps from other peripherals. The peripheral only knows another device exists when a central device opens a connection and asks for more information.

The nRF8001 is a peripheral, so you won't be able to turn it into an active scanner. It will only be able to advertise its own presence and respond to commands from central devices that take an interest in it.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.

adafruit_support_mike
 
Posts: 57131
Joined: Thu Feb 11, 2010 2:51 pm

Re: nRF8001 newbie help

by johnmax on Tue Apr 01, 2014 8:56 am

Basically looking for the nRF8001 to recognize a mobile device (iphone, android phone, etc) connecting to it, and then have the controller perform an action.
johnmax
 
Posts: 6
Joined: Fri Mar 28, 2014 12:25 pm

Re: nRF8001 newbie help

by johnmax on Wed Apr 02, 2014 10:31 am

I need a home automation system to recognize multiple users via their IOS or Android devices via BLE. I would like the nRF8001 (or 8002) to see one of the multiple users, and upon detection of a particular user, give me a unique contact closure output on a connected controller. RS232 communication would be even more useful for me, but not required.
johnmax
 
Posts: 6
Joined: Fri Mar 28, 2014 12:25 pm

Re: nRF8001 newbie help

by johnmax on Thu Apr 03, 2014 8:26 am

Anyone have any input on this?
johnmax
 
Posts: 6
Joined: Fri Mar 28, 2014 12:25 pm

Re: nRF8001 newbie help

by adafruit_support_bill on Thu Apr 03, 2014 8:43 am

As Mike noted in his response. The nRF8001 is a 'peripheral' device and not a 'central' device. Peripheral devices cannot actively scan for other devices. They can only respond to commands from a central device.

The nRF8001 will advertise it's presence and users can send commands to it from their mobile devices. But the nRF8001 cannot take action on its own.

adafruit_support_bill
 
Posts: 72790
Joined: Sat Feb 07, 2009 10:11 am

Re: nRF8001 newbie help

by johnmax on Thu Apr 03, 2014 9:08 am

So it would not be able to take an action if a mobile device sees it and then connects to it?
johnmax
 
Posts: 6
Joined: Fri Mar 28, 2014 12:25 pm

Re: nRF8001 newbie help

by adafruit_support_bill on Thu Apr 03, 2014 9:22 am

The nRF8001 itself would not. But an attached microcontroller could poll the nRF8001 status and take an action when it detects that a connection has been made.

adafruit_support_bill
 
Posts: 72790
Joined: Sat Feb 07, 2009 10:11 am

Re: nRF8001 newbie help

by johnmax on Thu Apr 03, 2014 1:10 pm

Ok good. So I could add an Arduino and code it to poll and act upon a successful connection.

One other question- Will I be able to recognize different devices and give the controller unique info for a particular device? Or would it be a "global" message for any device that connects? I would want to know if device "A" is connected versus device "B".
johnmax
 
Posts: 6
Joined: Fri Mar 28, 2014 12:25 pm

Re: nRF8001 newbie help

by adafruit_support_bill on Thu Apr 03, 2014 1:21 pm

There is no identification of the connected device. It would have to send something to identify itself after the connect.

adafruit_support_bill
 
Posts: 72790
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.