- Netduino Forums
- → erich's Content
erich's Content
There have been 21 items by erich (Search limited from 28-September 23)
#18324 Socket.Connect blocks all threads?
Posted by erich on 22 September 2011 - 01:09 PM in Netduino Plus 2 (and Netduino Plus 1)
#18291 Launching an application from an SD card fails. AppDomain.CreateInstanceAndUn...
Posted by erich on 21 September 2011 - 12:39 PM in Beta Firmware and Drivers
#17604 How to reset the Netduino Plus?
Posted by erich on 05 September 2011 - 08:56 PM in Netduino Plus 2 (and Netduino Plus 1)
#18475 UPDATE: Fixed for RC3 -- New Bug discovered in Socket.Connect Method!
Posted by erich on 27 September 2011 - 09:54 AM in Beta Firmware and Drivers
Will this issue be fixed in RC3 - if so when?
Note the code runs ok on the MS Emulator.
My code is pretty identical to this
#18484 Light me up!
Posted by erich on 27 September 2011 - 11:51 AM in Netduino Plus 2 (and Netduino Plus 1)
#17946 NIST Daytime Protocol Client
Posted by erich on 13 September 2011 - 08:09 PM in Visual Basic Support
#18539 Crash on network socket unplug
Posted by erich on 28 September 2011 - 08:47 AM in Netduino Plus 2 (and Netduino Plus 1)
#18498 Network stability issues
Posted by erich on 27 September 2011 - 02:44 PM in Netduino Plus 2 (and Netduino Plus 1)
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;
using Microsoft.SPOT.Net.NetworkInformation;
namespace NetstabTest
{
public class Program
{
public static void Main()
{
Program p = new Program();
NetworkChange.NetworkAvailabilityChanged += p.NetworkAvailibilty;
p.GetNetworkAccess();
int i = 0;
while (true)
{
Debug.Print("sleeping:" + i++);
Thread.Sleep(500);
}
}
private void NetworkAvailibilty(object sender, NetworkAvailabilityEventArgs e)
{
Debug.Print("Network availibility" + e.IsAvailable);
GetNetworkAccess();
}
public void GetNetworkAccess()
{
NetworkInterface[] nis = NetworkInterface.GetAllNetworkInterfaces();
for (int i = 0; i < nis.Length; i++)
{
NetworkInterface networkInterface = nis[i];
if (networkInterface.NetworkInterfaceType == NetworkInterfaceType.Ethernet)
{
string m_macAddress = networkInterface.PhysicalAddress[0].ToString();
for (int j = 1; j < networkInterface.PhysicalAddress.Length; ++j)
{
m_macAddress += "-" + networkInterface.PhysicalAddress[j].ToString();
}
string[] m_staticDnsAddresses = new string[] { "0.0.0.0", "0.0.0.0" };
for (int k = 0; k < networkInterface.DnsAddresses.Length; ++k)
{
m_staticDnsAddresses[k] = networkInterface.DnsAddresses[k];
}
Debug.Print(networkInterface.IPAddress);
}
}
}
}
}
#18535 Network stability issues
Posted by erich on 28 September 2011 - 08:13 AM in Netduino Plus 2 (and Netduino Plus 1)
Strange, when I run the exact same code in VB it works perfectly. No problems at all.
Netduino Plus rev.B, capabilities:HalSystemInfo.halVersion: 4.2.0.0 HalSystemInfo.halVendorInfo: Netduino Plus (v4.2.0.0 RC1) by Secret Labs LLC HalSystemInfo.oemCode: 34 HalSystemInfo.modelCode: 177 HalSystemInfo.skuCode: 4097 HalSystemInfo.moduleSerialNumber: 00000000000000000000000000000000 HalSystemInfo.systemSerialNumber: 0000000000000000 ClrInfo.clrVersion: 4.2.0.0 ClrInfo.clrVendorInfo: Netduino Plus (v4.2.0.0 RC1) by Secret Labs LLC ClrInfo.targetFrameworkVersion: 4.2.0.0 SolutionReleaseInfo.solutionVersion: 4.2.0.0 SolutionReleaseInfo.solutionVendorInfo: Netduino Plus (v4.2.0.0 RC1) by Secret Labs LLC SoftwareVersion.BuildDate: Aug 7 2011 SoftwareVersion.CompilerVersion: 400902 FloatingPoint: True SourceLevelDebugging: True ThreadCreateEx: True LCD.Width: 0 LCD.Height: 0 LCD.BitsPerPixel: 0 AppDomains: False ExceptionFilters: True IncrementalDeployment: True SoftReboot: True Profiling: False ProfilingAllocations: False ProfilingCalls: False IsUnknown: False
Try running with MFDeploy instead of the Visual Studio debugger, it gives some more info like:
You can do this by opening C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Tools\MFDeploy.exe, select USB, the device and press F5. Then press the reset button on your netduino to re-run your app.
Hi Stephan,
Just been using MFDeploy - once I reverted to DHCP - I the same as you got except after AutoNegotiate complete -rather than getting NetworkConnection true I get System.Net.Sockets.SocketException. Any ideas why? I am running RC4.2
regards
Eric
#19769 Export TXT File from NetDuino Plus to PC
Posted by erich on 25 October 2011 - 08:18 PM in Netduino Plus 2 (and Netduino Plus 1)
#17882 Newbie - List of supported classes
Posted by erich on 12 September 2011 - 08:13 AM in Visual Studio
#18869 Cannot Connect to Pachube
Posted by erich on 06 October 2011 - 12:52 PM in Netduino Plus 2 (and Netduino Plus 1)
#18236 Post Reflash RC4.2
Posted by erich on 20 September 2011 - 10:21 AM in Netduino Plus 2 (and Netduino Plus 1)
#18482 Socket.Receive max out on 256 bytes?
Posted by erich on 27 September 2011 - 11:43 AM in Netduino Plus 2 (and Netduino Plus 1)
#18277 Over ambitious ???
Posted by erich on 21 September 2011 - 08:45 AM in Netduino Plus 2 (and Netduino Plus 1)
#18289 Over ambitious ???
Posted by erich on 21 September 2011 - 12:28 PM in Netduino Plus 2 (and Netduino Plus 1)
#17582 Deploying Microsoft.SPOT.TinyCore
Posted by erich on 05 September 2011 - 03:18 PM in Netduino Plus 2 (and Netduino Plus 1)
#17577 Deploying Microsoft.SPOT.TinyCore
Posted by erich on 05 September 2011 - 01:19 PM in Netduino Plus 2 (and Netduino Plus 1)
#17647 Deploying Microsoft.SPOT.TinyCore
Posted by erich on 06 September 2011 - 07:58 AM in Netduino Plus 2 (and Netduino Plus 1)
#18773 What should I do?
Posted by erich on 04 October 2011 - 02:15 PM in Netduino Plus 2 (and Netduino Plus 1)
#17990 Slow death
Posted by erich on 14 September 2011 - 12:31 PM in Netduino Plus 2 (and Netduino Plus 1)
- Netduino Forums
- → erich's Content
- Privacy Policy