Re: [lwip-users] lwIP with mbedTLS

2019-01-27 Thread tomek wilkxt
Hi Which CPU do you use and how much free RAM do you have? Ethernet frame size is 1514, how is your PBUF_POOL_BUFSIZE size? niedz., 27 sty 2019 o 20:40 Paweł napisał(a): > Hi Jan, > I encountered memory problems in the beginning (cpu hang - insufficient > heap memory) but after little tuning the

Re: [lwip-users] lwIP with mbedTLS

2019-01-28 Thread tomek wilkxt
1. Check whether you have free these 20kB heaps and even try to increase it for testing. 2. Change the authentication type from RSA to ECDSA, now you are using it TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, try change to TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 or similar. > pon., 28 sty 2019 o

Re: [lwip-users] lwIP with mbedTLS

2019-01-28 Thread tomek wilkxt
t;> >> Well, this one I've chosen after observing transmission with another >> MQTT client over TLS. In the Client Hello message I've seen many cipher >> methods and in Server Hello this one was chosen. I had problems when I had >> different ones so I decided to selec

Re: [lwip-users] Debugging a hang in an lwIP-based application

2019-02-26 Thread tomek wilkxt
> While we're at it, I have one more question. After the fix described > above the application is running much much better and the connection > looks a lot more stable/reliable. But I do still see some rare > occurrences of TCP retransmissions and duplicated ACKs in Wireshark > (like maybe once/twi

Re: [lwip-users] Ethernet bootloader with lwip

2019-04-05 Thread tomek wilkxt
Hi Use tftp to bootloader, lwip has examples. 5 kwi 2019 11:52 "Pablo Ledergerber" < pablo.lederger...@matrix-elektronik.com> napisał(a): Hi everyone, I'm looking for an ethernet bootloader for xmc cortex m4 microcontroller from Infineon. Can anyone recommend me any bootloader? Or is there any b

Re: [lwip-users] LWIP altcp_mbedtls webserver performance issue

2019-04-18 Thread tomek wilkxt
Hi You may use https://www.microchip.com/wwwproducts/en/atecc508a to ECDHA czw., 18 kwi 2019 o 10:04 Amr Elsayed napisał(a): > Dear Simon, > Thank you for the response, Can you share with me the chip name for the > RSA ? I have implemented the cryptography hardware accelerators on mbedtls > lib

[lwip-users] LWIP http keep_alive problem

2019-04-18 Thread tomek wilkxt
Hi I use from 3 years Lwip and http server and it works well. I have some xml file on serwer with browser GET by js script. Now I want to add TLS to http and I use mbedTLS library. The problem is that every download of an xml file is a new http(tcp) connection and that's what the new TLS negotiatio

Re: [lwip-users] alttcp_tls_mbedtls problems setup a server, "unexpected message"

2019-06-14 Thread tomek wilkxt
Hi What microcontroler you use? czw., 13 cze 2019, 19:04 użytkownik KammutierSpule napisał: > I'm using lwIP 2.1.2 trying to setup a https server. > I'm getting an "unexpected message" fail error from the TLS connection, > I suspect that there is an ACK that appears out of order, > > I left here

Re: [lwip-users] alttcp_tls_mbedtls problems setup a server, "unexpected message"

2019-06-14 Thread tomek wilkxt
e is also some difference when running in debug (slow) or in release > (faster) > > Could lwIP detect duplicated transmissions and discard it? > > Mario > > > From: lwip-users on > behalf of tomek wilkxt > Sent: 14 June 2019 09:06 >

Re: [lwip-users] http web server migrate from lwip 1.4.1 to lwip 2.0.2

2019-07-18 Thread tomek wilkxt
Hi Use current version http serwer czw., 18 lip 2019, 15:48 użytkownik Urvi napisał: > Hi All, > > I have implemented http web server application using lwip 1.4.1 and it's > working fine. > Now I want to upgrade it to lwip 2.0.2. It is not working and it goes into > loader_exit i.e. fault ISR of

[lwip-users] HTTP keep alive SSI

2019-09-06 Thread tomek wilkxt
Hi I read this form "httpd_opts.h" file : " * A downside of the current SSI implementation is that persistent connections * don't work, as the file length is not known in advance (and httpd currently * relies on the Content-Length header for persistent connections). * Do you have a way to solve

Re: [lwip-users] HTTP keep alive SSI

2019-09-06 Thread tomek wilkxt
> Hi Tomek, > > are you aware of email threads and that you just hijacked another thread? > Never use the "reply" feature unless actually responding to a mail! > ok, my mistake > "tomek wilkxt" wrote: > > Hi > > I read this form "htt

Re: [lwip-users] HTTP keep alive SSI

2019-09-06 Thread tomek wilkxt
> > You could use a form of HTTP chunked encoding, > > > > > > You could explain more precisely ? > > Not in detail, that would get too long here. Just google for "http > chunked encoding". Basically, you don't send a content length for the > whole response in advance, but you encode the conten

[lwip-users] makefsdata bug?

2019-09-09 Thread tomek wilkxt
Hi I want to generate fsdata.c without headers . I compilet makefsdata.c and run with -e. fsdata.c is generated but struct_file is with flags=0. When I use: #define LWIP_HTTPD_DYNAMIC_HEADERS 1 and #define LWIP_HTTPD_SUPPORT_11_KEEPALIVE 1 in function(file httpd.c) static void get_http_content_

Re: [lwip-users] POST issues with different browsers

2019-09-17 Thread tomek wilkxt
Hi I had a similar problem with GET, OK in firefox but not in chrome anymore. This was due to the fact that chromium immediately made two parallel queries when establishing the connection. My STM32 have smal RAM and was unable to handle it. Helped decres max content len to 3072 from 8192 #define M

Re: [lwip-users] Two ethernet port with one mac address

2019-09-17 Thread tomek wilkxt
Hi I'm trying to make STM32F407VET6 work with KSZ8863 but no hope. I even can > not do a simple ping :(. > Could you show me how to connect STM32 <=> KSZ? It make me so confused. I > have a lot questions. > Which mode I shoud use between STM32 MAC and KSZ PHY? RMII or MII. > RMII use less pin, b

Re: [lwip-users] Status of snmp v3

2019-09-27 Thread tomek wilkxt
Hi A few days ago I started snmpv3 from this example and is work fine. Only i have my private mib file. czw., 26 wrz 2019 o 21:07 Dirk Ziegelmeier napisał(a): > > sorry, I don't have an idea at the moment. I only tested with SnmpB and that > worked well. > > Ciao > Dirk > > > On Thu, Sep 26, 201

Re: [lwip-users] Status of snmp v3

2019-09-27 Thread tomek wilkxt
> what is your target platform? first STM32F107 but now GD32f107 is most the same but has more RAM (96KB) and speed is 108Mhz. LWIP current with repo mbedtls-2.11.0. NO SYS. > > From: lwip-users on behalf of > tomek wilkxt > Sent: 27 Se

[lwip-users] https post_auto_wnd not work

2019-10-22 Thread tomek wilkxt
Hi I have set: #define LWIP_HTTPD_POST_MANUAL_WND 1 In normal http: if *post_auto_wnd=1 its work ok, i can read large file. if *post_auto_wnd=0, not work (I see TCP ZeroWindow flags). When i run https it not work and It doesn't matter if *post_auto_wnd=0 or *post_auto_wnd=1. In wireshark i see

Re: [lwip-users] https post_auto_wnd not work

2019-10-23 Thread tomek wilkxt
śr., 23 paź 2019 o 12:06 Simon Goldschmidt napisał(a): > > "tomek wilkxt" wrote: > > > > #define LWIP_HTTPD_POST_MANUAL_WND 1 > > > > In normal http: > > > > if *post_auto_wnd=1 its work ok, i can read large file. > > >

Re: [lwip-users] https post_auto_wnd not work

2019-10-23 Thread tomek wilkxt
śr., 23 paź 2019 o 12:06 Simon Goldschmidt napisał(a): > > "tomek wilkxt" wrote: > > > > #define LWIP_HTTPD_POST_MANUAL_WND 1 > > > > In normal http: > > > > if *post_auto_wnd=1 its work ok, i can read large file. > > >

Re: [lwip-users] https post_auto_wnd not work

2019-10-24 Thread tomek wilkxt
Did anyone have a problem or could check how the https(mbedtls) server works when receiving data volumes larger than TCP_WND? >I noticed that this is not a POST MANUAL WND problem but a general >problem with receiving more data (both GET and POST). >As I increased TCP WND from >#define TCP_WND (2

Re: [lwip-users] https post_auto_wnd not work

2019-10-25 Thread tomek wilkxt
> I'm running a https server via altcp_tls_mbedtls > I'm new to this too so not sure how can I debug it for you... Send GET or POST from for example; curl -q -X POST --data-binary "@test.txt" -k https://192.168.1.100 when test.txt file has more data than your TCP_WND > but.. I guess it is work

Re: [lwip-users] HTTPS support in lwip

2019-11-22 Thread tomek wilkxt
Hi I use mbedtls with LWIP but without FreeRTOS. I used GD32f107 with 96KB RAM, flash used by mbedtls is about 60KB. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] cannot establish connection if vj.c is optimized with -O2 option

2019-12-11 Thread tomek wilkxt
Hi Propably you have some delay time in connection function, when you turn on optimization, this run faster śr., 11 gru 2019 o 17:36 mav napisał(a): > > Hi, all! > > I have a problem with lwip 2.0.3. I am switching on optimization of whole > project to gcc -O2 option and I am getting into connect

Re: [lwip-users] mbedtls

2020-02-19 Thread tomek wilkxt
What processor do you have, do you have enough RAM? How do you turn off DEBUG problem occurs? When the browser downloads each file, a new connection is made, which consumes RAM. Process httpd for a permanent connection which is only one handshake. wt., 18 lut 2020 o 21:48 Trampas Stern napisał(a)