Handle smartphone commands over serial port