get and set device id is ok
updata cmd_lib and shutdown logic