Hi everyone
I start a new topic on an already discussed but unsolved issue.
I am using a G400D based custom board with the following code:
using System;
using System.Threading;
using Microsoft.SPOT;
namespace testETH
{
public class Program
{
public static void Main()
{
try
{
Thread.Sleep(5000);
Thread ethernetThread = new Thread(EthernetThread);
ethernetThread.Start();
Thread.Sleep(-1);
}
catch (Exception e)
{
Debug.Print(e.Message);
}
}
private static void EthernetThread()
{
DateTime now = DateTime.Now;
using (GHI.Networking.EthernetBuiltIn ethernet = new GHI.Networking.EthernetBuiltIn())
{
Debug.Print("Ethernet constructor time (ms) = " + ((DateTime.Now - now).Ticks / TimeSpan.TicksPerMillisecond));
ethernet.Open();
ethernet.EnableStaticIP("192.168.0.133", "255.255.255.0", "0.0.0.0");
Thread.Sleep(13000); //accept pings for this time
// ethernet.Close();
}
}
}
}
When I launch the program using visual studio, I can’t ping the board whereas when the debugger is not running all is ok.
@ John can you test this ? last time you did the test the issue didn’t occur to you and we really need to solve that as soon as possible.