Closed
Description
Using mirobo
, I am unable to connect with the vacuum.
The token is extracted from Mi Home logs version 5.4.49, vacuum fw 3.5.0_003476
sudo mirobo --ip 192.168.1.145 --token 7866XXXX716c -d
DEBUG:miio.vacuum_cli:Connecting to 192.168.1.145 with token 7866XXXX716c
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG:miio.device: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\x02\xf2>\t]F\x80J' (total 16)
value = Container:
length = 32
unknown = 0
device_id = b'\x02\xf2>\t' (total 4)
ts = 2019-08-04 06:50:50
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.device:Discovered 02f23e09 with ts: 2019-08-04 06:50:50, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.device:192.168.1.145:54321 >>: {'id': 1, 'method': 'get_status', 'params': []}
DEBUG:miio.device:Retrying with incremented id, retries left: 3
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG:miio.device: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\x02\xf2>\t]F\x80P' (total 16)
value = Container:
length = 32
unknown = 0
device_id = b'\x02\xf2>\t' (total 4)
ts = 2019-08-04 06:50: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.device:Discovered 02f23e09 with ts: 2019-08-04 06:50:56, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.device:192.168.1.145:54321 >>: {'id': 102, 'method': 'get_status', 'params': []}
DEBUG:miio.device:Retrying with incremented id, retries left: 2
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG:miio.device: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\x02\xf2>\t]F\x80U' (total 16)
value = Container:
length = 32
unknown = 0
device_id = b'\x02\xf2>\t' (total 4)
ts = 2019-08-04 06:51:01
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.device:Discovered 02f23e09 with ts: 2019-08-04 06:51:01, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.device:192.168.1.145:54321 >>: {'id': 203, 'method': 'get_status', 'params': []}
DEBUG:miio.device:Retrying with incremented id, retries left: 1
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG:miio.device: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\x02\xf2>\t]F\x80Z' (total 16)
value = Container:
length = 32
unknown = 0
device_id = b'\x02\xf2>\t' (total 4)
ts = 2019-08-04 06:51:06
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.device:Discovered 02f23e09 with ts: 2019-08-04 06:51:06, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.device:192.168.1.145:54321 >>: {'id': 304, 'method': 'get_status', 'params': []}
ERROR:miio.device: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.7/site-packages/miio/device.py", line 259, 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.7/site-packages/miio/device.py", line 259, 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.7/site-packages/miio/device.py", line 259, 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.7/site-packages/miio/device.py", line 259, 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.7/site-packages/miio/click_common.py", line 54, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1114, in invoke
return Command.invoke(self, ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/miio/vacuum_cli.py", line 69, in cli
ctx.invoke(status)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/miio/vacuum_cli.py", line 105, in status
res = vac.status()
File "/usr/local/lib/python3.7/site-packages/miio/vacuum.py", line 171, in status
return VacuumStatus(self.send("get_status")[0])
File "/usr/local/lib/python3.7/site-packages/miio/device.py", line 290, in send
return self.send(command, parameters, retry_count - 1)
File "/usr/local/lib/python3.7/site-packages/miio/device.py", line 290, in send
return self.send(command, parameters, retry_count - 1)
File "/usr/local/lib/python3.7/site-packages/miio/device.py", line 290, in send
return self.send(command, parameters, retry_count - 1)
File "/usr/local/lib/python3.7/site-packages/miio/device.py", line 293, 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
It seems to be similar to #92, but I have my vacuum on internet-facing VLAN, connected to the same WiFi as the device I am running mirobo
with the same subnet.
Any ideas what I can try next to debug it?