serialport parser

1/ emitter data is one byte larger
2/ required bytes is calculed on data variable and not on buffer variable.