Re: [lwip-users] Randomly delayed frame (STM32070 package including LwIP v1.4.1)

2019-01-04 Thread Jason White
It makes sense.

We use the DP83848 in full duplex mode on several products (thankfully) with
no problems. 

Out of curiosity what are you working on? (if you are able to share)

Regards,
-Jason White





-Original Message-
From: lwip-users  On
Behalf Of stevestrong
Sent: Friday, January 4, 2019 3:15 PM
To: lwip-users@nongnu.org
Subject: Re: [lwip-users] Randomly delayed frame (STM32070 package including
LwIP v1.4.1)

Jason, thanks for your comment.

I saw that no Rx packets were ever lost, no Rx/TX buffer over- or under-flow
ever occurred.
That finally made me think on DMA and PHY.
I realized that currently my PHY works in 100Mbp half-duplex mode, and that
could eventually be a problem, when many packets arrive and the PHY tries to
send some data in the same time (although the PHY should probably manage
this).

Then I found on Internet a site which offers a solution for DP83848, a patch
for MBED ETH lib, to work in full-duplex mode.

I implemented it, and ... voila: no more lost packets in 100 tries!
No more delayed packets. Success!

So I can conclude that the issue was most probably due to the heavy traffic
when PHY is working in half-duplex mode.
Does this make sense?

Anyway, thank you all for the invested time and effort, I really appreciate
it.

Steve


___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] Randomly delayed frame (STM32070 package including LwIP v1.4.1)

2019-01-04 Thread Jason White
Two suspects:

1. DMA/Buffer issue from LwIP into the Ethernet Peripheral.
-> Because the behavior depends on packet/traffic loading
-> Do other types of traffic produce the same effect?

2. Memory corruption (perhaps unlikely due to the fact that "most" packets
are making it)
-> Is loading your webpage accidentally overwriting some control structure
in LwIP causing the stack to hiccup?

-Jason White


___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] Get Domain name and Host name from DHCP driver?

2018-12-31 Thread Jason White
Hello everyone,

 

I am using LwIP v2.0.2. Does anyone know if Hostname and Domain name option
fields can be extracted from the standard DHCP driver built into LwIP? I
recently found that I need my device to be aware of these fields. 

 

Looking at the parsing code I see there is a compiler define called
LWIP_NETIF_HOSTNAME that appears to enable parsing of the hostname -
although I have not tested it.

 

However, I don't see anything that references domain name DHCP parameter. Am
I correct in concluding that I need to write that part?

 

-Jason White

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Randomly delayed frame (STM32070 package including LwIP v1.4.1)

2018-12-28 Thread Jason White
I don't any specific advice for your platform, but I do see that you are
using a very old (practically antique!) version of lwIP.

A lot of things in LwIP have improved since version v1.4.1 and very few
people use or have knowledge of such an old version these days.

It may be worthwhile to update to the latest release v2.1.1.

Disclaimer: I am not a LwIP developer, I just am a developer for some
commercial products using the STM32F2xx and STM32F4xx..

-Jason White


___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users