renatoaloi / EtherEncLib

Ethernet ENC28J60 Library for Arduino
GNU General Public License v3.0
26 stars 14 forks source link

ENC28J60 SPI Hangs Without Reason #3

Closed renatoaloi closed 9 years ago

renatoaloi commented 9 years ago

Need help to solve SPI issue at ENC28J60.

It is a tricky issue and andvanced one, also... Sometimes, ENC28J60 "hangs-up" the connection without reason and lose it's own communication with uC...

I dont know yet if it is just a misimplementation of SPI code (remmembering both Pascal Stang's or Schundler's codes were ported from Microchip PIC platform). I think no one has spent some time to port that part of SPI code, elegantly for Arduino. All aproaches are PIC adaptations...

Furthermore, I think all ENC28J60 based libraries has same problem. It can be detected simmilar issues at EtherCard project, as follows: https://github.com/jcw/ethercard/issues/179 https://github.com/jcw/ethercard/issues/106

renatoaloi commented 9 years ago

Testing for REV 3.1 just merged. I think this problem is solved. SKA made a very important contrib for SPI communication part.

ska-la commented 9 years ago

There are a couple words about SPI problem. As i see on Wiki -> Schematics you use same boards as i have (but i use other ethernet board). On page 8 of enc28j60 data sheet there is a Figure 2-6 about level shifting. Most important is MISO realisation (pull-up to CS line). Both our boards (Ethernet and SD card) haven't such realisation. As result, can arise collision when we try to use both boards on the same pins (11,12,13). My Ethernet Shield v.1.0 for Arduino Nano has buffer IC, but it's HCT08 without 3-state support - simply level shift buffer between 5V mega328 and 3.3V enc28j60. If, after fixing the hardware misusing, spi problem still remain, we can say about SPI (SDcard) library error. I think so. Thanks.

renatoaloi commented 9 years ago

That is ok now! Closing issue. Thanks SKA!

palivoda commented 7 years ago

About hanging - found this: https://forum.mysensors.org/topic/536/problems-with-enc28j60-losing-connection-freezing-using-uipethernet-or-ethershield-read-this/2

Did you make it working stable for long time? Was this fix applied to the library?

ska-la commented 7 years ago

originator gave up the development. Software reset was implemented for suspended session.

2016-12-08 4:38 GMT+03:00 palivoda notifications@github.com:

About hanging - found this: https://forum.mysensors.org/topic/536/problems-with- enc28j60-losing-connection-freezing-using-uipethernet-or- ethershield-read-this/2

Did you make it working stable for long time? Was this fix applied to the library?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/renatoaloi/EtherEncLib/issues/3#issuecomment-265628459, or mute the thread https://github.com/notifications/unsubscribe-auth/AIe_yC69A-sMJInY6BSrV0cQ53PlKvJ5ks5rF1-PgaJpZM4Egi_3 .

renatoaloi commented 7 years ago

Hi there guys! Did you make advance in that matter of hanging up?

Best regards Renato

Em 8 de dez de 2016 12:38 PM, "Suchkov K.A." notifications@github.com escreveu:

originator gave up the development. Software reset was implemented for suspended session.

2016-12-08 4:38 GMT+03:00 palivoda notifications@github.com:

About hanging - found this: https://forum.mysensors.org/topic/536/problems-with- enc28j60-losing-connection-freezing-using-uipethernet-or- ethershield-read-this/2

Did you make it working stable for long time? Was this fix applied to the library?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub <https://github.com/renatoaloi/EtherEncLib/issues/3#issuecomment-265628459 , or mute the thread https://github.com/notifications/unsubscribe-auth/AIe_yC69A- sMJInY6BSrV0cQ53PlKvJ5ks5rF1-PgaJpZM4Egi_3 .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/renatoaloi/EtherEncLib/issues/3#issuecomment-265754857, or mute the thread https://github.com/notifications/unsubscribe-auth/AEsDAS6_8j_k7L8RYtD3w1378zEyz0Sqks5rGBZagaJpZM4Egi_3 .