generic send_command_frame subroutine