Embedded Train Control System