Re: [lwip-users] lwip on pico_w

2023-05-02 Thread Adam Baron
rked on for months. First I tried enabling > debug for lwip to the point that the debug from running the mqtt app. Let > me know if I can provide additional information. > > This makes a $6 device very powerful. > > > > > > > > Edward Vidal Jr. e-mail devel...@sbcg

Re: [lwip-users] Out of memory in PCP_PCB pool after 2^32 milliseconds

2021-05-30 Thread Adam Baron
36469&i=0>> napsal: > >> Increase the counter to a uint64_t. >> >> You can also start the counter at something other than zero to prove root >> cause faster. >> >> Trampas >> >> On Fri, May 28, 2021 at 7:08 AM Adam Baron <[hidden email]

Re: [lwip-users] Out of memory in PCP_PCB pool after 2^32 milliseconds

2021-05-30 Thread Adam Baron
re other >> developers do not break the code. If speed becomes an issue I can optimize >> the code to use the fixed point math tricks, but only as a last resort. >> >> Note I know many developers that refuse to use unsigned variables due to >> math issues like above. S

Re: [lwip-users] Out of memory in PCP_PCB pool after 2^32 milliseconds

2021-05-28 Thread Adam Baron
ri, May 28, 2021 at 7:08 AM Adam Baron wrote: > >> Czesc Tomek :), >> >> I'll try to add it. Thanks. >> >> However, I feel like it is rather related to the problem of overflowing a >> uint32 counter of some kind. Since the TCP_PCBs are not freed after 2^32

Re: [lwip-users] Out of memory in PCP_PCB pool after 2^32 milliseconds

2021-05-28 Thread Adam Baron
his > https://lists.nongnu.org/archive/html/lwip-devel/2020-12/msg00014.html > In my case it solved the problem of the web server dying after a few days > > > pt., 28 maj 2021 o 08:58 Adam Baron napisał(a): > > > > Hello all, > > > > I'm having a small ST

Re: [lwip-users] Fwd: Out of memory in PCP_PCB pool after 2^32 milliseconds

2021-05-28 Thread Adam Baron
conds uptime. I > tried to keep OpenOCD connected to start to peek in, but yet I did not > manage to keep the openOCD running for so long without dropping the > connection. > > Does anyone have any ideas please? > > Thanks in advance, > -- > 731435556 > Adam Baron >

[lwip-users] Out of memory in PCP_PCB pool after 2^32 milliseconds

2021-05-27 Thread Adam Baron
ng without dropping the connection. Does anyone have any ideas please? Thanks in advance, -- 731435556 Adam Baron ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] REST API on microcontroller with lwIP

2021-02-01 Thread Adam Baron
t.savannah.nongnu.org/cgit/lwip/lwip-contrib.git/tree/examples/httpd/genfiles_example/genfiles_example.c>? > But, how can I use this code with CGI reply? > > Il giorno 1 feb 2021, alle ore 18:02, Adam Baron ha > scritto: > > Hello, > there is example already provided on how

Re: [lwip-users] REST API on microcontroller with lwIP

2021-02-01 Thread Adam Baron
Hello, there is example already provided on how to create a file at runtime. It works well, I have httpd basically generating all my html on the fly. On Mon, Feb 1, 2021, 5:49 PM Marco Giammarini wrote: > Dear all, > I am using lwIP over K64 (NXP microcontroller) and I would add REST API to > my

Re: [lwip-users] mDNS stops responding after some time

2020-05-31 Thread Adam Baron
___ > lwip-users mailing list > lwip-users@nongnu.org > https://lists.nongnu.org/mailman/listinfo/lwip-users -- 731435556 Adam Baron ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Random LWIP slow downs and hang up

2020-03-26 Thread Adam Baron
I have trouble >> looking for the ham in the spam. >> >> From the wireshark it appears that lwip is lost or something and ACK'ing >> stuff out of order. >> >> The LWIP version is STABLE-2.1.2 >> >> Trampas >> >> __

Re: [lwip-users] httpd POST gets stuck after few requests

2020-02-04 Thread Adam Baron
; > pbuf_free(p); > >return ERR_OK; > >} > > Ah, yes. And the problem still is that the example does not do that. I'll > file a bug... > > Regards, > Simon > > ___ > lwip-users mailing list > lwip-users@non

Re: [lwip-users] httpd POST gets stuck after few requests

2020-02-04 Thread Adam Baron
ve to find out how to free pbuf. út 4. 2. 2020 v 17:46 odesílatel Adam Baron napsal: > I followed the contrib-2.1.0/examples/httpd/post_example/post_example.c, I > did not notice any free of pbuf there. > > I guess if application is responsible for pbuf free then only > htt

Re: [lwip-users] httpd POST gets stuck after few requests

2020-02-04 Thread Adam Baron
goldsimon napsal: > > > Adam Baron wrote: > >I did search of POST related problems sorted by date. I will do so > >again. > > > >PBUF_POOL_SIZE is affecting number of POST I can do directly. That is, > >I > >can do as many posts as PBUF_POOL_SIZE is defi

Re: [lwip-users] httpd POST gets stuck after few requests

2020-02-04 Thread Adam Baron
er=2307>I hope it is not something in STM32 itself. út 4. 2. 2020 v 17:18 odesílatel goldsimon napsal: > > > Adam Baron wrote: > >OK, so my lwip gets stuck exactly after 16 POSTs. > > > >Maybe the POST is not freeing PCB, or other structures properly. > > I r

Re: [lwip-users] httpd POST gets stuck after few requests

2020-02-04 Thread Adam Baron
MEMP_NUM_TCP_PCB_LISTEN 10 #define MEMP_NUM_PBUF 20 #define MEMP_NUM_RAW_PCB 6 // Maximum segment size #define TCP_MSS 1024 // Number of rx pbufs to enqueue to parse an incoming request (up to the first newline) #define LWIP_HTTPD_REQ_QUEUELEN 7 Adam út 4. 2. 2020 v 16:29 odesílatel Adam Baron napsal

Re: [lwip-users] Post messages with the httpd.c example

2020-02-04 Thread Adam Baron
fo/lwip-users > > ___ > lwip-users mailing list > lwip-users@nongnu.org > https://lists.nongnu.org/mailman/listinfo/lwip-users -- 731435556 Adam Baron ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] httpd POST gets stuck after few requests

2020-02-04 Thread Adam Baron
, Feb 4, 2020 at 9:08 AM Adam Baron wrote: > >> I'm bit new to lwip, and I'm using it on STM32407 with ChibiOS which is >> RTOS. I'm using current stable version of lwip and bindings form ChibiOS to >> run it as threads. My static and also dynamically generated

[lwip-users] httpd POST gets stuck after few requests

2020-02-04 Thread Adam Baron
I'm bit new to lwip, and I'm using it on STM32407 with ChibiOS which is RTOS. I'm using current stable version of lwip and bindings form ChibiOS to run it as threads. My static and also dynamically generated html pages are served well and without any issues. But I have problem with POST. I use the