Code Monkey home page Code Monkey logo

Comments (13)

jcw avatar jcw commented on June 7, 2024

That EtherCard.zip link should probably be removed - the latest code is here on GitHub. Can you tell me where the link came from?

from ethercard.

PaulViscovich avatar PaulViscovich commented on June 7, 2024

http://jeelabs.net/projects/cafe/wiki/EtherCard

I did download the files from the GiyHub (the ones with the .ino ext renamed it to pde and tried that first but no joy from that so then i downloaded the .zip from the page listed here and it was the same..

Maybe im using the wrong lib for testing..

Thanks much for the quick responces

from ethercard.

PaulViscovich avatar PaulViscovich commented on June 7, 2024

I am also using the 0022 Ide but have just downloaded the 0023

from ethercard.

PaulViscovich avatar PaulViscovich commented on June 7, 2024

But i have just downloaded version 1.0 for the .ino files will try again tonight and see if it works or not

from ethercard.

PaulViscovich avatar PaulViscovich commented on June 7, 2024

ok so downloaded the lib from GitHub and the 1.0 ide and still no love.. behaves the same during the uploading phase the link light is on as well as a blinking activity light but as soon as the sketch is loaded the lights go out and when i open the serial window i get the title for the example and then it just stops on the next line..

Thoughts

from ethercard.

PaulViscovich avatar PaulViscovich commented on June 7, 2024

#define SELECT_BIT 2 // 0 = B0 = pin 8, 2 = B2 = pin 10
#define FULL_SPEED 1 // use full-speed SPI for bulk transfers

wow had to read some one else blog to root this out... I think it is the basic issue with all thing arduino (every one uses's thier own naming conventions) and there is little documentation to point out the things that need to be done to make it work..

from ethercard.

PaulViscovich avatar PaulViscovich commented on June 7, 2024

I would assume this is resolved as long as there is a version that can be used on the arduino ide 0022 or 0023 i will be happy but i may not move to the ide 1.0 i would have to change way too many things in my current project to make it worth it..

Kind of one of those things where if it aint broke dont fix it

Thanks for your time andm lib let me know if you plan to keep a .pde version around that will work with the 022/23 ide's

from ethercard.

jcw avatar jcw commented on June 7, 2024

Paul - can you explain? What did you change? Which blog are you referring to?

from ethercard.

PaulViscovich avatar PaulViscovich commented on June 7, 2024

#define SELECT_BIT 2 // 0 = B0 = pin 8, 2 = B2 = pin 10

this was

#define SELECT_BIT 0 // 0 = B0 = pin 8, 2 = B2 = pin 10

but there is no clear documentation that this needs to be changed in the arduino sketch for the ethershiled boards..

the blog was just one of the other blogs on the chips set it was a subscriber to that blog that pointed out that the line needed to be changed..

I dug a little and found it but with out that piece of information im pretty sure i would have stoped using the library.

Do you plan on maintaining a version compatible with 0022 or 0023 VS the GitHub version that is named .ino for the 1.0 version of the ide..

**************** UPDATED ******************** (9:39 am)

I see this is in place...

#ifndef EtherCard_h
#define EtherCard_h

#if ARDUINO >= 100
#include // Arduino 1.0
#define WRITE_RESULT size_t
#define WRITE_RETURN return 1;
#else
#include // Arduino 0022
#define WRITE_RESULT void
#define WRITE_RETURN
#endif

so if i download the latest lib but use the pde's from the previous versions or just rename the .ino files to .pde i should be good to go will test tonight...

Man sleep is underrated... I need more of it

from ethercard.

PaulViscovich avatar PaulViscovich commented on June 7, 2024

http://arduino.cc/forum/index.php?topic=56057.0

reply 67 and 68 is what put me onto it

from ethercard.

PaulViscovich avatar PaulViscovich commented on June 7, 2024

Ok i have 0022 installed and have the GitHub version of the lib and have just renamed the examples .pde and the compiled and ran fine... Again thanks for making the ethernet simpler to use.. Time to go over the lib now and exampiles and try to start converting my reefcontroller over to your lib..

Thanks again

from ethercard.

Hexagon avatar Hexagon commented on June 7, 2024

I had the same problem - no link light, no activity. But after a change to SELECT_BIT 2 everything works as a charm.

Awesome! :)

from ethercard.

thiseldo avatar thiseldo commented on June 7, 2024

I have an update coming soon that adds an extra parameter to one of the functions that enables you to specify 10 or 8, or no parameter for default behaviour. This is so that shields like the Nuelectronics EtherShield will work without having to hack the library. I have a number of different boards, some shields, others with integrated ENC28J60 so having the ablilty to select the CS pin to use from the sketch is an advantage.

Cheers

Andy

from ethercard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.