raspberry pi - Detecting proximity of an iPhone 5s from a RaspberryPi -


i acquired couple of raspberry pis , csr bluetooth 4.0 usb dongles. i've tried blogs , tutorials (the best of radius networks , adafruit) i'm either missing important behavior behavior or configuration step.

i'm using bluez 5.17 compiled source. csr 4.0 ble dongle appears work fine:

$ sudo hciconfig hci0:   type: br/edr  bus: usb         bd address: 00:1a:7d:da:71:0f  acl mtu: 310:10  sco mtu: 64:8         running pscan         rx bytes:12649 acl:0 sco:0 events:464 errors:0         tx bytes:2658 acl:0 sco:0 commands:124 errors 

when start lescan don't see anything. iphone 5s has bluetooth enabled.

$ sudo hcitool lescan le scan ... 

from iphone 5s launch "beacon toolkit", create new ibeacon random uuid , activate it. lots of lescan activity getting picked up.

$ sudo hcitool lescan le scan ... 5e:ee:91:0c:be:2e (unknown) 5e:ee:91:0c:be:2e (unknown) 5e:ee:91:0c:be:2e (unknown) ... 

so decided try advertising:

$ sudo hcitool -i hci0 cmd 0x08 0x0008 1e 02 01 1a 1a ff 4c 00 02 15 e2 0a 39 f4 73 f5 4b c4 a1 2f 17 d1 ad 07 a9 61 00 00 00 00 c8 00 < hci command: ogf 0x08, ocf 0x0008, plen 32   1e 02 01 1a 1a ff 4c 00 02 15 e2 0a 39 f4 73 f5 4b c4 a1 2f   17 d1 ad 07 a9 61 00 00 00 00 c8 00 > hci event: 0x0e plen 4   01 08 20 00 $ sudo hciconfig hci0 leadv 3 

i have no clue i'm supposed expect @ point. "locate ibeacon" app sits there @ locate ibeacons view "looking ibeacons...". nothing happens.

either way, entire point of testing see if can raspberrypi/linux detect proximity of iphone 5s via ble.

is possible? ibeacon , ble blogs , tutorials unclear regarding possible technology or tools cover. one, it's not practical having run app in order proximity measured.

how can iphone 5s advertise without having app running?

thanks in advance tips. think there couple of stumbling around, trying understand how functionality can used beyond in-app scenario.

when scan ibeacons on raspberry pi, need script parse out ibeacon identifiers. company has posted 1 here.

the "locate ibeacon" app sits there @ locate ibeacons view "looking ibeacons...". nothing happens.

you cannot see ibeacon on ios unless first tell ios proximityuuid. in case, making raspberry pi trasnsmit proximityuuid e20a39f4-73f5-4bc4-a12f-17d1ad07a961. must configure locate ibeacon proximityuuid visible.

how can iphone 5s advertise without having app running?

unfortunaterly, cannot. ios devices need app running make send ibeacon transmissions. if want raspberry pi receiver, must have phone user activate app , put in foreground.

the alternative have raspberry pi transmitter. phone still need app installed detect pi , measure distance, app in background. when ios first detects ibeacon, briefly launches app looking ibeacons background, can quick distance estimate, request permission user come foreground more ranging.

given ios security model, afraid best can do. android more flexible use case, , app can full ranging in background (although android cannot act transmitter).

full disclosure: chief engineer radius networks.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -