Text this: Collision avoidance algorithm and validation based on V2P at intersection