Manual device FW update for JS220

Hi all -
Is there a way to manually upgrade/downgrade between different Joulescope firmware driver/FPGA versions?

I’m seeing a pretty significant power draw difference in my device that I can’t explain - same hardware and firmware setup but a ~25% power draw increase. The issue is probably somewhere on my end, but I did update the Joulescope firmware drivers (through the popup on the UI) before I started seeing the issue, so I’d like to downgrade again to rule out a change in my test setup.

I see the page with the device firmwares here, but when I try to upgrade with the command `python -m joulescope program upgrade “[my_file].img”, I get an error that the specified file isn’t a ZIP archive.

Any pointers?
Thanks,
Anthony

Hi @adomenick and welcome to the Joulescope forum!

While we do not prevent downgrading (many devices do these days for security reasons), we also did not make it easy. That python -m joulescope program upgrade {my_file}.img command only supports the JS110. The JS220 command is:

 python -m pyjoulescope_driver program

However, it only updates to the latest.

The easiest way to downgrade is using Windows and jsdrv.exe available on GitHub. Place jsdrv.exe in a directory along with the desired firmware images.
I recommend roling back to 1.2.1 if you are going to do this:

Then:

cd {c:\directory\with\jsdrv_and_images}
.\jsdrv reset update1
.\jsdrv mem_erase s/app1 && .\jsdrv mem_write s/app1 ".\js220_fpga_1_2_1.img"
.\jsdrv mem_erase c/app && .\jsdrv mem_write c/app ".\js220_ctrl_app_1_2_1.img"
.\jsdrv reset app

Does this work for you?

I just downloaded jsdrv.exe, and it was flagged by Microsoft Defender. I ran it though VirusTotal, and only Microsoft Defender has a problem with it. Definitely a false positive…

That worked! Thanks @mliberty and also thanks for making an awesome product!

As expected, the extra power draw I’m seeing does not seem to be a result of different Joulescope drivers

2 Likes

hi @adomenick
Your testing has supported that the JS220 firmware update does not affect the device’s measurement accuracy. I recently updated my JS220 Joulescope through the UI after receiving a notification.
beacuse even i see some change in Power Consumption, need to figureout in my setup.
thanks @adomenick @mliberty