Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Mercer

Member Since 16 Jan 2012
Offline Last Active Jan 01 2013 09:35 PM
-----

Posts I've Made

In Topic: Support for UDP Multicast?

22 December 2012 - 06:00 AM

Hi Mercer,

Is this code which works on some other NETMF board? If NETMF supports it and turning on the feature won't overflow the RAM, we could certainly support it.

If it's not something which NETMF supports, we can request that it be added (or add it as a community and contribute it to the netmf.codeplex.com core).

Chris



Chris.

I did some testing on another board, and the following code works as expected.

            Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
            socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastInterface, multicastIPAddress.GetAddressBytes());
            socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastTimeToLive, 1);

            IPAddress DestinationIP = new IPAddress(new byte[] { 239, 255, 0, 1 });
            IPEndPoint DestinationEndPoint = new IPEndPoint(DestinationIP, 5568);

So, it looks like this could be supported in future releases and would make a great addition. Thank you for considering.

In Topic: Support for UDP Multicast?

17 December 2012 - 11:21 PM

When I call SetOption, I get the following error A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastInterface, multicastIPAddress.GetAddressBytes()); //Fails socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastTimeToLive, 1); // Fails socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true); // Works Any chance of getting this fixed/added in future releases?

In Topic: Support for UDP Multicast?

17 December 2012 - 11:19 PM

mIP could be modified to do generic UDP multicast. Right now mIP does multicast for the mDNS implementation. All the code is C# too. The only hiccup is getting a firmware build without the Ethernet compiled in. Chris, what would happen if someone loaded the NetduinoGo firmware on the N2+ ?

See mip.codeplex.com

-Valkyrie-MT


Thanks Valkyrie for the suggestion.

In Topic: Netduino plus 2 - Webbserver -

11 December 2012 - 06:18 PM

Yes, see the following thread. http://forums.netdui...nmikawebserver/

In Topic: NeonMika.Webserver

11 December 2012 - 04:47 AM

Thanks Dave. The download you provided works perfectly. I did have to make one small change when using DCHP.

//Dynamic IP
  interf.EnableDhcp( );
//interf.RenewDhcpLease( );

Calling RenewDhcpLease() sets the IP address to 0.0.0.0. Just calling EnableDhcp() enables DHCP and gets an address.

Thanks again!

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.