Protocol converting method for the Real-time Safety Supervision System in Railway