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.
- Netduino Forums
- → Viewing Profile: Topics: TomYee
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.
Community Stats
- Group Members
- Active Posts 9
- Profile Views 6720
- Member Title New Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
Neutral
User Tools
Friends
TomYee hasn't added any friends yet.
Topics I've Started
Socket errors 10056 and 10060
08 May 2011 - 12:40 PM
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:
Thanks for any help!!!
Tom
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);
Thanks for any help!!!
Tom
- Netduino Forums
- → Viewing Profile: Topics: TomYee
- Privacy Policy