Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Enc28J60-based ethernet shields support #1

Open
4ntoine opened this issue Jul 13, 2012 · 2 comments
Open

Add Enc28J60-based ethernet shields support #1

4ntoine opened this issue Jul 13, 2012 · 2 comments

Comments

@4ntoine
Copy link
Owner

4ntoine commented Jul 13, 2012

Enc28J60-based shields are few dollars cheaper and are widely spread.

Edit stubs to add Enc28J60 support.
Uncomment //#include <EthernetStreamEnc28J60.h> // TODO : implement in sketch in order to use lib for Enc28J60

@ntruchsess
Copy link

to solve this issue you might be interested in https://github.com/ntruchsess/arduino_uip, my library for ENC28J60 that implements the same API as stock Ethernet-lib.

You also might be interested in the configurable-Firmata as it has got build-in ethernet-support recently: https://github.com/firmata/arduino/blob/configurable/examples/ConfigurableFirmata/ConfigurableFirmata.ino
Configurable-firmata runs fine with my UIPEthernet-library for ENC28J60.

The main difference between your EthernetFirmata and ConfigurableFirmata is that configurable-firmata runs as Client and your code as Server. I did experiment with both modes and decided on the Client, because it is does reconnect more reliable when resetting the arduino or temporary disconnect the network-cable. If the Firmata runs as Server you'd have to ensure SO_KEEPALIVE is set on the Androids socket as your application would not notice the disconnected Arduino easily (and wait for aproximatly 10 minutes after last attempt to send a packet) otherwise.

  • Norbert

@4ntoine
Copy link
Owner Author

4ntoine commented Nov 25, 2013

Thanks, Norbert! You can freely contribute or wait when i do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants