I am writing a code to perform DFU update in python. I want to use "nrfutil" library in my python script. I don't want to use "nrfutil.exe" as command line. Thank you.
I am writing a code to perform DFU update in python. I want to use "nrfutil" library in my python script. I don't want to use "nrfutil.exe" as command line. Thank you.
Hello,
Take a look at this blog post on nRF util. To the end, it shows a python script for programming the devices. There you can actually change the traits and call the subprocess(in the script). I suggest to go through the whole blog for better understanding.
Kind Regards,
Abhijith
I am using nrfutil using "SubProcess" module in python. But the issue is every time I share my code, other user must have "nrfutil.exe" on his system for "SubProcess" module to work. I want to use "nrfutil" as a library, just like we use "SubProcess". I have installed nrfutil using "Pip install nrfutil" but I am not able to import the library in my script.
Hello,
nrfutil is a command line utility which includes nordic semi libraries. I don't think it's possible to import the "nrfutil" just like some python libraries.
Kind Regards,
Abhijith
Thank you for replying.
But can we use the nordic semiconductor libraries that are used to build nrfutil. Actually my objective is to perform DFU updates on my BLE devices but that without using any dependency like nrfutil.exe or any other .exe files.
Hello,
I am not a python expert or I am not sure whether it's possible or not. May be you can take a look at the git repo of nrfutil, so you can see the python packages. But this repo is old and deprecated, there won't be any fix for this package in later years.
Kind Regards,
Abhijith