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.

TomYee

Member Since 06 May 2011
Offline Last Active May 31 2011 12:05 AM
-----

Topics I've Started

Socket errors 10056 and 10060

08 May 2011 - 12:40 PM

I am having some difficulties with the HelloPachubeSockets example 9-1 from Getting Started with the Internet of Things.

When running on the Netduino Plus through the USB connection, I very frequently (90% of the time) get either socket error 10060 (Connection timed out) or 10056 (Socket is already connected). However, when running on the Emulator, this never happens.

To make sure that this is really a hardware versus emulation problem rather than a programming issue, I modified example 9-1 so that I could switch easily between using AnalogInput in hardware, versus using a random number generator when using the Emulator by means of a #define at the start of the program.

I have attached my solution.

System.NotSupportedException

06 May 2011 - 01:24 AM

Hello, I'm having difficulty with the Voltage Reader example 3-2 from "Getting Started with the Internet of Things." I'm working with a Netduino Plus.

Software Configuration:
Microsoft Visual Studio 2010 Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework Version 4.0.30319 SP1Rel
Installed Version: C# Express
Microsoft .NET Micro Framework v4.1 01014-169-2560017-70602
Microsoft .NET Micro Framework SDK v4.1 Version 4.1.2821.0
Microsoft Visual C# 2010 01014-169-2560017-70602
Microsoft Visual C# 2010 Express - ENU Service Pack 1 (KB983509) KB983509
In addition to the above, I downloaded and installed the netduinosdk_32bit.exe

As soon as I attempt to instantiate a new instance of AnalogInput, I get "An unhandled exception of type 'System.NotSupportedException' occurred in SecretLabs.NETMF.hardware.dll".

I would have attempted to step into the assemblies using Red Gate .NET Reflector, except that Reflector does not integrate with the Express edition of Visual Studio 2010. But using Reflector, I can see that the AnalogInput constructor makes a call to an externally implemented method ADC_Enable() whose implementation I can't locate:

[MethodImpl(MethodImplOptions.InternalCall)]
private extern void ADC_Enable(uint pin);

I presume that I did a newbie mistake and forgot to install something that I should have installed.

Thanks for any help!!!
Tom

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.