Update command interface protocol

First received character will select between write and read mode.
By now the only function is for sampling and is executed when receiving
the string '00'.