Add dt command support, and data pattern mode support
fix bugs