Ethernet interface for Particle using W5500 User Library Complete


#81

Yes I did. Search for A1 and change them all, plus the initial call. It is working for me.


#82

You will have to rewire as well but I’m sure you know that.


#83

The product says on it webpage:

“Does Not Yet Support Communications to the Particle Cloud”

What does this mean? If this gets the Photon on the network, why can’t the cloud be reached?

Thanks.


Connecting to Photon via Ethernet
#84

Because you can’t tell the system firmware to use that application code library for its internal tasks.

Native cloud communication is a system task, not an application task. User applications can only use the dedicated functions to hand parameters to the system which in turn runs it through its own network stack.
There is currently no way to redirect the system to a different network stack than then one in its own bowels - you’d need to fork the system firmware and adapt that.


#85

Thank you @ScruffR for your prompt response.

I do not understand though. The shield comes with TCP client/server examples. So can I use this shield to communicate to my own TCP server on a public IP address?


I thought this thread was no loner alive so I posted a separate post. I will try to delete it.


#86

Particle Cloud communication is a very special kind of communication and has its own security layer. Without feeding the data through that, the Particle cloud will not accept the conversation.


#87

I see. So what can this shield be used for? Just to communicate to another machine on a local hub using a local IP (192.xxx.xxx.xxx)?

Thanks again.


#88

I think you are confusing Particle Cloud and internet.

You can connect not only locally but also to the internet but you cannot talk to the Particle Cloud (a very specific target) with this.


#89

Thank you @ScruffR, indeed I was. OK, it is clear now.

In my application, I do not need the Particle Cloud, so this is good news.

Thanks again and sorry for the double post.


#90

Hi @IOTrav, overall your W5500 library has been working great, thanks again for the hard work on that!

However, I have now run into a difference between the standard UDP module and your EthernetUDP module, which is that the former includes methods joinMulticast() and leaveMulticast(), while the latter does not.

These methods are used for example in the MDNS library for Photon. I tried looking deeper into this myself to see if I could port the methods over but it led down a rabbit hole leading to wiced_multicast_join() within the Photon’s socket_hal.cpp which requires a wiced_wlan_interface() as one parameter. I wasn’t sure where to go from there.

Any ideas for how these methods could be added to EthernetUDP, or more generally how the MDNS library could be used with the W5500?

Thanks!


#91

I think you can do this but you will get better advice over in the WizNet forum:


#92

Thanks @bko, that looks promising (and hopefully not too far over my head). I’m moving this week but will try to dive in more next week.