Modified ranging routine for beacon