Open iamjmitch opened 1 month ago
Adding my logs for the same issue with this model
The error is avoided by adding a check for len(point) == 4
to the for point in path_data_arr
in v1.py (last point has len == 1)
Perfect 🙃
Dump of some data
I have made progress on decoding the path. The SL60D is using LZ4 compression for the payload
The basic idea is to change decode_path_v1
to this:
def decode_path_v1(pathdata):
header_length = BYTE_HEADER_LENGHT_PATH_V1 // 2
data_arr = _hexStringToNumber(pathdata)
isLz4 = True
if(isLz4):
encode_data_array = _hexStringToNumber(pathdata[BYTE_HEADER_LENGHT_PATH_V1:])
max_buffer_length = 4336
decode_data_array = LZ4_decompress(encode_data_array, max_buffer_length)
path_data_arr = [decode_data_array[i:i + 4] for i in range(0, len(decode_data_array), 4)]
else:
path_data_arr = [data_arr[i:i + 4] for i in range(header_length, len(data_arr), 4)]
isLz4
and max_buffer_length
should both be determined from the header, but I don't think we are currently parsing the header so I have just hardcoded the values (I copied the max_buffer_length value seen when running the same data through the Tuya Panel Demo code).
The x/y offsets are not quite right. To get the image above I had to x + 1800 and y - 3175. Also the len(point) == 4
check I mentioned earlier is not needed.
V1.2.0 LuBlueLu SL60D Firmware: 2.6.46 MCU: 15.0.25
Having issues with "Show Path" on LuBlueLu SL60D. If I dont select "Show Path" when configuring the map loads fine however when i click "Show Path" i get no map. checking the logs i get the following error:
Full Error Log path error.txt