This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

9160 http_application_update problem

hi support team,

i just tested http_application_update project, and i set up one server on cloud:"106.12.30.214:32500", 

also you can reach this file server from web, as below.

for now i can download my bin file for 99% percent and last packet seems something wrong.

so i use Wire Shark to track this problem, and find that the server answered the last packet as bad request, as below.

however, when i track it down, i found that the last packet is  already downloaded, and we(9160) dropped this packet. and can you help to track this problem? i am quite sure last packet is downloaded as below(left is from vim to see the bin format, right is from wireshark).

 and below is capture file from wireshark.

0118.capture.pcapng

Thank you in advance! 

Regards,

William.

Parents
  • Hi William,

     

    Thank you for the detailed information. I was quickly able to reproduce the issue you're seeing.

    By default, the http_application_update sample tries to download only one fragment at the time. This is to ensure that you do not have to download the rest of the image if the connection is aborted/disturbed in any way.

    It seems that this specific server doesn't handle "partial content" fully. Can you try setting "CONFIG_DOWNLOAD_CLIENT_RANGE_REQUESTS=n" and see if this works better at your end?

     

    Kind regards,

    Håkon

Reply
  • Hi William,

     

    Thank you for the detailed information. I was quickly able to reproduce the issue you're seeing.

    By default, the http_application_update sample tries to download only one fragment at the time. This is to ensure that you do not have to download the rest of the image if the connection is aborted/disturbed in any way.

    It seems that this specific server doesn't handle "partial content" fully. Can you try setting "CONFIG_DOWNLOAD_CLIENT_RANGE_REQUESTS=n" and see if this works better at your end?

     

    Kind regards,

    Håkon

Children
Related