Re: [lwip-users] Memory leak due to synthesized DDoS

2022-11-08 Thread Stephen Cowell
    }// if 1     }//if (err == ERR_OK // here's where I removed the http_close_conn()     return ERR_OK; } You'll have to set up your callbacks etc.  Working very nicely now. Thanks for your help folks. __ Steve . Stephen Cowell Project Manager/Engineer Plasmability LLC Office (512) 267-7087 Cell (

Re: [lwip-users] Memory leak due to synthesized DDoS

2022-10-26 Thread Stephen Cowell
Sorry, forgot to add I'm running NO_SYS = 1.  slc On 10/25/2022 8:46 PM, Stephen Cowell wrote: My product is a modbus TCPIP board, using the Atmel SAM4E16E based off of the SAM4E-EK.  It is using LWiP 1.4.1 with pbuf.c and pbuf.h from version 2.1.3.  I know... cringe... but I did this recently

[lwip-users] Memory leak due to synthesized DDoS

2022-10-26 Thread Stephen Cowell
My product is a modbus TCPIP board, using the Atmel SAM4E16E based off of the SAM4E-EK.  It is using LWiP 1.4.1 with pbuf.c and pbuf.h from version 2.1.3.  I know... cringe... but I did this recently, during troubleshooting... helped some, see below. I'm banging it real hard using DaqFactory

Re: [lwip-users] Lwip client can't connect to another lwip server

2020-11-25 Thread Stephen Cowell
I find that Wireshark points to the problem usually.  If you don't understand the trace, show it here. -- Steve . On 11/25/2020 11:47 AM, murat palaci wrote: Hello, I have two boards that I developed using STM32F1 with PHY I used standard tcp_echoclient and tcp_echoserver codes in lwip.

[lwip-users] Can I use two ports at once, on same net_if?

2020-09-14 Thread Stephen Cowell
setting up two different net_if's?  Either one works fine with the other commented out. __ Steve . -- Stephen Cowell Project Manager/Engineer Plasmability LLC Office (512) 267-7087 Cell (512) 632-8593 (best) www.plasmability.com ___ lwip-users mailing

Re: [lwip-users] LWIP problems

2020-06-15 Thread Stephen Cowell
We have asked customers to reduce the mask and create a smaller subnet... this has worked for us. -- Stephen Cowell Project Manager/Engineer Plasmability LLC Office (512) 267-7087 Cell (512) 632-8593 www.plasmability.com On 6/15/2020 11:05 AM, Trampas Stern wrote: We finally shipped

Re: [lwip-users] connection drops

2020-03-06 Thread Stephen Cowell
On 3/6/2020 5:23 AM, vrnud wrote: Hi, I am using lwip for Modbus and Http application. I have used raw api for both the application. I am facing disconnect problem with modbus application while http application is running. Web page is auto refeshing at 3 seconds. kindly let me know what are

Re: [lwip-users] Enabling Debugging messages in lwip

2019-12-31 Thread Stephen Cowell
On 12/31/2019 10:46 AM, samyuktar wrote: Hi, I added the --printf_support=full and changed the LWIP_PLATFORM_DEBUG to printf instead of UARTprintf of System_printf .. I am still not getting any print statements. I want also to confirm that I am using the correct method to see these messages.

Re: [lwip-users] Cable unplugged

2019-12-11 Thread Stephen Cowell
Top posting is a crime! Here's how I do it in Atmel-ese... no OS, in the main while(1) loop: <>     modCount++; ...         if (!(modCount%0x0008))// check Ethernet PHY once in a while to make sure we're connected         {             if (ethernetOK != ERR_OK)// only worried about

Re: [lwip-users] Netconn API Server Mode Connection Drope Detection

2019-05-16 Thread Stephen Cowell
I'm using RAW, not Netconn... I have to poll my PHY for this... about once every 10,000 loops.  Read the manual for your PHY... several different conditions you can detect... you have to access the status register IIRC. -- Stephen Cowell Project Manager/Engineer Plasmability LLC On 5/16/2019

Re: [lwip-users] Porting 2.1.2 to Atmel Studio 7... dirent.h?

2019-02-08 Thread Stephen Cowell
On 2/7/2019 11:39 PM, goldsimon wrote: Am 8. Februar 2019 00:27:58 MEZ schrieb Stephen Cowell : ... > Does everyone have to go through and edit >the >header file includes to reflect the new structure?  I can't see why >this >is not fixed in the release. That should not be re

[lwip-users] Porting 2.1.2 to Atmel Studio 7... dirent.h?

2019-02-07 Thread Stephen Cowell
al or not... https://community.atmel.com/forum/upgrading-lwip-141-200-pbuf-issue Perhaps someone could throw me a bone?  Do I need an RTOS to move forward?  Do I need a different toolchain? __ Steve . -- Stephen Cowell Project Manager/Engineer Plasmability LLC Office (512) 267-7087 Cell (512) 632-8593

Re: [lwip-users] Looking for FTP client that uses Raw API

2018-10-28 Thread Stephen Cowell
So, before I start from the ground and try to design my own library, I would like to ask here if any of you know of any other FTP client (using Raw API) We've been happy with FTPS, by Toelke... https://github.com/toelke/lwip-ftpd We run bare-metal, it integrates well with lwIP 1.4.1

Re: [lwip-users] Device unresponsive after a while Atmel SAM4E

2018-10-22 Thread Stephen Cowell
We had to make the subnet smaller... 1024 is about as big as we go... 255.255.255.252 IOW.  What is your mask set to? __ Steve Cowell . On 10/22/2018 5:23 AM, Markus Pischinger wrote: Hi everybody, I'm not sure whether this Issue comes from LwIP or not, but maybe someone has experienced

Re: [lwip-users] lwip crashing, apparently in sys_check_timeouts

2018-08-20 Thread Stephen Cowell
When presented with problems like this I start by replacing all the default handlers with handlers that log a hit.  Since you have NVR that you can read and write this should be easy... I use my User Page Flash for the same purpose.  This will help you divide-and-conquer. __ Steve . On

Re: [lwip-users] Best way for determining if a TCP connection is dead?

2018-01-24 Thread Stephen Cowell
teve . Stephen Cowell Project Manager/Engineer Plasmability LLC Office (512) 267-7087 Cell (512) 632-8593 www.plasmability.com On 1/24/2018 10:35 AM, Chris Seto wrote: I have some code which works great, based on the echo client example. I'm working on hardening it, and I'm wondering with how

Re: [lwip-users] LWIP v2.0.0 hangs without Phy

2017-10-13 Thread Stephen Cowell
for our application.  Nothing about LWIP was involved.  If you're using OS you'll have to suspend the LWIP thread(s) to do this. -- Stephen Cowell Project Manager/Engineer Plasmability LLC www.plasmability.com On 10/13/2017 6:48 AM, Gustavo Costa TAP wrote: Hi Jens, thank you for your

Re: [lwip-users] Subnet too large?

2017-03-16 Thread Stephen Cowell
wrote: Please don't hijack a thread but ensure you create a new one for a new topic by creating a new mail instead of hitting the reply button and changing the subject. Thanks, Simon Am 16. März 2017 17:15:01 MEZ schrieb Stephen Cowell <s.cow...@plasmability.com>: We're havin

[lwip-users] Subnet too large?

2017-03-16 Thread Stephen Cowell
We're having some problems with a customer... we have over a hundred of our lwIP 1.4.1 devices out in the field. Our hardware is the Atmel ATSAME416E with the KSZ8081MNX PHY chip... same config as the ATSAM4E_EK eval kit. Project based on the THIRDPARTY_LWIP_RAW_BASIC_HTTP example.. I've

Re: [lwip-users] TFTP init

2017-01-18 Thread Stephen Cowell
at is an FTP server with NTP-based clock. It was not easy... use every cheat you can find. If you have to add a USB stick or an SD card to get it going, do so. __ Steve . On 1/18/2017 9:20 AM, nrichard wrote: Stephen Cowell wrote What ftp library are you using? I successfully used sftp wit

Re: [lwip-users] TFTP init

2017-01-18 Thread Stephen Cowell
to be easier than hacking an FTP client I think. Your goal is to use as much already-done code as possible. Choose hardware with a rich set of example projects... Atmel SAM4E helped me a lot. -- Stephen Cowell On 1/18/2017 7:21 AM, nrichard wrote: Ajay Bhargav wrote I guess you need to check memory

Re: [lwip-users] Need help to configure lwip

2016-04-27 Thread Stephen Cowell
Thiyagu1989, If we knew which board it would help. Here's links I found after a very short search: https://app.box.com/s/c7b5e316d11245271ec9 https://sourceforge.net/projects/uez/ Good luck. __ Steve . On 4/27/2016 7:01 AM, thiyagu1989 wrote: Hi Stephen , Thanks for the

Re: [lwip-users] Need help to configure lwip

2016-04-25 Thread Stephen Cowell
Start with an example project for your hardware... you will struggle otherwise. When I start a hardware project I often use an Atmel hardware eval kit as a basis... this gives you a working place to start. __ Steve . Stephen Cowell Project Manager/Engineer Plasmability LLC Office (512) 267-7087

Re: [lwip-users] Problems on Class-B network

2016-04-11 Thread Stephen Cowell
Should be 172 below... sorry. Stephen Cowell Project Manager/Engineer Plasmability LLC Office (512) 267-7087 Cell (512) 632-8593 www.plasmability.com On 4/11/2016 3:42 PM, Stephen Cowell wrote: Hey Simon... There is also an NTP client running... using SNTP. They have it set to 0.0.0.0, so

Re: [lwip-users] Problems on Class-B network

2016-04-11 Thread Stephen Cowell
the replacement now... if it still has problems, perhaps I'll get to visit sunny Austria! __ Steve . Stephen Cowell Project Manager/Engineer Plasmability LLC Office (512) 267-7087 Cell (512) 632-8593 www.plasmability.com On 4/11/2016 3:28 PM, Sergio R. Caprile wrote: Stephen, there is no concept

[lwip-users] Problems on Class-B network

2016-04-11 Thread Stephen Cowell
to confirm that this should work no problem on the class-B subnet. __ Steve . Stephen Cowell Project Manager/Engineer Plasmability LLC Office (512) 267-7087 Cell (512) 632-8593 www.plasmability.com ___ lwip-users mailing list lwip-users@nongnu.org

Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets

2016-02-18 Thread Stephen Cowell
He didn't stutter... don't call lwip from anything but main loop code. Side-effects are hard to diagnose when you don't follow directions. __ Steve . On 2/18/2016 1:00 PM, Gustavo Pinho Oliveira wrote: I have checked my code and I do call lwip from interrupt callbacks. But my problem is with

Re: [lwip-users] Infinite hang in tcp_slowtmr()

2015-10-14 Thread Stephen Cowell
hain are you using? Enrico On 13/10/2015 11:48, Sylvain Rochet wrote: Hi Stephen, On Tue, Oct 13, 2015 at 10:15:42AM +0200, Sylvain Rochet wrote: On Mon, Oct 12, 2015 at 04:59:19PM -0500, Stephen Cowell wrote: On 10/12/2015 3:41 PM, Sylvain Rochet wrote: On Mon, Oct 12, 2015 at 02:51:14PM -

[lwip-users] Infinite hang in tcp_slowtmr()

2015-10-12 Thread Stephen Cowell
Using 1.4.1, no OS, in a ftpd application. Atmel SAM4E, based on THIRDPARTY_LWIP_RAW_BASIC_HTTP example, ASF 3.25. I find that I sometimes get an infinite loop when stepping to pcb->next... if it is not a new pcb but the same old one, the system hangs. In order to get out of this I put the

Re: [lwip-users] Infinite hang in tcp_slowtmr()

2015-10-12 Thread Stephen Cowell
On 10/12/2015 3:41 PM, Sylvain Rochet wrote: Hi Stephen, On Mon, Oct 12, 2015 at 02:51:14PM -0500, Stephen Cowell wrote: I find that I sometimes get an infinite loop when stepping to pcb->next... I didn't have to read further. As usual, it looks like a broken port or usage which viol