- Netduino Forums
- → kluger's Content
kluger's Content
There have been 9 items by kluger (Search limited from 28-April 23)
#28089 Ethernet never works if not connected on boot up?
Posted by kluger on 25 April 2012 - 05:13 PM in Netduino Plus 2 (and Netduino Plus 1)
#27980 Ethernet never works if not connected on boot up?
Posted by kluger on 24 April 2012 - 01:51 AM in Netduino Plus 2 (and Netduino Plus 1)
Recall I have two N+s on my network:
1) Netduino+ "A" is sending http request to "B" upon a button press (uses Socket.Connect())
2) Netduino+ "B" is listening for http requests (uses Socket.Listen())
I have already described the behavior with 4.1 (yesterday).
Today I had both Netduino's running 4.2 RC4.
For "A" I have confirmed what I found yesterday, opperation is only upset when the cable is unplugged during boot. Odd, if I pull the ethernet cable to "B" and restore it, "A" seemingly locks up internally but responds to pings. If instead I power cycle "B", "A" behaves well. I suspect this is due to either my code or my switch.
For "B" things are a little different:
If the ethernet cable is unplugged after Socket.Listen() is called, the Netduino+ seemingly locks up internally, not just the network port. When the ethernet cable is restored, external pings are acknowledged, however internally the Netduino+ remains locked up.
-I did not test unplugging the ethernet cable without a call to Socket.Listen(), this would require me to modify further the twisted code I've been using to test this. I suspect that just as "A" would not work if booted withough the ethernet cable, so would "B".
I noticed other potential investigations, but it makes more sense to wait for RC5 and retest.
If I were able to contribute to RC5 (or RC6), I would, but frankly my coding skills need development.
Is there anything ALPHA? I could test? I'm brave.
I more carefully read the forums and have found several threads from the past regarding these problems.
Is there a bug board???
Anyway, I'm going to let this rest for now.
-kluger
#27922 Ethernet never works if not connected on boot up?
Posted by kluger on 23 April 2012 - 05:27 AM in Netduino Plus 2 (and Netduino Plus 1)
The title of this thread is not completely correct.
I have two N+s on my network:
1) Netduino+ "A" is sending http request to "B" upon a button press (uses Socket.Connect())
2) Netduino+ "B" is listening for http requests (uses Socket.Listen())
While Running 4.1:
I have confirmed mattcro's experience, except I find that the network cable may be unplugged during boot, as long as Socket.Connect() is not called. If I unplug "B" so that the Socket.Connect() fails, an exception is thrown (which is caught) and "A" recovers as expected. The failure is specific to calling Socket.Connect() while the ethernet cable is unplugged.mattcro: If Netduino has an internet connection at boot, but the internet connection is lost after boot (ie router-switch cable unplugged while application is running), then the next connection attempt does not succeed (obviously) but neither does it time out. It gets stuck at socket.Connect(). The Netduino does not seem to be locked up completely, because my app has a timer event driven LED blink that keeps working.
"B" can have the network unplugged at ANY time and recovers well when the network is restored.
With Running 4.2 RC4 on "A":
If "A" is booted without the Ethernet cable, the network port does not work. This is different from 4.1.
If "A" is allowed to boot with the Ethernet cable, the ethernet cable may be pulled at any other time, consistent with mattcro's experience.
I must go to bed, otherwise I would try 4.2 RC4 on "B", I suspect that booting without Ethernet will cause the ethernet port to not work. Maybe I can test this tomorrow.
There is another unrelated network issue with busy networks causing the network port to shut down. I have found this to be true with 4.1 and 4.2.
A similarity with the Socket.Connect() problem is that when the busy network shutdown happens, internally the N+ is unaware. Even "pings" to the "localhost" are returned, while externally... nothing. I have one fairly busy network that causes the N+ network to die withing minutes, and then I have a very quiet network and have had a pair of N+'s running for days.
Sure would be great if there were a fix for both these problems.
Wish I knew enough to help with fixing the problem, maybe someday I will be more skilled.
-kluger
#27666 Netduino Plus Network dies
Posted by kluger on 19 April 2012 - 07:35 PM in Netduino Plus 2 (and Netduino Plus 1)
#27663 Netduino Plus Network dies
Posted by kluger on 19 April 2012 - 07:09 PM in Netduino Plus 2 (and Netduino Plus 1)
#27588 Netduino Plus Network dies
Posted by kluger on 18 April 2012 - 09:37 PM in Netduino Plus 2 (and Netduino Plus 1)
#27427 Build my own Netduino Plus?
Posted by kluger on 17 April 2012 - 02:06 AM in Netduino Plus 2 (and Netduino Plus 1)
#23513 Installing firmware on Netduino Plus
Posted by kluger on 30 January 2012 - 07:28 PM in Beta Firmware and Drivers
Attached Files
- Updating Firmware on the Netduion Plus.pdf 274.8KB 112 downloads
#20941 Netduino serial communication - sent and received bytes are not equal
Posted by kluger on 24 November 2011 - 04:54 PM in General Discussion
- Netduino Forums
- → kluger's Content
- Privacy Policy