Communication mode changed to length based and tested succesfully in the
emulator.