if code == "PW":
            if state == chr(0x30):
                sid ="Standby"
            elif state == chr(0x31):
                sid = "PowerOn"