There's several ways of doing this. The way I do it is through the throttle app JMRI. JMRI allows me to run my trains via my phone. It also allows me to easily consist and control multiple locomotives at the same time. It's very simple once you figure it out!