the temp_history_count base on timeout
add reinit_device