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.

whitecap

Member Since 15 Feb 2011
Offline Last Active Jan 17 2016 02:33 AM
-----

Posts I've Made

In Topic: WebRequest Timeout property doesn't work

08 October 2014 - 12:30 AM

This is a late reply I know but...

 

The webrequest timeout appears to be broken in the Netduino. If the webrequest target device is not available the request will simply wait forever and hang.

 

I got around the problem by wrapping the webrequest in a ping request. If the ping succeeds the webrequest is executed. If the ping fails the request is bypassed.

 

I used this version of Ping and it appears to work well:

 

https://github.com/gittela/pingbox


In Topic: HttpWebRequest GetResponse Error

13 August 2014 - 11:27 PM

Is there any way to use the netmf_toolbox_http_client with a timeout (like httpWebRequest)? If the site does not respond the client appears to wait indefinitely.  

 

Thanks

Mike


In Topic: Netduino Plus 2 Firmware v4.3.1

19 May 2014 - 02:34 PM

I managed to solve this issue. I was getting the following warning message which suggested where the problem lay:

 

Warning 1 The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\mscorlib.dll' D:\Data\Netduino\WebSrv\WebSrv\CSC WebSrv
 
When I resolved the warning, the problem went away and everything works now.
 
Regards
Mike

In Topic: Netduino Plus 2 Firmware v4.3.1

18 May 2014 - 12:34 AM

Hi Chris,

 

Thanks for your reply. Unfortunately, I cannot do what you suggested. When I deploy this one line application referencing PWM... during the deploy Windows pops up a message saying:  

 

"The last device you connected to this computer malfunctioned, and Windows does not recognize it"

 

After that, MFDeploy will not see the board again until I reload the board with 4.3.1. All of my Netduinos (5) behave the same way. I guess it could be my PC. When this first happened I uninstalled everything (VS2012, MF framework SDK, Secret SDK) and re-installed it all. But the problem continued.

 

Could I use the MS PWM library instead? Can you think of any other troubleshooting approaches?

 

Thanks for your help.

 

Mike


In Topic: Netduino Plus 2 Firmware v4.3.1

17 May 2014 - 05:19 PM

Hi There,

 

I am running Windows 8, VS 2012 Premium, Netduino 4.3.1.

 

If I simply create an application that attempts to use the Secret PWM library (see below)... during deploy I get a message that the PC no longer recognizes the USB device. From that point the only recourse I have is to take the Netduino back to 'bare metal' and reload everything. Other than PWM all the other applications I load on the device seem to work without problem.

 
Is there some issue with the Secret PWM library or is it something I am doing? I have several Netduinos and they all behave the same way.

 

Thanks for any assistance.

 

Regards

Mike

 

using System;
using System.Net;
using System.Threading;
using Microsoft.SPOT;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;
 
namespace TestProject
{
    public class Program
    {
        public static void Main()
        {
             //write your code here
            SecretLabs.NETMF.Hardware.PWM servo = new SecretLabs.NETMF.Hardware.PWM(Pins.GPIO_PIN_D2);
           ...
           etc.
 
 
 
 

 


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.