lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Correctly manage cable disconnection and reconnection


From: Krzysztof Wesołowski
Subject: Re: [lwip-users] Correctly manage cable disconnection and reconnection
Date: Sat, 8 Dec 2012 11:47:43 +0100

In similar case with freertos i created timer to poll phy and called netif set link down on disconection and up on connection. It works well, even tcp ip connections can last through temporal disconnection.

On Dec 8, 2012 8:09 AM, "CORRADIN Michele" <address@hidden> wrote:
Hi,
I'm new to LWIP and I'm trying to use it on a a board with an STM32F407 under ucOS III. I have just ported LWIP on ucOS III based on a project I found online, I fixed a couple of bugs and I make it running with fix IP and DHCP. The MAC driver is based on the ST one with some modifications for my micrel PHY.
It seems to work fine but I have some problems to correctly manage cable disconnection and re-connection.
Up to now I created a slow task that checks the PHY register to verify the connection status and if I see a cable disconnection and re-connection I restart the phi init in order to correctly set speed, .. but it's not clear to me what I should do to "re-init" LWIP.
Un to now I'm doing nothnig and it seems it work 80% of the time .. but sometimes it seems it's not able to correctly restart.
I'm just trying with a ping to see what happens.
thanks for the support
michele

This message and any attachments are established exclusively for his or its recipients, and are confidential.
Any use, diffusion or unauthorized publication is prohibited.
Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system.
SOCOMEC declines all responsibility concerning this message if it has been altered or tampered with.
It normally contains no virus, but it is the responsibility of the recipient to ensure this.
Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the organization.

Ce message et ses éventuelles pièces jointes sont établies à l'intention exclusive de son ou de ses destinataires et sont confidentiels.
Toute utilisation, diffusion ou publication non autorisée est prohibée.
Merci d’informer immédiatement l’auteur par retour de message si vous avez reçu ce message par erreur, et supprimez ce message.
SOCOMEC décline toute responsabilité au titre de ce message s'il a été altéré ou falsifié.
Il ne contient normalement aucun virus, mais il est de la responsabilité de son destinataire de s'en assurer.
L’organisation décline toute responsabilité en ce qui concerne les informations fournies et les avis exprimés dans le présent message.
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

[Prev in Thread] Current Thread [Next in Thread]