Xiaomi Vacuum Token

I recently bought a router and since setting it up the vacuum lost connection with the wifi (SSID and password were the same as my previous modem router which is now only a modem)
I reset the wifi on the xiaomi vacuum by holding the home and power button for a few seconds.
This then allowed me to reconnect via the xiaomi app on my iphone, but now I have lost connection to HA
I went through the tutorial to extract the token. all went well until step 12 of the tutorial
However on step 13, nothing is outputted when I run the command (I assume terminal is a linux terminal).
The result looks like this:


As you can see, no output that I can use, but garbage. Any idea on what I need to do?

Interestingly, the token I retrieved is the same as in my previous HA setup, but somehow HA can’t connect to the vacuum…

if it helps, this is what I see in the logs:

2017-12-01 10:32:27 DEBUG (Thread-3) [miio.device] Got a response: Container: 
    data = Container: 
        offset2 = 32
        value =  (total 0)
        length = 0
        data =  (total 0)
        offset1 = 32
    header = Container: 
        offset2 = 16
        value = Container: 
            length = 32
            unknown = 0
            devtype = 985
            serial = 55578
            ts = 2017-12-01 10:32:25
        length = 16
        data = !1\x00 \x00\x00\x00\x00\[edited...]\xd9\x1aZ!/\xb9 (total 16)
        offset1 = 0
    checksum = \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff (total 16)
2017-12-01 10:32:27 DEBUG (Thread-3) [miio.device] Discovered 985 55578 with ts: 2017-12-01 10:32:25, token: b'ffffffffffffffffffffffffffffffff'
2017-12-01 10:32:27 DEBUG (Thread-3) [miio.device] 192.168.0.18:54321 >>: {'method': 'get_status', 'id': 102}
2017-12-01 10:32:32 ERROR (Thread-3) [miio.device] Got error when receiving: timed out
2017-12-01 10:32:32 WARNING (Thread-3) [miio.device] Retrying with incremented id, retries left: 2

ignore above. Somehow the version of iBackup was not the latest and did not export the sqlite file.
Upgraded and solved my issue.

The preferred way to get the token is to extract it from backup file. For future reference: https://python-miio.readthedocs.io/en/latest/discovery.html#tokens-from-backups