How to use the Over-The-Air function?

I found a tutorial about Over-The-Air update and it says that I need to convert my .bin file to .ota file. For that I have to use the tools in the ArduinoIoT folder on the github. The problem is that the tools don't work as they're supposed to, the python scripts contain errors and I fail to convert my .bin file. Has anyone tried to do this before ? Is there another way to convert the .bin file into a .ota file ?
Thank you.

Hi @ramiraz

for which board are you trying to generate the ota file? Assuming you are using portenta this is the correct command:

python bin2ota.py PORTENTA_H7_M7 Sketch.bin Sketch.ota

i've tested it now and it workswithout problems.

@pennam Shouldn't I convert the bin file to lzss first ?
In the tutorial, it says that I have to convert the bin file to lzss then from lzss to ota

Correct! the complete procedure is:

python lzss.py --encode Sketch.bin Sketch.lzss
bin2ota.py PORTENTA_H7_M7 Sketch.lzss Sketch.ota

yes my problem is that the lzss.py script doesn't work. It gives me an error : OSError [WinError 193]

I think I got it. The script works only on linux and MacOS because of the shared library

But in the tutorial there is both windows and linux commands so it should work on both. Also, I tried on an ubuntu virtual machine and I had an error as well.

We are fixing the tutorial right now
@ramimarz @pennam

You can check the new changes at Portenta H7 - OTA Tutorial Content Fix by TaddyHC · Pull Request #746 · arduino/docs-content · GitHub

In any case on Ubuntu should work, what error are you getting there?