Problem: download USF file - FOTA EHS6 | Telit Cinterion IoT Developer Community
July 31, 2018 - 3:50pm, 1422 views
Hi everyone!
I want update the firmware of EHS6 and I'm using the FOTA example from: https://iot-developer.thalesgroup.com/showcase/fota-example-firmware-upd... .
I have a problem with download of usf file: when the download this file is done the program uses a function called "cleanResources()" for close all connections and streams. When the program tries close the stream "BufferedOutputStream" called "buffered_file_os", either it can't do it or can close after a long time (45 mins ~ 1:30).
Already comment the line "buffered_file_os.join();" and the installation bricked the module EHS6.
Any idea for solve the problem of dont close the stream ??
Hello,
This is a demo MIDlet which is added to each Gemalto SDK package. You can also find it on your PC together with some other demo projects in 'C:\Users\Public\Cinterion'.
Is it only one module or more? Can you check the ATI1 output?
Flash file system performance may decrease if there is low free space. For EHS6 module firmware and JRC files may take nearly all the free space.
So if there are any redundant files please try to release some space and check if it helps.
On the other hand it's really a long time and it seems far too long for any flash performance issue. Have you seen any other problems? Was it possible to update the firmware after that?
As it's a demo project I think that we also can't exclude some problem inside this MIDlet. I have found that BufferedOutputStream is in fact a class extending Thread and defined inside the project. Maybe you could try to use com.sun.midp.io.BufferedOutputStream instead.
Best regards,
Bartłomiej