ENC28j60 loses connection after a plug reconnect

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi everyone!

Has anyone ever come across the issue of ENC28j60 lose connection? Everything works superb good and stable till the very moment ethernet plug is taken out and stowed back in.

I am able to read the PHSTAT2.LSTAT to recognise the phy-up event but afterwards the link isn't useful.

I've tried sending the chip to a power-down for a second with getting it back on and reinitting the MAC layer -> no luck.

Has anyone had that and may have solved the problem?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I havent noticed that problem. I'm using the tuxgraphics code. What i have found is the chip goes unresponsive if it gets something down the network - exactly what the something is i have not been able to determine.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman wrote:
I havent noticed that problem. I'm using the tuxgraphics code. What i have found is the chip goes unresponsive if it gets something down the network - exactly what the something is i have not been able to determine.

Did you try to unplug and move the plug back in? Does it continue?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I can try that later. Are you running through a switch or hub? If not, the pc ethernet controller will report a disconnect and drop any open sockets

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My system survived a disconnect. Note that i am connecting the device with the enc to a router. I am also using UDP which has no connection state.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No, the ENC is connected via a router. Otherwise I would use a cable with TX and RX crossed over.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

All clear, that was our own bug :)