TrippyLighting / EthernetBonjour

Bonjour Library for Arduino & Teensyduino
53 stars 46 forks source link

Cannot compile with Ethernet2 library #5

Closed mentaluproar closed 7 years ago

mentaluproar commented 8 years ago

We W5500 users need ethernet2, and it seems the changes needed to make this work do not work with the ethernet2 library. The closest I can get is throwing ethernet2 files in the ethernet library folder, but then I get errors about redefining things.

please help

TrippyLighting commented 8 years ago

What errors are you getting and what Arduino IDE version are you working with ? The EthernetBonjour library works exclusicvely with UDP calls and is not hardware dependent so should actually work with the W5500. However, I am thinking that you may be missing a couple of modifications to the EthernetUDP.cpp and .h that enable multicast DNS which is a requirement for Bonjour to work.

TrippyLighting commented 8 years ago

And please provide a link to the library you are mentioning.

mentaluproar commented 8 years ago

The ethernet2 library is included with the arduino IDE from arduino.org, not arduino.cc.

I replaced the ethernet2 library with originals and tried to modify them again. Now, they don't work. Sorry, I'm a noob here and while the answer is probably obvious, I cannot find it.

The changes I'm making are the ones shown here: http://forum.arduino.cc/index.php?topic=234340.0

TrippyLighting commented 8 years ago

If you've made the modifications to the Ethernet library (Ethernet2 in your case) I described in the post on the Arduino forum you liked to in you last post, did you replace the one reference to W5100 with W5500 ? This may be all it takes.

mentaluproar commented 8 years ago

nope. Ethernet2 doesn't work at all now.

Arduino: 1.7.7 (Mac OS X), Board: "Arduino Uno"

/Applications/Arduino.app/Contents/Java/libraries/Ethernet2/src/EthernetUdp2.cpp: In member function 'virtual uint8_t EthernetUDP::beginMulti(IPAddress, uint16_t)': /Applications/Arduino.app/Contents/Java/libraries/Ethernet2/src/EthernetUdp2.cpp:227:16: error: 'W5500' was not declared in this scope uint8_t s = W5500.readSnSR(i); ^ /Applications/Arduino.app/Contents/Java/libraries/Ethernet2/src/EthernetUdp2.cpp:245:2: error: 'W5500' was not declared in this scope W5500.writeSnDIPR(_sock, rawIPAddress(ip)); ^ Error compiling.

This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.

it said the same thing before, just W5100.

mentaluproar commented 8 years ago

Would you like me to send you the library after I made the edits?

On Nov 20, 2015, at 5:02 PM, TrippyLighting notifications@github.com wrote:

If you've made the modifications to the Ethernet library (Ethernet2 in your case) I described in the post on the Arduino forum you liked to in you last post, did you replace the one reference to W5100 with W5500 ? This may be all it takes.

— Reply to this email directly or view it on GitHub.

TrippyLighting commented 8 years ago

@mentaluproar Did you ever get this to work ? I have some time over the holidays to look at this and possibly finally update this library.

mentaluproar commented 8 years ago

I never did get it to work. I got a few other boards with Ethernet to try but haven't had time to really test them yet. I now have the arduino ethernet, arduino yun, Intel Galileo 2, arduino uno and mega with that w5500 Ethernet shield.

So I can certainly test whatever you want me to.

On Dec 11, 2015, at 5:51 PM, TrippyLighting notifications@github.com wrote:

@mentaluproar Did you ever get this to work ? I have some time over the holidays to look at this and possibly finally update this library.

— Reply to this email directly or view it on GitHub.

mentaluproar commented 8 years ago

My semester is finally over and I'm ready to test whatever code you have for me.

On Dec 11, 2015, at 8:18 PM, Sean Carson thatdamnrainbow@gmail.com wrote:

I never did get it to work. I got a few other boards with Ethernet to try but haven't had time to really test them yet. I now have the arduino ethernet, arduino yun, Intel Galileo 2, arduino uno and mega with that w5500 Ethernet shield.

So I can certainly test whatever you want me to.

On Dec 11, 2015, at 5:51 PM, TrippyLighting notifications@github.com wrote:

@mentaluproar Did you ever get this to work ? I have some time over the holidays to look at this and possibly finally update this library.

— Reply to this email directly or view it on GitHub.

GertjanBiasino commented 8 years ago

Hi, I have the same problem. I have an ethernet shield 2 and have to use the ethernet2 library. When i use the oscuino library it seems to work with just replacing "include ethernet..." With ethernet2 But he oscuino library is not campatible with the other software i want to use (isadora) To comunicate with isadora i have to use the ardosc library but then i got the same problem as you discribed above. Also tryed to replace the files and tried to change the library files to ethernet2 and w5500 but same error as you.

Did you find a sollution?

TrippyLighting commented 8 years ago

You almost certainly do NOT have the same problem. As such please respect the GitHub etiquette. this is not an open discussion forum for Osucino but for the Ethernet Bonjour library.

As to you your statement that Oscuino is incompatible with Isadora, that is unlikely to be the case. What is more likely the case is that you simply have not figured out how to use Oscuino library. I'd be interested in helping you and others. A quick Google search shows that you've presented this problem on the Isadora Forum and another user advised you to use ArdOsc. That is not good advise! ArdOsc is very old and not maintained anymore. I switched from ArdOsc to Oscuino years ago because Oscuino is the reference implementation by the inventors of the OSC protocol and is actively maintained. Oscuino also has a GitHub repository. It is also much more complete than ArdOsc.

As to the Ethernet 2 library I'll look into that. But, again please let's discuss the isadorta related topic over to my blog and the little Oscuino tutorial I published there. If we figure out how to get this done in the spirit of open source I'll publish another tutorial, with code, how to send and receive OSC messages with Isadora.