Electrical signals and warning system for nationwide trains