I'm wanting to make other people aware of the work Peter from tinker.it London has been doing on shrinking the size of the Ethernet library and adding additional functionality. The code is available here:
Now, I'm pretty sure he wanted me to sign a whole load of disclaimers about it being untested before agreeing to me posting about it but I think it's important work and think others would be interested in trying it out.
I haven't yet tested it out but wanted to post about it before I forgot to do so again.
Yes, please test it out and let me know how it works. I'd love to have a smaller library but didn't want to include it until it was tested (and I didn't have time to do it).
I've just used the Ethernet2 library for the first time and my sample code seemed to function the same as with the original Ethernet library. Obviously there could be some subtle incompatibly I'm not seeing but certainly IWFM at the moment.
for how long did you get the arduino working without a reset?
With the old libary I only get around 12 hours without a hanging, I hope this libary hasn't got this bug...
I would love to test it ... just have a quick question ... If I copy the client, server, ethernet2, and print files to a folder named ethernet2 in my libraries folder then all I have to do is change the #include <Ethernet.h> to #include <Ethernet2.h> ???
To make this easier for people to try I out I have exported revision 43 of the code from the SVN repository and zipped it up*.
You should be able to unzip the archive and then place the Ethernet2 folder and content in your libraries directory. Then you can change your include line to be Ethernet2 and it should work.
The loop funcion is quite easy. As soon as 5 minutes are over arduino is going to a Webpage with a MYSQL Database and stores 3 Sensor values to this Database. That's it.
What's wrong about that???
ok this migth work but I got further code... For example an XBee wich is receiving data from other stations...
And the server will answer to the data I sent...
I'm bummed ... I was hoping that this new ethernet library would solve my problem ... It didn't after five connections the Arduino the arduino actively refuses the next connection.
The long and short of it is ... I have a .net app on my computer that sends IR timing pairs to the arduino then it flashes a IR led ... if I wait a min or so between commands it works ... but I want to turn a ipaq in to a remote ... any ideas would be very helpful ... it anyone has any ideas why it would work four or five times then stop working for a min ???
is there any way to close those connections when I'm done with them ... I'm sure thats what happening ... Or do I have to wait for it to timeout/close them its self