implement arduino command parse.