lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Download a file for firmware upgrade


From: Ajay Bhargav (SiWi)
Subject: Re: [lwip-users] Download a file for firmware upgrade
Date: Mon, 21 May 2018 17:09:21 +0530

HTTP is easier to do.

 

  1. Open TCP Socket with ip and 80 port (or any other where HTTP service is running)
  2. Send a Get request to server
    GET /filename.ext HTTP/1.0<cr><lf>
    Host: hostname<cr><lf>
    <cr><lf>
    Hostname is required incase HTTP server has multiple virtual hosts.
  3. In response you will get HTTP headers and after then data.

You can try all of above using a simple telnet connection from console to server for testing purpose.

 

Regards,

Ajay Bhargav

 

From: Giuseppe Modugno
Sent: Monday, May 21, 2018 5:02 PM
To: address@hidden
Subject: [lwip-users] Download a file for firmware upgrade

 

I have a device running lwip stack and httpd server. The device has an

external 2MB SPI Flash memory. The CPU is a microcontroller with 512kB

internal Flash.

 

I'd like to upgrade the firmware (the internal Flash memory) by download

the new binary from Internet. The user can check the presence of a new

firmware version through the web pages answered from httpd.

 

When the user activates the remote upgrade, the device should download

the binary file from a server and save it to the external Flash memory.

After a reboot, the bootloader detects the new firmware on the external

memory and copy it to the internal Flash memory.

 

Now I don't know how to download a file from Internet. FTP client? HTTP

client? Any other protocol? I'd like to use a standard server (FTP,

HTTP, ...), anyway this isn't a must.

 

Please, give me a suggestion. Thank you.

 

 

 

_______________________________________________

lwip-users mailing list

address@hidden

https://lists.nongnu.org/mailman/listinfo/lwip-users

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]