add test decode
fix reset paramerters and restart transfer