Re: [lwip-users] http server problems/bug

2016-08-07 Thread lampo
right, but one thing I am pretty sure, all of the communication between PC browser and our MCU , processed in one single thread, ie tcpip_thread. 1. We got the web server original code from STM32 provided example "LwIP_HTTP_Server_Raw" , but also mixed with 1.4.1 contrib, which are quite the

Re: [lwip-users] Large File transfer-- FTP lwIP 1.4.1

2016-08-07 Thread A480G
Hi Noam, Thanks for your reply. I think I know what your mean. the Following code is doing the the same as you said: *static err_t ftpd_data_write(struct tcp_pcb *pcb, const void* ptr, u16_t *length, u8_t apiflags) { int vurti; u16_t len; err_t err; LWIP_ASSERT("

Re: [lwip-users] Large File transfer-- FTP lwIP 1.4.1

2016-08-07 Thread A480G
Hi Sergio, Thank you for your advice, but you are mentioning that tcp_send as a call back will need to be used in the main also tcp_poll ok. *void ftpd_init(void) { struct tcp_pcb *pcb; pcb = tcp_new(); tcp_bind(pcb, IP_ADDR_ANY, 21); pcb = tcp_listen(pcb);

Re: [lwip-users] Connection freeze after 29200 Bytes

2016-08-07 Thread Norbert Kleber
Hi Noam, if the connection is dropped midway the controller will not leave the bootloader. The controller boards will be connected to a switch and if the firmware should be updated a laptop with a c++ program that manages the transmission of the image. The C++ program will warn the service t

Re: [lwip-users] Connection freeze after 29200 Bytes

2016-08-07 Thread Noam Weissman
Hi Norbert, I am sorry but I did not understood that you are trying to burn the internal FLASH. We normally use a small extern SPI FLASH so we first transfer the binary to the external FLASH and only after we have the file and that it is OK (CRC OK) we delete the CPU application area and burn

Re: [lwip-users] Large File transfer-- FTP lwIP 1.4.1

2016-08-07 Thread Noam Weissman
Hi, I did not completely understood your code but I can add some suggestions. First you need to somehow create a mechanism that sends data with whatever RAM you have. Sometimes tcp_sndbuf will return a smaller buffer then expected or tcp_write can fail because you try to send a too large buffer

Re: [lwip-users] Connection freeze after 29200 Bytes

2016-08-07 Thread goldsimon
Please use 2.0.0 (beta 2) when switching versions. 1.4.1 is four years old and you'd risk having to change once again in some weeks... Simon Gesendet mit AquaMail für Android http://www.aqua-mail.com Am 7. August 2016 8:58:35 vorm. schrieb Norbert Kleber : Hi everyone, first of all i'l