7 Replies Latest reply on Mar 14, 2019 6:55 AM by joco_4017211

    CE216767 - OTA using DLE

    joco_4017211

      Trying the OTA example, it takes 203s to send the 428KB app1 file for an average throughput of 2KB/s.  Considering it had us set the connection interval as low as 15ms and the low throughput, I'm assuming this isn't using DLE.

       

      Is there an example or way to make this use DLE?  I'm mostly interest in the total power used during a OTA upgrade and to reduce time if possible to improve customer experience.

        • 1. Re: CE216767 - OTA using DLE
          joco_4017211

          Okay so looking at the CySmart log, it looks like it may be transferring using DLE since each data write is quite large.

           

          [15:50:09:704] : 'Write Characteristic Value Without Response' request sent

          [15:50:09:704] :     Attribute Handle: 0x0012

          [15:50:09:704] :     Value: [01:37:89:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:3F:FF:17]

           

          Throughput at a connection interval of 7.5ms resulted in a 5.9KB/s throughput and the transfer took 76s.  However this still seems slow. 

           

          It was my understanding that with DLE, the connection interval didn't need to be so low inorder to get good throughput numbers but that doesn't appear to be correct in this case.

          • 2. Re: CE216767 - OTA using DLE
            himam_31

            Hello,

             

            Can you attach the modified project in which DLE is enabled? Are you using CySmart for OTA bootloading?

             

            Thanks,

            Hima

            • 3. Re: CE216767 - OTA using DLE
              joco_4017211

              I did not modify the project.  I'm just following the pdf guide.  And yes I'm using CySmart.

               

              Is there an expected firmware upload speed?

              • 4. Re: CE216767 - OTA using DLE
                himam_31

                Hello,

                 

                Can you try enabling the DLE and check if you see an improvement in speed. Ideally you should see speed improvement. The firmware upload speed would depend on the image size as well. So we cannot give a specific time.

                 

                Thanks,

                Hima

                • 5. Re: CE216767 - OTA using DLE
                  joco_4017211

                  HimaM_31 wrote:

                   

                  Hello,

                   

                  Can you try enabling the DLE and check if you see an improvement in speed. Ideally you should see speed improvement. The firmware upload speed would depend on the image size as well. So we cannot give a specific time.

                   

                  Thanks,

                  Hima

                  I'm pretty sure DLE is enabled in the example project.

                   

                  You guys created the CE216767 example code, you should know roughly what its image size is and be able to give a estimate to what throughput you expect through the OTA mechanism you designed.

                   

                  Alternatively is there any documentation on the mechanism/procedure that CySmart uses to send an OTA to the device?

                  • 6. Re: CE216767 - OTA using DLE
                    himam_31

                    Hello,

                     

                    Can you please do the following modifications in the DWR settings and try bootloading. This should improve the timing.

                     

                    1. System Tab > Power Mode > 1.1 V SIMO or LDO
                    2. Clocks tab > FLL/PLL > Configure FLL or PLL to 100 MHz and use as source for Clk_HF0
                    3. Clocks Tab > High Freq clocks > Clk_peri = 100 MHz > Clk_Slow = 100 MHz

                     

                    Thanks,

                    Hima

                    • 7. Re: CE216767 - OTA using DLE
                      joco_4017211

                      I will give it a try, probably next week.

                       

                      Do you have any idea roughly how long the OTA should take if things are working correctly?  What the throughput should be?