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.

Duefectu

Member Since 29 Nov 2012
Offline Last Active Nov 20 2014 11:00 AM
-----

Topics I've Started

Hang on socket connect

06 November 2013 - 01:16 PM

Hello:

 

I have several (12) NP2 with 4.2.2 firmware.

 

I use an IP socket to request the time to a server. Simply send "DATETIME" and it returns the time.

 

When I use socket.connect, and the server is down, the program hangs. No exception and no continue.

 

This is the simple code:

var ipB=new byte[]{ 192, 168, 0, 100 }var ep = new IPEndPoint(new IPAddress(ipB), 4000);Debug.Print("Connecting...");soc.Connect(ep);Debug.print("Connected!");

The console shows "Connecting...", but never "Connected!" or exception is the server/service is down.

 

To avoid hang of the NP2, I run this code in a new Thread. The application still running, but never continues to "Connected!", and the application hangs after time (minutes/hours).

 

Curiosity: If I abort the socket thread, I receive an IO exception when try to write to the SD card and when try to Access to IO ports.

 

Any suggestion?

 

Thanks for your time!


NP2 Firmware 4.3

18 October 2013 - 11:39 AM

Hello:

 

If there a firmware update for NP2 to MicroFramework 4.3?

 

Thanks for your time!

 


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.