|
发表于 2021-1-24 21:39:21
|
显示全部楼层
本帖最后由 tiger81 于 2021-1-24 21:40 编辑
INFO:miio.cliebug mode active
Running command raw_command
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x04\x8d\xf2\x04`\rw\xe9' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('048df204')
ts = 2021-01-24 13:36:41
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
DEBUG:miio.miioprotocoliscovered 048df204 with ts: 2021-01-24 13:36:41, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.0.162:54321 >>: {'id': 1, 'method': 'get_properties', 'params': [{'did': 'result', 'siid': 2, 'piid': 1}]}
DEBUG:miio.miioprotocol:Retrying with incremented id, retries left: 3
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x04\x8d\xf2\x04`\rw\xee' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('048df204')
ts = 2021-01-24 13:36:46
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
DEBUG:miio.miioprotocoliscovered 048df204 with ts: 2021-01-24 13:36:46, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.0.162:54321 >>: {'id': 102, 'method': 'get_properties', 'params': [{'did': 'result', 'siid': 2, 'piid': 1}]}
DEBUG:miio.miioprotocol:Retrying with incremented id, retries left: 2
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x04\x8d\xf2\x04`\rw\xf3' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('048df204')
ts = 2021-01-24 13:36:51
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
DEBUG:miio.miioprotocoliscovered 048df204 with ts: 2021-01-24 13:36:51, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.0.162:54321 >>: {'id': 203, 'method': 'get_properties', 'params': [{'did': 'result', 'siid': 2, 'piid': 1}]}
DEBUG:miio.miioprotocol:Retrying with incremented id, retries left: 1
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x04\x8d\xf2\x04`\rw\xf8' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('048df204')
ts = 2021-01-24 13:36:56
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
DEBUG:miio.miioprotocoliscovered 048df204 with ts: 2021-01-24 13:36:56, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.0.162:54321 >>: {'id': 304, 'method': 'get_properties', 'params': [{'did': 'result', 'siid': 2, 'piid': 1}]}
ERROR:miio.miioprotocol:Got error when receiving: timed out
DEBUG:miio.click_common:Exception: No response from the device
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 192, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 192, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 192, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 192, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/miio/click_common.py", line 59, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/miio/click_common.py", line 280, in wrap
kwargs["result"] = func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/decorators.py", line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/miio/click_common.py", line 245, in command_callback
return miio_command.call(miio_device, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/miio/click_common.py", line 193, in call
return method(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/miio/device.py", line 162, in raw_command
return self.send(command, parameters)
File "/usr/local/lib/python3.8/site-packages/miio/device.py", line 143, in send
return self._protocol.send(
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 232, in send
return self.send(
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 232, in send
return self.send(
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 232, in send
return self.send(
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 240, in send
raise DeviceException("No response from the device") from ex
miio.exceptions.DeviceException: No response from the device
Error: No response from the device
{
"type": "urn:miot-spec-v2:device:camera:0000A01C:chuangmi-ipc013:1",
"description": "Camera",
"services": [{
"iid": 1,
"type": "urn:miot-spec-v2:service:device-information:00007801:chuangmi-ipc013:1",
"description": "Device Information",
"properties": [{
"iid": 1,
"type": "urn:miot-spec-v2:property:manufacturer:00000001:chuangmi-ipc013:1",
"description": "Device Manufacturer",
"format": "string",
"access": ["read"]
}, {
"iid": 2,
"type": "urn:miot-spec-v2:property:model:00000002:chuangmi-ipc013:1",
"description": "Device Model",
"format": "string",
"access": ["read"]
}, {
"iid": 3,
"type": "urn:miot-spec-v2:property:serial-number:00000003:chuangmi-ipc013:1",
"description": "Device Serial Number",
"format": "string",
"access": ["read"]
}, {
"iid": 4,
"type": "urn:miot-spec-v2:property:firmware-revision:00000005:chuangmi-ipc013:1",
"description": "Current Firmware Version",
"format": "string",
"access": ["read"]
}]
}, {
"iid": 2,
"type": "urn:miot-spec-v2:service:camera-control:0000782F:chuangmi-ipc013:1",
"description": "Camera Control",
"properties": [{
"iid": 1,
"type": "urn:miot-spec-v2:propertyn:00000006:chuangmi-ipc013:1",
"description": "Switch Status",
"format": "bool",
"access": ["read", "write", "notify"]
}, {
"iid": 2,
"type": "urn:miot-spec-v2:property:image-rollover:00000058:chuangmi-ipc013:1",
"description": "Image Rollover",
"format": "uint16",
"access": ["read", "write"],
"unit": "arcdegrees",
"value-range": [0, 180, 180]
}, {
"iid": 3,
"type": "urn:miot-spec-v2:property:night-shot:00000057:chuangmi-ipc013:1",
"description": "Night Shot",
"format": "uint8",
"access": ["read", "write"],
"value-list": [{
"value": 0,
"description": "Auto"
}, {
"value": 1,
"description": "Off"
}, {
"value": 2,
"description": "On"
}]
}]
}, {
"iid": 3,
"type": "urn:miot-spec-v2:service:p2p-stream:00007881:chuangmi-ipc013:1",
"description": "2P Stream",
"actions": [{
"iid": 1,
"type": "urn:miot-spec-v2:action:start-p2p-stream:00002839:chuangmi-ipc013:1",
"description": "Start P2P Stream",
"in": [],
"out": []
}, {
"iid": 2,
"type": "urn:miot-spec-v2:action:stop-stream:00002822:chuangmi-ipc013:1",
"description": "Stop Camera Stream",
"in": [],
"out": []
}]
}]
}
Model: chuangmi.camera.ipc013
不支持我的米家小白青春版摄像头,这个摄像头一直无解。希望楼主能支持,谢谢! |
|