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

Digital IO interrupt causing USB reset?

USB NETWORK

  • Please log in to reply
1 reply to this topic

#1 Fred007

Fred007

    Member

  • Members
  • PipPip
  • 25 posts

Posted 05 May 2014 - 04:50 PM

I have a program that communicates over the net via sockets, and uses COM1 to talk to a OneWire bus. I also monitor the digital IO ports for simple circuit monitoring. Using a Netduino Plus 2 with 4.3 firmware, when I open a closed circuit, it will cause the PC to rediscover the Netduino over USB. (i get the unplug and plug in sounds). This causes the network connection to be reset. I have catches all over the code and can't see anywhere in my code where the socket would be closed, but that is what is being reported on the other end.

 

I also posted a note about very slow debug performance (when you step lines of code) and when I attach the debugger I get the USB reset sounds a couple of times. Things appear to be working, but I wonder about the Netduino driver. This is on a Windows 8.1 Update x64 machine.

 

Any ideas on why just opening/closing a digital port circuit would cause the connection with the PC to reset?

 

Thanks.



#2 Fred007

Fred007

    Member

  • Members
  • PipPip
  • 25 posts

Posted 06 May 2014 - 03:21 PM

Ok, a hard post to write, but please ignore this. I failed to create a NativeEventHandler and was just assigning the method address. Whoops. Caused all kinds of nasty problems, but not right away. As I saw in another post, please ignore, nothing to see here...







Also tagged with one or more of these keywords: USB, NETWORK

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.