Indoor Positioning Raspberry-Pi

Hi guys,
I am trying communicate with the beacons using my raspberry pi. can any one any article or tutorial how i can achieve this in linux?. My aim here is measure distance between the beacons and raspberry-pi which further I am planning to use in Indoor Positioning using RSSi.