Unable to deploy without disconnect\reconnect USB cable
#21
Posted 17 September 2011 - 05:48 AM
#22
Posted 07 November 2011 - 05:27 AM
#23
Posted 07 November 2011 - 07:42 AM
The issue was at least partially resolved by the new 4.2 beta drivers and the new way that the 4.2 RC3 firmware resets the board. If you're having the same issue using .NET MF 4.2 on the board...then please raise the issue on CodePlex again... It may be specific to certain types of USB/computer hardware configurations.Has there been any real progress on getting this bug fixed? This first report I see of this on Codeplex was way back in June and it doesn't look like any progress has been made towards resolution.
Does the forum software have the ability to take a vote? Seems like it would be good to know how many people are affected by this bug.
Chris
#24
Posted 18 June 2012 - 01:14 AM
#25
Posted 24 December 2013 - 09:15 PM
Jarrid:
Your solution worked for me, too, and I had the same problem almost two years after this thread started!
Thanks for the help!
#26
Posted 10 February 2016 - 05:03 AM
I just bought a Netduino 3 and seem to be having a similar problem.
I tried the "pushing the onboard button" from "getting started with netduino" and a similar thing happen.
Sequence of what happens:
-I upload the program to the netduino
-I press and release the onboard button
-The computer makes the USB disconnect sound
-The LED turns on for about 5 seconds
-LED turns off
If I press and hold the onboard button:
-I press and hold the onboard button
-The computer makes the USB disconnect sound and the onboard LED turns on
-I release the onboard button
-The USB reconnect sound comes from the computer
-The LED stays on for an additional 5 seconds after the button release
-The LED goes out
Here is the code:
#27
Posted 10 February 2016 - 05:12 AM
I know the last post was very long ago, but I had the same problem and think I have a solution. I was coding everything in separate threads and allowing Main() to end, with the remaining threads actually doing the work. With a lot of trial and error, I finally decided to let Main() live forever, even though the thread had no work left to be done. Once I placed Thread.Sleep(Timeout.Infinite); at the end of Main(), I have never had to reset my USB connection. Hope this is helpful.
Would you please post an example of code for this?
I attempted to add it and get an warning "unreachable code"
#28
Posted 26 February 2016 - 07:45 AM
Hi
Sorry about the late response I missed you post
{ public static void Main() { InterruptPort button = new InterruptPort(Pins.ONBOARD_BTN,false,ResistorModes.Disabled, Port.InterruptMode.InterruptEdgeHigh ) button.OnInterrupt +=button_OnInterrupt; Thread.Sleep(Timeout.Infinite) ; } static void button_OnInterrupt(uint data1, uint data2, DateTime time) { // Do stuff here } }
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users