
PING a host on the network
#1
Posted 27 July 2011 - 12:07 AM
#2
Posted 28 July 2011 - 01:20 AM
Attached Files
- Johann likes this
#3
Posted 29 July 2011 - 04:43 PM
#4
Posted 29 July 2011 - 06:19 PM
Exception System.Net.Sockets.SocketException - CLR_E_FAIL (1)on
new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);
- Black Rose likes this
#5
Posted 29 July 2011 - 07:27 PM
Hmm, like I said above, I was doing this in the emulator as I don't have my netduino yet(should arrive tomorrow)I've just tried this now, and it hits the same issue as I had here
Exception System.Net.Sockets.SocketException - CLR_E_FAIL (1)on
new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);
May not be supported on the netduino.
I take it you are compiling fine? Just get that error when running?
#6
Posted 29 July 2011 - 07:39 PM
Hmm, like I said above, I was doing this in the emulator as I don't have my netduino yet(should arrive tomorrow)
May not be supported on the netduino.
I take it you are compiling fine? Just get that error when running?
Yeah, compiled fine, and ran when in the emulator. Deployed to Netduino and exception is thrown.
- Black Rose likes this
#7
Posted 29 July 2011 - 08:04 PM
#8
Posted 29 July 2011 - 08:30 PM
#9
Posted 29 July 2011 - 10:27 PM
I can change it to SocketType.Raw and ProtocolType.Raw and get past that line when debugging on the netduino pro. It fails on the sendTo though.
new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);
Works just fine in the emulator though with raw and raw.

Guess the lwIP stack isn't quite as comprehensive as the other one.
#10
Posted 31 July 2011 - 04:19 PM
I believe that the emulator uses the closed-source RTIP networking stack instead of the lwIP open-source networking stack.
If this is supported in lwIP and it fits, we could certainly enable it.
Chris
Chris,
If there is anything you can do to enable this soon it would be greatly appreciated by many. In my situation I bought one netduino plus to test an application. If this can be made to work I'll almost instantly be purchasing several more to use for my ping testing application. I think your choices are either to fix what these guys are hitting with sockets or implement .net's ping() class, which may just handle more of this inherently.
#11
Posted 31 July 2011 - 05:18 PM
#12
Posted 31 July 2011 - 05:40 PM
- Black Rose likes this
#13
Posted 31 July 2011 - 07:11 PM
#14
Posted 31 July 2011 - 08:56 PM
#15
Posted 02 August 2011 - 06:40 AM
Comments
wrote Tue at 6:19 AM
Resolved with changeset 12576.
#16
Posted 02 August 2011 - 02:06 PM
Good to hear. Thanks for posting that bug report.That was quick!
#17
Posted 04 August 2011 - 12:28 AM
new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);
- Black Rose likes this
#18
Posted 04 August 2011 - 12:40 AM
Hi Glen,I downloaded the 4.2 RC today and am using the Netduino 4.2 beta 1 firmware. Still have it throw an exception when it hits this line
new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);
We'll need to update the firmware to incorporate the new RC code. Should be posted by next week, for all three Netduinos (regular, Plus, and Mini).
Chris
#19
Posted 04 August 2011 - 12:43 AM
Hi Glen,
We'll need to update the firmware to incorporate the new RC code. Should be posted by next week, for all three Netduinos (regular, Plus, and Mini).
Chris
Ah, ok. I was thinking since you had mentioned earlier:
That it would work straight away. I'm looking forward to next week in that caseThe Netduino firmware does compile in ICMP support in the lwIP networking stack. It appears that there may be a bug in the .NET MF implementation of lwIP which supports incoming pings correctly...but does not support outgoing pings directly.

#20
Posted 07 August 2011 - 10:33 PM

0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users