dgiese / dustcloud

Xiaomi Smart Home Device Reverse Engineering and Hacking
GNU General Public License v3.0
2.22k stars 255 forks source link

Wiki: CCC-to-CE for STYJ02YM #305

Closed k-0 closed 2 years ago

k-0 commented 3 years ago

Hi,

I tried to do this: https://github.com/dgiese/dustcloud/wiki/Vacuum-Robots-CCC-to-CE-conversion

But my STYJ02YM (v7 - chinese version) has no default partition:

root@TinaLinux:~# cd /mnt/ && ls -l
drwxrwxrwx    3 root     root          7168 Jan  1  1970 SNN
drwxr-xr-x    7 root     root          1024 Mar 10 06:01 UDISK

Is there a way to change the v7 to v8 (global version)?

k-0 commented 3 years ago

I found no roborock.conf on the file-system, but the /etc/miio/device.conf looks interesting: (Anonymized did, key and mac)

did=375500000 
key=WjVp000000000000
vendor=viomi
mac=5C:6B:00:00:00:00 
model=viomi.vacuum.v7

What would happen if I e.g. change it to model=viomi.vacuum.**v8** ?

Subtixx commented 3 years ago

The logserver is saved in /mnt/UDISK/config/logserver.ini

Haven't tried to replace it however.

/mnt/UDISK/config/new_user_preference.txt contains a language option too. Set to 2 on my chinese robot: m_language_type=2

Also there is /mnt/UDISK/config/device_config.ini with the following:

software_version=X1.2.47.81.27R
hardware_version=1.0.1
robot_app_version=5
algorithm_version=2.0.1.190904_Alpha81
stm32_version=2.0.1_19082727
lidar_version=LIDAR_VERSION_UNKNOW
device_sn=XXXXX/XXXXXXXX
device_mac=5c:6b:XX:XX:XX:XX
device_id=0.000000e+00
device_type=4
voice_enable=1
volume=10
sound_type=1
sleep_enable=1
watch_dog_enable=1
sleep_time=5
keep_time=1
sync_setting_with_server=0
quiet_hours_open=1
quiet_hours_begin_time=1380
quiet_hours_end_time=540
sync_time_diff=28800
sync_phone_time_enable=0
need_device_reset_broken=1
customer_firm_id=1021
has_rtc_hardware=0
history_enable=1
auto_upgrade_status=0
language_type=2
dgiese commented 3 years ago

Hi, the viomi robots (v7,v8, etc) are not the same as the Rockrobo robots. The software is completely different (openwrt vs. ubuntu). Not sure how the region mechanism exactly works, but I dont think that there is a functional difference between v7 and v8. But the firmware is different.... so if there are differences, they are likely in firmware... and v8 firmware is not compatible with the one from v7 (I think it has different partitions...). What are you trying to achieve?

k-0 commented 3 years ago

My intention is that I can connect the robot to Amazon Alexa. This is possible with the global version, but not with the Chinese version.

dgiese commented 2 years ago

For reference: The Viomi robots seem to be EOL, as they did not get any updates for a very long time. Over builder.dontvacuum.me I have a conversion firmware that converts a v7/v8 to a v6. However, I have no clue if that actually solves your problem with Alexa.