serial interface working, now defining a protocol for communication