lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] how lwip know internet cable is unplug


From: Bill Auerbach
Subject: Re: [lwip-users] how lwip know internet cable is unplug
Date: Wed, 7 Sep 2011 10:07:01 -0400

Vincent,

 

I have to poll the link state as well on 2 platforms but it’s a simple PHY I/O read and it takes very little time. I do that as part of my incoming packet check when there are no packets to process.  If there are packets to process obviously the link is up. J

 

Bill

 

From: address@hidden [mailto:address@hidden On Behalf Of vincent cui
Sent: Tuesday, September 06, 2011 7:14 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] how lwip know internet cable is unplug

 

>>>> My approach is to send a signal to a separate task to handle the cable-plug/unplug events

 

Ake:

 

For your approach, who send a signal to the task ? the driver ?  my driver can get the link status by polling, not interrupt, so it takes more cpu time..I stop using it

And try to find another one to replace… maybe it need HW sensor support.

Vincent Cui
Sr.Firmware Engineer
Mobile: +8613482482211
Tel: +86 21 34612525x6104
Fax: +86 21 34619770
E-Mail: address@hidden
Shanghai EnLogic Electric Technology Co., Ltd.
Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 200233
http://www.enlogic.com

 

From: address@hidden [mailto:address@hidden On Behalf Of address@hidden
Sent: 2011
92 14:50
To: Mailing list for lwIP users
Subject: Re: [lwip-users] how lwip know internet cable is unplug

 

Hi!

I think that is something you define in your ethernet driver. My approach is to send a signal to a separate task to handle the cable-plug/unplug events. In the task I currently disable dhcp (if active) on cable-unplug signal and reenable it on cable-connect. it might be good to set an auto-ip when unplugged as well, but I'm not sure. Maybe it should be handled with the netif_set_up/down-functions instead, I'm still experimenting...

/Åke

-----------------------------
Åke Forslund
0433-273296
NIBE AB
Box 14
S-285 21  Markaryd
Tel +46-(0)433-273296

From:

vincent cui <address@hidden>

To:

Mailing list for lwIP users <address@hidden>

Date:

2011-09-02 07:27

Subject:

[lwip-users] how lwip know internet cable is unplug

Sent by:

address@hidden

 





Hi;

When unplug internet cable, how lwip deal it ? I want to show message to user in LCD to notice user !

?Vincent Cui
Sr.Firmware Engineer
Mobile: +8613482482211
Tel: +86 21 34612525x6104
Fax: +86 21 34619770
E-Mail: address@hidden
Shanghai EnLogic Electric Technology Co., Ltd.
Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 200233
http://www.enlogic.com

-----Original Message-----
From: address@hidden [mailto:address@hidden] On Behalf Of Kieran Mansley
Sent: 201192 3:22
To: Mailing list for lwIP users
Subject: Re: [lwip-users] FreeRTOS / lwip multiple connections


On 31 Aug 2011, at 01:18, vincent cui wrote:

> K:
> You mean I need make accept socket to be non-blocking , right ?

No, I'm not sure why you need any of your sockets to be non-blocking.

Kieran

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
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]