Cosa icon indicating copy to clipboard operation
Cosa copied to clipboard

Driver: Improve W5X00 ethernet shield/device detect

Open mikaelpatel opened this issue 8 years ago • 3 comments

mikaelpatel avatar Jan 07 '16 21:01 mikaelpatel

I'm likely going to spend some time in the next couple of weeks following your lead with the work you did on the W5200 integration replicating for the W5500, as it is what I'm using on my project, so if you add any ideas you have or direction you'd like to take to this issue then I'll do anything I can to help.

Cheers /dan

dansut avatar Jan 08 '16 22:01 dansut

@dansut

After reading a number of forum topics on the Ethernet Shield and library it seems like there are some basic validations missing.

  1. Is a shield with the Ethernet controller available?
  2. Is the Ethernet controller cable connected (link working)?

Both these should (if possible) be validated with the device driver is started. The first seems easiest to do by checking an SPI read as the return values are very specific (at least what I have seen for the W5100). The second issue is a bit trick as this is not available in a status register (what I know) and without a mod of the board it is difficult to "read the link status". Worst case this has to be ignored and higher level protocol has to detect that the network (link) is not available. Do you have any ideas on this?

Cheers! Mikael

mikaelpatel avatar Jan 12 '16 12:01 mikaelpatel

Good info, thanks - it strikes me using this type of technique it would perhaps be possible to automatically select the correct wiznet chip dynamically, although this is probably not so desirable with limited memory and no desire for binaries to contain stuff they will never use.

dansut avatar Jan 15 '16 17:01 dansut