- Netduino Forums
- → Viewing Profile: Posts: erich
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.
About Me
I am freelance developer of UK original living France, mostly standard windows/internet DotNet stuff. Due to a client requirement , I am expanding into the new territory of Micro tech. Client is still undecided on final platform but I am quite into Netduino Plus. Lots of good stuff like expansion, Ethernet and SPI
Community Stats
- Group Members
- Active Posts 21
- Profile Views 6900
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
-
Location
France
-
Interests
C#, VB.NET, Javascript.
Taxi service for my kids
0
Neutral
User Tools
Friends
erich hasn't added any friends yet.
Posts I've Made
In Topic: Export TXT File from NetDuino Plus to PC
25 October 2011 - 08:18 PM
Without running your code I am not sure what your problem is.
You have 2 pieces of code; data recording and data transfer which need to be threaded to run at the same time. My experience is this can memory issues (which I never resolved though I had other stuff going on to).
My solution was to start the webserver in 1 thread then started data recording. Not sure whether you will need to close the file to upload data.
In Topic: Cannot Connect to Pachube
06 October 2011 - 12:52 PM
I have seen N+ hang on a socket connection and also with DNS. I would try hard coding the target IP address. The other thing to bare in mind is the networking using a lot of memory which the then causes indirect and undefined errors, especially if you have a lot of other stuff going on.
In Topic: Crash on network socket unplug
28 September 2011 - 08:47 AM
Hi Phil,
I haven't seen your issue, mainly because I have get Socket.Connect() hanging problem (My Sockets are using http or udp). We too wanted to use Netduino in a production environment, but this another issues mainly memory related mean we are having to consider our options.
Netduino Plus is a nice platform - very compact, lots of features, interesting price But................
In Topic: Network stability issues
28 September 2011 - 08:13 AM
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
In Topic: Network stability issues
27 September 2011 - 02:44 PM
I have a C# version without non availability for 500+ iterations but it is interesting. I hoped it might have explained a Socket.Connect() problem I am experiencing.
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);
}
}
}
}
}
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);
}
}
}
}
}
- Netduino Forums
- → Viewing Profile: Posts: erich
- Privacy Policy