added batch write mode for usb serial driver