Change protocol commands to receive config data
Add device class check before flashing