Re: [lwip-users] NETIF_DEBUG vs NETIF_DEBUGF

2024-06-11 Thread Adam Recksiedler
Thanks. That helps:) On Mon, Jun 10, 2024, 11:28 PM Billy Bednar via lwip-users < lwip-users@nongnu.org> wrote: > I'm developing an application in Vitis 2022.2 that uses lwip211_v1_8 and >> targets a Zynq US MPSOC+. >> >> I turned on lwip_debug and I started getting an error telling me that >>

[lwip-users] NETIF_DEBUG vs NETIF_DEBUGF

2024-06-06 Thread Adam Recksiedler
Hi, I'm developing an application in Vitis 2022.2 that uses lwip211_v1_8 and targets a Zynq US MPSOC+. I turned on lwip_debug and I started getting an error telling me that NETIF_DEBUGF is not defined. I couldn't find NETIF_DEBUGF anywhere so I renamed NETIF_DEBUG in lwipopts.h to NETIF_DEBUGF.

Re: [lwip-users] lwip on pico_w

2023-05-02 Thread Adam Baron
Hello, I'm just a user, but I believe the core locking has to be done on the port level. I did put it there in my case. Then assertion of is core locked will tell you exactly what MQTT client functions need core to be locked. Adam ne 30. 4. 2023 v 11:55 odesílatel Christoph M. Wintersteiger

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

2021-05-31 Thread Adam Baron
I will prepare patches and try to post to ChibiOS. Thank you all, Adam po 31. 5. 2021 v 6:39 odesílatel Matthias Paul napsal: > Hello Adam, > > LWIP uses the TIME_LESS_THAN macro to handle integer overflows. Please > have a look at the usage in *core/timeouts.c* in *sys_check_timeouts()

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

2021-05-31 Thread Adam Baron
. Adam pá 28. 5. 2021 v 22:24 odesílatel Trampas Stern napsal: > As far as the ChibiOs time issues I have a simple rule: > > *On my embedded systems every line of code I put into the project becomes > my problem! * > > That is if I use LWIP and it has a bug, cus

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

2021-05-28 Thread Adam Baron
: 2000C5DC abs_time=429497730 handler=ip_reass_tmr arg=805B28C Adam pá 28. 5. 2021 v 13:45 odesílatel Trampas Stern 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 F

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

2021-05-28 Thread Adam Baron
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 ticks. Adam pá 28. 5. 2021 v 9:44 odesílatel Tomasz W napsal: > Hi (Cześć) > Lok for this &

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

2021-05-28 Thread Adam Baron
Hello Paul, thanks, you're right, my bad, putting it into the calculator 4 294 967.296 seconds = 49.7102696 days. So this is a rater related to timer that overflows after ChibiOS(RTOS I use) systicks (which is 1/1 seconds). Adam pá 28. 5. 2021 v 11:23 odesílatel Matthias Paul napsal

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

2021-05-28 Thread Adam Baron
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 >

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

2020-05-31 Thread Adam Baron
Hello, I guess it is because it times out after given period (600 seconds?). It is not working as it should in current 2.1.2 stable. Adam ne 31. 5. 2020 v 17:58 odesílatel kurta napsal: > I've set up mDNS with these functions: > > void srv_txt(struct mdns_service *serv

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

2020-03-26 Thread Adam Baron
Hello Trampas, what chip is your PHY? To stay away from it. I used W5500 which does whole TCP/IP stack, and it gets warm. Now using lan8720a with large GND pad. Adam út 24. 3. 2020 v 0:59 odesílatel Trampas Stern napsal: > I think I might have found the problem. I cooled off the Phy c

[lwip-users] lwip-1.3.2 update to lwip-2.1.2

2020-02-17 Thread Adam Fullerton
fer over a socket? Can anyone shed any light on these problems? Thanks in advance, Adam. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] lwip-1.3.2 update to lwip-2.1.2

2020-02-17 Thread Adam Fullerton
fer over a socket? Can anyone shed any light on these problems? Best regards, Adam. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] lwip-1.3.2 update to lwip-2.1.2

2020-02-17 Thread Adam Fullerton
fer over a socket? Can anyone shed any light on these problems? Best regards, Adam. ___ 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
; > 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@nongnu.o

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

2020-02-04 Thread Adam Baron
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 > httpd_po

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
7>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 rather thin

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

2020-02-04 Thread Adam Baron
Hello, small MTU can be overridden by TCP_MSS I believe. The default 536 is very small for POST indeed. Adam út 4. 2. 2020 v 13:41 odesílatel Trampas Stern napsal: > The post parsing in the http code has couple problems. Most of the time > it will not cause issues. > > Fir

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 html pages

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

2020-02-04 Thread Adam Baron
: sending packet p etharp_timer ... etharp_timer And the lwip is stuck, not sending the file requested by next GET, while other threads work well. Both threads serving lwip, called lwipthread and tcpip_thread are in good state and not over flooded. Any ideas what can be the cause? Thanks Adam

Re: [lwip-users] freertos + lwip = no uart ?

2015-07-28 Thread Adam Fullerton
Hi, Have you had a look at the linker map file? My guess is that the additional memory requirements has exceeded the resources available. Cheers, Adam. On 27/07/2015 07:33, unnamed wrote: hi, i'am trying to port FreeRTOS + lwip to atxmega128a3u and almost every thing is working fine, only

Re: [lwip-users] freertos + lwip = no uart ?

2015-07-28 Thread Adam Fullerton
Hi, You are looking for the allocated memory exceeding that of the platform. For example, is the address that the linker locates the memory for UART within the range for you device? Cheers, Adam. On 28/07/2015 09:06, Damian Martyniuk wrote: hi, hmm i don't see any messages about memory

Re: [lwip-users] Strategy Question for DHCP

2015-06-18 Thread Adam Fullerton
**/ I hope this helps! Cheers, Adam. On 18/06/2015 16:08, Zach Smith wrote: Maybe someone else could also comment on this and let me know if I am wrong but as far as I know you don’t have to do anything once the IP

[lwip-users] Networking device discovery protocols

2015-06-16 Thread Adam Fullerton
protocols I need to implement to achieve this and are there any samples of this for lwIP? Thank you for your help, Adam. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Networking device discovery protocols

2015-06-16 Thread Adam Fullerton
else use this for device discovery? Thank you for your reply - it was very helpful! Adam. On 16/06/2015 09:55, Noam Weissman wrote: Hi, First of all they do not need to type port number as default is 80 for HTTP, unless you use a private port at your WEB server. As for discovery it depends

Re: [lwip-users] DHCP usage

2015-06-05 Thread Adam Fullerton
such as ipReconfigure etc... Probably worth posting the question though. Cheers, Adam. On 05/06/2015 14:05, Sandra Gilge wrote: Hallo, thanks, I’m doing the dhcp_release and can see it in wireshark now. Since I work with lwipv1.4.1 I use the netifapi functions. For dhcp release I call

[lwip-users] Multiple sockets sharing packets

2015-03-17 Thread Newman, Adam
, packet[thread_index], 92, 0); //ENDCODE Is this the correct way to initialise sockets for my purpose? I'll start looking at the LWIP code just in case there's a bug, but I was hoping I'd just done something wrong and there's an obvious answer? Best Regards, Adam Newman Software Applications

Re: [lwip-users] smtp app tcp_connect vs lwip_connect

2015-02-08 Thread Newman, Adam
everywhere in the comments. I think what threw me was the code example at the top of smtp.c, because it doesn't mention the use of tcpip_callback when smtp_sent_mail_int is mentioned as the NON_SYS==0 approach. Thanks again for writing this application and for your help! Adam

[lwip-users] smtp app tcp_connect vs lwip_connect

2015-02-07 Thread Newman, Adam
are familiar with i.e. is there a silver bullet? Or, is it better (and safer) to avoid tcp_connect directly from the application and write my own smtp implementation using lwip_connect? Cheers, Adam

Re: [lwip-users] [LwIP-1.4.1 + ChibiOS-2.6 + STM32F407]memp_malloc: out of memory in pool PBUF_POOL

2014-06-23 Thread Adam
is tested, don´t know. - I´m using heap size 10K of lwip. Heap size of OS is defined as available maximum. - IRQ Priorities are defined as default, but what about priorities of each threads? That should be a root of problem. Thank you all. Adam -- View this message in context: http://lwip

[lwip-users] [LwIP-1.4.1 + ChibiOS-2.6 + STM32F407] memp_malloc: out of memory in pool PBUF_POOL

2014-06-20 Thread Adam
LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN) #define PBUF_POOL_SIZE 20 This state happens after approx 15minutes of idling on my network. Thank you for your help! Adam -- View this message in context: http://lwip.100.n7.nabble.com/LwIP-1-4-1-ChibiOS-2-6-STM32F407-memp-malloc

Re: [lwip-users] Using 2 MACs with LwIP

2014-01-09 Thread Adam Fullerton
; } /** End of function ipGetNetIf **/ I hope this helps. Cheers, Adam. On 09/01/2014 02:30, Vadim Vaynerman wrote: Hello All, I was wondering if there is any

Re: [lwip-users] Using 2 MACs with LwIP

2014-01-09 Thread Adam Fullerton
I don't know if other stack's support this as I only implemented it for lwIP. The only time it was not a problem was when the peripheral was configured as a boundary clock and then two different subnets could be used. The IEEE15888 peripheral in question had two ports and messages are bridged

Re: [lwip-users] Using 2 MACs with LwIP

2014-01-09 Thread Adam Fullerton
Hi, Yes, that would be a valid solution. I did it by IP address because some of the messages used a multicast MAC address. Cheers, Adam. On 09/01/2014 13:46, Simon Goldschmidt wrote: Adam Fullerton wrote: The IEEE15888 peripheral in question had two ports and messages are bridged between

Re: [lwip-users] IPv6

2012-10-13 Thread Adam Fullerton
Hi Ivan, Thanks, nice one, that has done the trick! Cheers, Adam. On 12/10/2012 16:28, Ivan Delamer wrote: I'm assuming you mean the netif-output_ip6 function. The ip6_addr_t *ipaddr parameter is needed to resolve the IP address into a link-layer address. see ethip6.c for an example

[lwip-users] IPv6

2012-10-12 Thread Adam Fullerton
Hi All, Can any one explain what the IPv6 output function is to do with the ip6_addr_t *ipaddr parameter? Thanks, Adam. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] IP V6

2012-07-31 Thread Adam Fullerton
Hi, We are using lwIP V1.3.2 and require IPV6 support. Does lwIP V1.4 support IPV6 or is there a patch for V1.3.2 for IPV6? Best regards, Adam Fullerton. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo

[lwip-users] Video over IP

2011-07-27 Thread Adam Fullerton
me. mailto:ardw...@gmail.com ardw...@gmail.com Cheers, Adam. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Multiple network adapters

2011-04-14 Thread Adam Fullerton
with it. Thanks, Adam. On Wed, Apr 13, 2011 at 9:21 PM, Kieran Mansley kie...@recoil.org wrote: On 13 Apr 2011, at 09:21, Adam Fullerton wrote: Attached is the diagram with the IP addresses. The problem is when the PC attempts to access the web server on 192.168.1.13, lwIP routes the messages

Re: [lwip-users] Multiple network adapters

2011-04-11 Thread Adam Fullerton
On Fri, Apr 1, 2011 at 1:58 PM, Kieran Mansley kie...@recoil.org wrote: On Wed, 2011-03-30 at 21:42 +0100, Adam Fullerton wrote: Unless the network interfaces are on different subnets lwIP sends the data to the last interface added with netif_add. The function ip_route always returns

[lwip-users] Multiple network adapters

2011-04-01 Thread Adam Fullerton
IP address mask. Should it not send it to the network interface that the destination IP address is attached to? This is either a bug in lwIP or I don't know what I am doing! Can anyone help? Many thanks, Adam. ___ lwip-users mailing list lwip-users

[lwip-users] Multiple network interfaces

2011-01-09 Thread Adam Fullerton
Hi, Has anyone had lwIP V1.3.2 working with two or more network interfaces? Thanks in advance. Adam Fullerton. ___ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] Single user for administration

2010-10-11 Thread Adam Fullerton
Hi, I'm using lwIP to serve a web page for remote monitoring purposes. Does any one know how to make the administration pages accessible to only one client at a time? Thanks in advance, Adam Fullerton. ___ lwip-users mailing list lwip-users

Re: [lwip-users] closesocket problem (lwip_close)

2010-07-02 Thread Adam Fullerton
onwards? When I was developing the COE code Wireshark would turn packets with bad checksums red. Which frames from 192.168.243.12 have bad checksums? Best regards, Adam Fullerton. WebPageSendButNotDisplayed.pcap Description: Binary data ___ lwip

[lwip-users] closesocket problem (lwip_close)

2010-06-30 Thread Adam Fullerton
. Is it the same reason that the lwIP telet server can't close a session? Thanks in advance, Adam Fullerton. WebPageSendButNotDisplayed.pcap Description: Binary data ___ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip

[lwip-users] netif error

2010-06-25 Thread Adam Fullerton
Hi All, Has anyone got any idea of what is going wrong in this Wireshark capture? The client sent the character + in frame 6, frame 7 is expected data and the server's reply is in frame 9. Thanks, Adam. TcpError.pcap Description: Binary data

[lwip-users] lwip_close

2010-06-24 Thread Adam Fullerton
Hi, Has anyone had a problem with the lwip_close socket API function? It looks like lwIP did not receive the ACK from the host in frame 4 of the attached Wireshark capture TcpCloseNG.pcap. I was expecting to see something like TcpCloseOK.pacp. Thanks in advance. Adam Fullerton

[lwip-users] TCP Throughput

2010-06-17 Thread Adam Fullerton
: www.ardware.co.uk/rte/tcpslow.pcap I am not experienced enough to know if the TCP ZeroWindow message from the PC is an indication that I have configured lwIP wrongly or the PC can't handle the data. Thanks in advance. Adam Fullerton. ___ lwip-users

[lwip-users] VMware

2010-06-11 Thread Adam Fullerton
why this is this a problem for lwIP and not other network recipents? Cheers, Adam. ___ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] TCP window / timer problem

2010-06-08 Thread Adam Fullerton
e 11 freed by driver Does anyone know what I have done wrong in the configuration / timer implementation to prevent lwIP from sending the second TCP/IP packet? The lwipopts.h file is attached. Thanks, Adam Fullerton. TcpProblem.pcap Desc

[lwip-users] Help

2010-05-05 Thread Adam Fullerton
Hi, Does anyone know what may be going on here? Attached is the debug output from lwIP during DHCP. I think the DHCP server is trying to give it the address 192.168.243.2 but lwIP just times out and re-trys the discovery. Thanks in advance, Adam.mboxFetch: waited 1 mS mboxFetch: waited 499

[lwip-users] Help with IP header size

2010-05-01 Thread Adam Fullerton
00 00 00 00 00 00 00 00 00 00 00 00 dhcp_discover: deleting()ing dhcp_discover: SELECTING dhcp_discover(): set request timeout 2000 msecs Which settings have I got wrong? Thanks in advance. Adam Fullerton. ___ lwip-users mailing list lwip-users

Re: [lwip-users] Documentation redistribution licence?

2006-10-01 Thread Adam Dunkels
Hi, the documentation is distributed under the same license as the rest of the code (3-clause BSD-style). Best regards, /adam Jonathan Larmour wrote: Hi, The lwIP source code is covered by the BSD licence, all well and good. But I was wanting to put together some user documentation