update packet formats
driver test.sh: support debug mode