peserial cmd write