In some scenarios, We need to update state information internally. Instead of use idle-task to drive the checkstate and change state function. Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>