update ap state after command confirm; split ping interface into ping and upload_state;