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.
Photo

Netduino Plus and Socket.Receive hang


  • Please log in to reply
No replies to this topic

#1 Fred007

Fred007

    Member

  • Members
  • PipPip
  • 25 posts

Posted 30 April 2014 - 02:36 PM

I have a Netduino plus with the 4.2.0 firmware, and am using VS 2013 targeting the 4.2 MF. The Netduino is a client posting network updates to a "server" elsewhere on the net. For the most part, things appear to be working fine. However, once in a while, notice it when the server app is on a machine that goes to sleep, the socket.receive call just hangs forever. I do have a receive timeout specified and when the hang happens, it looks like the whole board has gone south. Have a timer routine sampling my sensors that toggles the LED, when it hangs, all activity on the board stops.

 

I was wondering if this might be a known issue and if there are any workarounds to this? In the event of the server going away (sleeping,problems,etc.) I am expecting the receive to eventually timeout which triggers a send (keep alive) packet which should throw an exception because the socket is now invalid. I have all this recovery code in there and working, problem is that the receive never comes back.

 

I have a Plus 2 and am going to try that with the 4.3 MF but was curious if the problem I am experiencing may be a know issue.

 

Thanks.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.