download demo can't work

Hi

    I'm testing downloading a file from AWS S3 using ncs but it's not working well. I'm getting an error called -116 Connection timed out. 
    I also used another client to connect and it was not able to connect. I used the IP and port from the logs.

    Can you give me some advice, thanks.

ncs: ncs2.7.0
sample: v2.7.0\nrf\samples\net\download    only build and download

board: nRF7002-DK

log

error position

Parents Reply Children
  • Hi,

     

    The certificate shall be loaded upon boot.

    For debugging purposes, could you try to add a couple of seconds delay in this line?

    https://github.com/nrfconnect/sdk-nrf/blob/main/samples/net/download/src/main.c#L304

     

    ie. a k_msleep(5000); for instance, before the download starts.

     

    Kind regards,

    Håkon

  • Hi,

      Thanks for your response. I tried your method, but it didn't work.

      I personally feel like there is something wrong with the configuration, because there is no problem using our URL. So I think something like certificate or user name password need config. 

      Can you try this example? I believe you will also be able to reproduce the problem. Thanks.

    URL: https://minewsemi-s3-test.s3.amazonaws.com/1.png

  • Hi,

     

    That is also using the amazon root CA, so there should not be a problem with the certificate chain.

    This worked on my end (please note: I have no ipv6 connectivity at my end):

    *** Using Zephyr OS v3.6.99-100befc70c74 ***
    Download client sample started
    Provisioning certificate
    CA certificate already exists, sec tag: 42
    Connecting to network
    [00:00:02.193,176] <inf> wifi_mgmt_ext: Connection requested
    IP Up
    Network connected
    [00:00:10.297,882] <dbg> download_client: set_state: state = 1
    [00:00:10.297,912] <inf> download_client: Downloading: https://minewsemi-s3-test.s3.amazonaws.com/1.png [0]
    Downloading https://minewsemi-s3-test.s3.amazonaws.com/1.png
    [00:00:10.298,309] <dbg> download_client: client_connect: Port not specified, using default: 443
    [00:00:10.298,431] <dbg> download_client: host_lookup: Failed to resolve hostname minewsemi-s3-test.s3.amazonaws.com on IPv6
    [00:00:10.369,781] <dbg> download_client: client_socket_connect: family: 1, type: 1, proto: 258
    [00:00:10.370,483] <inf> download_client: Setting up TLS credentials, sec tag count 1
    [00:00:10.370,574] <inf> download_client: Connecting to 52.217.235.201
    [00:00:10.370,605] <dbg> download_client: client_socket_connect: fd 14, addrlen 8, fam IPv4, port 443
    [00:00:12.954,345] <dbg> download_client: set_state: state = 2
    [00:00:12.954,498] <dbg> download_client: http_get_request_send: HTTP request
                                              47 45 54 20 2f 31 2e 70  6e 67 20 48 54 54 50 2f |GET /1.p ng HTTP/
                                              31 2e 31 0d 0a 48 6f 73  74 3a 20 6d 69 6e 65 77 |1.1..Hos t: minew
                                              73 65 6d 69 2d 73 33 2d  74 65 73 74 2e 73 33 2e |semi-s3- test.s3.
                                              61 6d 61 7a 6f 6e 61 77  73 2e 63 6f 6d 0d 0a 52 |amazonaw s.com..R
                                              61 6e 67 65 3a 20 62 79  74 65 73 3d 30 2d 34 30 |ange: by tes=0-40
                                              39 35 0d 0a 43 6f 6e 6e  65 63 74 69 6f 6e 3a 20 |95..Conn ection: 
                                              6b 65 65 70 2d 61 6c 69  76 65 0d 0a 0d 0a       |keep-ali ve....  
    [00:00:12.956,024] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:13.146,789] <dbg> download_client: handle_received: Read 439 bytes from socket
    [00:00:13.146,911] <dbg> download_client: http_header_parse: GET header size: 439
    --- 1 messages dropped ---
    [00:00:13.147,155] <dbg> download_client: http_header_parse: File size = 966
    [00:00:13.147,705] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:13.153,228] <dbg> download_client: handle_received: Read 966 bytes from socket
    [00:00:13.153,259] <inf> download_client: Downloaded 966/966 bytes (100%)
    [ 100% ] |==================================================| (966/966 bytes)[00:00:13.153,869] <inf> download_client: Download complete
    
    Download completed in 2856 ms @ 338 bytes per sec, total 966 bytes
    Bye
    [00:00:13.168,304] <dbg> download_client: set_state: state = 4
    [00:00:13.174,468] <dbg> download_client: set_state: state = 0
    Socket closed
    [00:00:13.174,499] <dbg> download_client: download_thread: Connection closed
    IP down
    Disconnected from network
    

     

    Kind regards,

    Håkon

  • Hi,

     

    I do not see any issues with the default link:

    *** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
    *** Using Zephyr OS v3.6.99-100befc70c74 ***
    Download client sample started
    Provisioning certificate
    Connecting to network
    [00:00:04.733,184] <inf> wifi_mgmt_ext: Connection requested
    IP Up
    Network connected
    [00:00:15.706,146] <dbg> download_client: set_state: state = 1
    [00:00:15.706,176] <inf> download_client: Downloading: https://nrfconnectsdk.s3.eu-central-1.amazonaws.com/sample-img-100kb.png [0]
    Downloading https://nrfconnectsdk.s3.eu-central-1.amazonaws.com/sample-img-100kb.png
    [00:00:15.706,573] <dbg> download_client: client_connect: Port not specified, using default: 443
    [00:00:15.706,726] <dbg> download_client: host_lookup: Failed to resolve hostname nrfconnectsdk.s3.eu-central-1.amazonaws.com on IPv6
    [00:00:15.853,240] <dbg> download_client: client_socket_connect: family: 1, type: 1, proto: 258
    [00:00:15.853,942] <inf> download_client: Setting up TLS credentials, sec tag count 1
    [00:00:15.854,034] <inf> download_client: Connecting to 52.219.47.156
    [00:00:15.854,095] <dbg> download_client: client_socket_connect: fd 14, addrlen 8, fam IPv4, port 443
    [00:00:16.678,802] <dbg> download_client: set_state: state = 2
    [00:00:16.678,955] <dbg> download_client: http_get_request_send: HTTP request
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 30 2d 34 30  39 35 0d 0a 43 6f 6e 6e |tes=0-40 95..Conn
                                              65 63 74 69 6f 6e 3a 20  6b 65 65 70 2d 61 6c 69 |ection:  keep-ali
                                              76 65 0d 0a 0d 0a                                |ve....           
    --- 1 messages dropped ---
    [00:00:16.680,450] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:16.772,094] <dbg> download_client: handle_received: Read 406 bytes from socket
    [00:00:16.772,369] <dbg> download_client: http_header_parse: GET header size: 406
    [00:00:16.772,613] <dbg> download_client: http_header_parse: File size = 102923
    [00:00:16.773,132] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:16.943,145] <dbg> download_client: handle_received: Read 4096 bytes from socket
    [00:00:16.943,145] <inf> download_client: Downloaded 4096/102923 bytes (3%)
    [   3% ] |=                                                 | (4096/102923 bytes)[00:00:16.943,908] <dbg> download_client: http_get_reqt
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 34 30 39 36  2d 38 31 39 31 0d 0a 43 |tes=4096 -8191..C
                                              6f 6e 6e 65 63 74 69 6f  6e 3a 20 6b 65 65 70 2d |onnectio n: keep-
                                              61 6c 69 76 65 0d 0a 0d  0a                      |alive... .       
    --- 1 messages dropped ---
    [00:00:16.945,434] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:17.019,317] <dbg> download_client: handle_received: Read 409 bytes from socket
    --- 13 messages dropped ---
    [00:00:17.019,439] <dbg> download_client: http_header_parse: GET header size: 409
    [00:00:17.020,111] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:17.128,387] <dbg> download_client: handle_received: Read 1529 bytes from socket
    [00:00:17.128,417] <dbg> download_client: download_thread: Receiving up to 2567 bytes at 0x2000d22d...
    [00:00:17.190,124] <dbg> download_client: handle_received: Read 2567 bytes from socket
    --- 21 messages dropped ---
    [00:00:17.190,124] <inf> download_client: Downloaded 8192/102923 bytes (7%)
    [   7% ] |===              [00:00:17.190,887] <dbg> download_client: http_get_request_send: HTTP request
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 38 31 39 32  2d 31 32 32 38 37 0d 0a |tes=8192 -12287..
                                              43 6f 6e 6e 65 63 74 69  6f 6e 3a 20 6b 65 65 70 |Connecti on: keep
                                              2d 61 6c 69 76 65 0d 0a  0d 0a                   |-alive.. ..      
    --- 52 messages dropped ---
    [00:00:17.192,382] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:17.269,165] <dbg> download_client: handle_received: Read 410 bytes from socket
    [00:00:17.269,287] <dbg> download_client: http_header_parse: GET header size: 410
       | (12288/102923 bytes)[00:00:17.445,190] <dbg> download_client: http_get_request_send: HTTP request
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 31 32 32 38  38 2d 31 36 33 38 33 0d |tes=1228 8-16383.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 1 messages dropped ---
    [00:00:17.446,685] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:17.514,923] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:17.515,045] <dbg> download_client: http_header_parse: GET header size: 411
    [00:00:17.515,808] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:17.689,453] <dbg> download_client: handle_received: Read 4096 bytes from socket
    [00:00:17.689,483] <inf> download_client: Downloaded 16384/102923 bytes (15%)
    [  15% ] |--- 2 messages dropped ---
    =======                                         | (16384/102923 bytes)[00:00:17.690,490] <dbg> download_client: http_get_request_send: t
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 31 36 33 38  34 2d 32 30 34 37 39 0d |tes=1638 4-20479.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 1 messages dropped ---
    [00:00:17.691,986] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    --- 22 messages dropped ---
    [00:00:17.773,956] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:17.774,078] <dbg> download_client: http_header_parse: GET header size: 411
    [00:00:17.774,749] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:17.941,619] <dbg> download_client: handle_received: Read 4096 bytes from socket
    [00:00:17.941,619] <inf> download_client: Downloaded 20480/102923 bytes (19%)
    [  19% ] |=--- 12 messages dropped ---
    =====                [00:00:18.019,683] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:18.130,096] <dbg> download_client: handle_received: Read 1526 bytes from socket
    [00:00:18.130,096] <dbg> download_client: download_thread: Receiving up to 2570 bytes at 0x2000d22a...
    [00:00:18.198,394] <dbg> download_client: handle_received: Read 2570 bytes from socket
    [00:00:18.198,425] <inf> download_client: Downloaded 24576/102923 bytes (23%)
    [  23% ] |===========                                       | (24576/102923 bytes)[00:00:18.199,279] <dbg> download_client: http_get_ret
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 32 34 35 37  36 2d 32 38 36 37 31 0d |tes=2457 6-28671.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 1 messages dropped ---
    [00:00:18.200,775] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:18.278,656] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:18.278,778] <dbg> download_client: http_header_parse: GET header size: 411
    [00:00:18.279,510] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:18.281,585] <dbg> download_client: handle_received: Read 502 bytes from socket
    [00:00:18.281,616] <dbg> download_client: download_thread: Receiving up to 3594 bytes at 0x2000ce2a...
    [00:00:18.483,978] <dbg> download_client: handle_received: Read 3594 bytes from socket
    --- 9 messages dropped ---
    [00:00:18.484,008] <inf> download_client: Downloaded 28672/102923 bytes (27%)
    [  27% ] |=============                            | (28672/102923 bytes)[00:00:18.484,771] <dbg> download_client: http_get_request_sent
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 32 38 36 37  32 2d 33 32 37 36 37 0d |tes=2867 2-32767.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 1 messages dropped ---
    [00:00:18.486,267] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:18.564,117] <dbg> download_client: handle_received: Read 411 bytes from socket
    --- 15 messages dropped ---
    [00:00:18.564,239] <dbg> download_client: http_header_parse: GET header size: 411
    [00:00:18.564,910] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:18.742,065] <dbg> download_client: handle_received: Read 4096 bytes from socket
    [00:00:18.742,095] <inf> download_client: Downloaded 32768/102923 bytes (31%)
    [  31% ] |=======--- 9 messages dropped ---
    ======               [00:00:18.744,384] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:18.828,765] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:18.828,887] <dbg> download_client: http_header_parse: GET header size: 411
    --- 57 messages dropped ---
    [00:00:19.019,958] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:19.091,033] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:19.091,156] <dbg> download_client: http_header_parse: GET header size: 411
    --- 6 messages dropped ---
    ==================                               | (40960/102923 bytes)[00:00:19.276,489] <dbg> download_client: http_get_request_send:t
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 34 30 39 36  30 2d 34 35 30 35 35 0d |tes=4096 0-45055.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 1 messages dropped ---
    [00:00:19.279,022] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:19.353,912] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:19.354,187] <dbg> download_client: http_header_parse: GET header size: 411
    [00:00:19.354,888] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:19.537,017] <dbg> download_client: handle_received: Read 4096 bytes from socket
    [00:00:19.537,048] <inf> download_client: Downloaded 45056/102923 bytes (43%)
    [  43% ] |=====================                             | (45056/102923 bytes)[00:00:19.537,811] <dbg> download_client: http_get_ret
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 34 35 30 35  36 2d 34 39 31 35 31 0d |tes=4505 6-49151.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 1 messages dropped ---
    [00:00:19.539,306] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:19.613,525] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:19.613,647] <dbg> download_client: http_header_parse: GET header size: 411
    [00:00:19.614,288] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    --- 9 messages dropped ---
    [00:00:19.793,914] <dbg> download_client: handle_received: Read 4096 bytes from socket
    [00:00:19.793,914] <inf> download_client: Downloaded 49152/102923 bytes (47%)
    [  47% ] |==============--- 12 messages dropped ---
    =                    [00:00:19.878,204] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:20.051,788] <dbg> download_client: handle_received: Read 4096 bytes from socket
    [00:00:20.051,788] <inf> download_client: Downloaded 53248/102923 bytes (51%)
    [  51% ] |=========================                         | (53248/102923 bytes)[00:00:20.052,612] <dbg> download_client: http_get_ret
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 35 33 32 34  38 2d 35 37 33 34 33 0d |tes=5324 8-57343.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 1 messages dropped ---
    [00:00:20.054,107] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:20.126,342] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:20.126,464] <dbg> download_client: http_header_parse: GET header size: 411
    [00:00:20.127,197] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:20.293,792] <dbg> download_client: handle_received: Read 4096 bytes from socket
    --- 9 messages dropped ---
    [00:00:20.293,792] <inf> download_client: Downloaded 57344/102923 bytes (55%)
    [  55% ] |==================    --- 5 messages dropped ---
                       | (57344/102923 bytes)[00:00:20.376,007] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x200.
    [00:00:20.542,236] <dbg> download_client: handle_received: Read 4096 bytes from socket
    [00:00:20.542,236] <inf> download_client: Downloaded 61440/102923 bytes (59%)
    [  59% ] |========================--- 6 messages dropped ---
    =====                [00:00:20.543,029] <dbg> download_client: http_get_request_send: HTTP request
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 36 31 34 34  30 2d 36 35 35 33 35 0d |tes=6144 0-65535.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 20 messages dropped ---
    [00:00:20.544,525] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:20.623,046] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:20.623,168] <dbg> download_client: http_header_parse: GET header size: 411
    ===========--- 8 messages dropped ---
    =====                [00:00:20.873,748] <dbg> download_client: http_header_parse: HTTP response
                                              48 54 54 50 2f 31 2e 31  20 32 30 36 20 50 61 72 |HTTP/1.1  206 Par
                                              74 69 61 6c 20 43 6f 6e  74 65 6e 74 0d 0a 78 2d |tial Con tent..x-
                                              61 6d 7a 2d 69 64 2d 32  3a 20 39 78 75 51 50 75 |amz-id-2 : 9xuQPu
                                              76 43 38 69 52 50 6e 38  56 4f 54 36 49 79 2f 62 |vC8iRPn8 VOT6Iy/b
                                              55 4b 79 7a 38 33 46 54  4a 79 4f 56 59 53 51 6b |UKyz83FT JyOVYSQk
                                              71 43 41 70 75 71 54 34  70 34 36 34 35 75 36 34 |qCApuqT4 p4645u64
                                              58 43 65 39 72 2b 69 49  6a 44 47 51 55 72 34 57 |XCe9r+iI jDGQUr4W
                                              44 45 6f 79 51 3d 0d 0a  78 2d 61 6d 7a 2d 72 65 |DEoyQ=.. x-amz-re
                                              71 75 65 73 74 2d 69 64  3a 20 34 46 30 53 33 56 |quest-id : 4F0S3V
                                              47 31 51 42 50 5a 53 4d  46 32 0d 0a 44 61 74 65 |G1QBPZSM F2..Date
                                              3a 20 4d 6f 6e 2c 20 30  32 20 53 65 70 20 32 30 |: Mon, 0 2 Sep 20
                                              32 34 20 30 37 3a 35 32  3a 35 34 20 47 4d 54 0d |24 07:52 :54 GMT.
                                              0a 4c 61 73 74 2d 4d 6f  64 69 66 69 65 64 3a 20 |.Last-Mo dified: 
                                              54 68 75 2c 20 31 30 20  4d 61 72 20 32 30 32 32 |Thu, 10  Mar 2022
                                              20 31 36 3a 30 30 3a 34  34 20 47 4d 54 0d 0a 45 | 16:00:4 4 GMT..E
                                              54 61 67 3a 20 22 33 33  61 30 35 36 33 61 62 31 |Tag: "33 a0563ab1
                                              32 64 33 35 33 39 63 61  35 36 63 36 65 32 39 30 |2d3539ca 56c6e290
                                              61 30 38 30 62 64 22 0d  0a 41 63 63 65 70 74 2d |a080bd". .Accept-
                                              52 61 6e 67 65 73 3a 20  62 79 74 65 73 0d 0a 43 |Ranges:  bytes..C
                                              6f 6e 74 65 6e 74 2d 52  61 6e 67 65 3a 20 62 79 |ontent-R ange: by
                                              74 65 73 20 36 35 35 33  36 2d 36 39 36 33 31 2f |tes 6553 6-69631/
                                              31 30 32 39 32 33 0d 0a  43 6f 6e 74 65 6e 74 2d |102923.. Content-
                                              54 79 70 65 3a 20 69 6d  61 67 65 2f 70 6e 67 0d |Type: im age/png.
                                              0a 53 65 72 76 65 72 3a  20 41 6d 61 7a 6f 6e 53 |.Server:  AmazonS
                                              33 0d 0a 43 6f 6e 74 65  6e 74 2d 4c 65 6e 67 74 |3..Conte nt-Lengt
                                              68 3a 20 34 30 39 36 0d  0a 0d 0a                |h: 4096. ...     
    --- 52 messages dropped ---
    [00:00:20.874,359] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
     | (69632/102923 bytes)[00:00:21.041,717] <dbg> download_client: http_get_request_send: HTTP request
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 36 39 36 33  32 2d 37 33 37 32 37 0d |tes=6963 2-73727.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 45 messages dropped ---
    [00:00:21.043,212] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:21.116,333] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:21.116,455] <dbg> download_client: http_header_parse: GET header size: 411
              | (73728/102923 bytes)[00:00:21.287,139] <dbg> download_client: http_get_request_send: HTTP request
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 37 33 37 32  38 2d 37 37 38 32 33 0d |tes=7372 8-77823.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 2 messages dropped ---
    [00:00:21.288,635] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:21.359,985] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:21.360,107] <dbg> download_client: http_header_parse: GET header size: 411
    [00:00:21.532,623] <dbg> download_client: handle_received: Read 4096 bytes from socket
    [00:00:21.532,653] <inf> download_client: Downloaded 77824/102923 bytes (75%)
    [  75% ] |=====================================             | (77824/102923 bytes)[00:00:21.533,630] <dbg> download_client: http_get_ret
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 37 37 38 32  34 2d 38 31 39 31 39 0d |tes=7782 4-81919.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 2 messages dropped ---
    [00:00:21.535,278] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:21.613,922] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:21.614,044] <dbg> download_client: http_header_parse: GET header size: 411
    [00:00:21.616,790] <dbg> download_client: handle_received: Read 503 bytes from socket
    [00:00:21.616,821] <dbg> download_client: download_thread: Receiving up to 3593 bytes at 0x2000ce2b...
    [00:00:21.856,475] <dbg> download_client: handle_received: Read 3593 bytes from socket
    --- 24 messages dropped ---
    [00:00:21.856,475] <inf> download_client: Downloaded 81920/102923 bytes (79%)
    [  79% ] |=================         | (81920/102923 bytes)[00:00:21.857,238] <dbg> download_client: http_get_request_send: HTTP request
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 38 31 39 32  30 2d 38 36 30 31 35 0d |tes=8192 0-86015.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 1 messages dropped ---
    [00:00:21.858,734] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:21.941,589] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:21.941,711] <dbg> download_client: http_header_parse: GET header size: 411
    [00:00:21.942,382] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    --- 35 messages dropped ---
    [00:00:22.116,699] <dbg> download_client: handle_received: Read 4096 bytes from socket
    [00:00:22.116,729] <inf> download_client: Downloaded 86016/102923 bytes (83%)
    [  83% ] |===========    | (86016/102923 bytes)[00:00:22.117,614] <dbg> download_client: http_get_request_send: HTTP request
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 38 36 30 31  36 2d 39 30 31 31 31 0d |tes=8601 6-90111.
                                              0a 43 6f 6e 6e 65 63 74  69 6f 6e 3a 20 6b 65 65 |.Connect ion: kee
                                              70 2d 61 6c 69 76 65 0d  0a 0d 0a                |p-alive. ...     
    --- 2 messages dropped ---
    [00:00:22.119,110] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:22.196,166] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:22.196,289] <dbg> download_client: http_header_parse: GET header size: 411
    [00:00:22.370,117] <dbg> download_client: handle_received: Read 3575 bytes from socket
    [00:00:22.370,147] <dbg> download_client: download_thread: Receiving up to 521 bytes at 0x2000da2b...
    [00:00:22.372,314] <dbg> download_client: handle_received: Read 521 bytes from socket
    --- 34 messages dropped ---
    [00:00:22.372,314] <inf> download_client: Downloaded 90112/102923 bytes (87%)
    [  87% ] |==================[00:00:22.374,755] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:22.464,019] <dbg> download_client: handle_received: Read 411 bytes from socket
    [00:00:22.464,141] <dbg> download_client: http_header_parse: GET header size: 411
    --- 1 messages dropped ---
    [00:00:22.464,813] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:22.573,394] <dbg> download_client: handle_received: Read 1527 bytes from socket
    --- 8 messages dropped ---
    [00:00:22.573,425] <dbg> download_client: download_thread: Receiving up to 2569 bytes at 0x2000d22b...
    [00:00:22.644,012] <dbg> download_client: handle_received: Read 2569 bytes from socket
    [00:00:22.644,042] <inf> download_client: Downloaded 94208/102923 bytes (91%)
    [  91% ] |==============--- 13 messages dropped ---
    =====================[00:00:22.727,539] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:22.892,272] <dbg> download_client: handle_received: Read 4096 bytes from socket
    [00:00:22.892,272] <inf> download_client: Downloaded 98304/102923 bytes (95%)
    [  95% ] |========================--- 7 messages dropped ---
    =====================[00:00:22.894,592] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:22.970,611] <dbg> download_client: handle_received: Read 412 bytes from socket
    [00:00:22.970,733] <dbg> download_client: http_header_parse: GET header size: 412
    --- 52 messages dropped ---
    == | (102400/102923 bytes)[00:00:23.141,906] <dbg> download_client: http_get_request_send: HTTP request
                                              47 45 54 20 2f 73 61 6d  70 6c 65 2d 69 6d 67 2d |GET /sam ple-img-
                                              31 30 30 6b 62 2e 70 6e  67 20 48 54 54 50 2f 31 |100kb.pn g HTTP/1
                                              2e 31 0d 0a 48 6f 73 74  3a 20 6e 72 66 63 6f 6e |.1..Host : nrfcon
                                              6e 65 63 74 73 64 6b 2e  73 33 2e 65 75 2d 63 65 |nectsdk. s3.eu-ce
                                              6e 74 72 61 6c 2d 31 2e  61 6d 61 7a 6f 6e 61 77 |ntral-1. amazonaw
                                              73 2e 63 6f 6d 0d 0a 52  61 6e 67 65 3a 20 62 79 |s.com..R ange: by
                                              74 65 73 3d 31 30 32 34  30 30 2d 31 30 32 39 32 |tes=1024 00-10292
                                              32 0d 0a 43 6f 6e 6e 65  63 74 69 6f 6e 3a 20 6b |2..Conne ction: k
                                              65 65 70 2d 61 6c 69 76  65 0d 0a 0d 0a          |eep-aliv e....   
    [00:00:23.143,402] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:23.225,616] <dbg> download_client: handle_received: Read 412 bytes from socket
    [00:00:23.225,738] <dbg> download_client: http_header_parse: GET header size: 412
    --- 1 messages dropped ---
    [00:00:23.226,409] <dbg> download_client: download_thread: Receiving up to 4096 bytes at 0x2000cc34...
    [00:00:23.228,546] <dbg> download_client: handle_received: Read 523 bytes from socket
    [00:00:23.228,576] <inf> download_client: Downloaded 102923/102923 bytes (100%)
    [ 100% ] |==================================================| (102923/102923 bytes)[00:00:23.229,370] <inf> download_client: Download ce
    
    Download completed in 7523 ms @ 13681 bytes per sec, total 102923 bytes
    Bye
    [00:00:23.241,699] <dbg> download_client: set_state: state = 4
    [00:00:23.247,985] <dbg> download_client: set_state: state = 0
    Socket closed
    [00:00:23.248,046] <dbg> download_client: download_thread: Connection closed
    IP down
    Disconnected from network

     

    Kind regards,

    Håkon

Related