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 Ethernet Problem


  • Please log in to reply
3 replies to this topic

#1 Paulo Jardim

Paulo Jardim

    New Member

  • Members
  • Pip
  • 8 posts

Posted 04 October 2012 - 01:00 PM

Hum!!!

I really wanna understand whats going on with this Netduino.

1 Issue : I recentely uupdate my firmware to 4.2.0.1. After this when i try acess the IP config while not in bootmode the board crash and i cant more get a tyny response from board....he aways start on bootmode and i need to re-flash.

Ok after reflash if i not try acess IPCONFIG in TinyCLR work, if i try will need reflash again :(.

2 Issue - Sometimes after reset board or just reconect in USB the Led from Ethernet look like crazy. They are blink low lights and to fast speed. AFter reset sometimes work. Others Not.

and sometimes show :

Pinging... MULTinyCLR
TICAST SOCKET_ERROR: 0
Pinging... TinyCLR

i maked a simple program:


public static void Main()
        {
            OutputPort led = new OutputPort(Pins.ONBOARD_LED,false);

            string ip = Microsoft.SPOT.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()[0].IPAddress.ToString();
            Debug.Print(ip);

            while (true)
            {
                led.Write(true);
                Thread.Sleep(1000);
                led.Write(false);
                Thread.Sleep(1000);
            }

        }

this ip is 192.168.1.200 and my ip is 192.168.1.201.
but doenst ping. Sometimes work but mostly not. After a re-flash worked.

if you guys have a idea whats going on i will be very gratiful...

Ty

#2 Paulo Jardim

Paulo Jardim

    New Member

  • Members
  • Pip
  • 8 posts

Posted 04 October 2012 - 01:13 PM

Another information... i changed the line to put a static Ip in code: Microsoft.SPOT.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()[0].EnableStaticIP("192.168.1.200", "255.255.255.0", "192.168.1.1"); Now look my problem are solved...dont know why...but worked.. But when i try debug never work....after click in debug tryed to ping and nothing...sometimes the etherned led loke like crazy... But after reconect netduino ping work Fine... But if i do that...the debug still working???

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 04 October 2012 - 02:39 PM

Hi Paulo,

1 Issue : I recentely uupdate my firmware to 4.2.0.1. After this when i try acess the IP config while not in bootmode the board crash and i cant more get a tyny response from board....he aways start on bootmode and i need to re-flash.

Ok after reflash if i not try acess IPCONFIG in TinyCLR work, if i try will need reflash again :(.

MFDeploy works a bit differently with NETMF 4.2 and the new WinUSB drivers. You need to be in TinyBooter mode (press and hold pushbutton while powering on Netduino Plus) to access IP settings, USB name settings, etc.

If you try accessing them while in TinyCLR mode, the board will try to switch into TinyBooter but MFDeploy+WinUSB will not be able to reconnect to the board and your configuration may get into an invalid state. I believe that's what you're seeing.

Of course you should be able to get/set your IP settings from code as usual.

Regarding IP address... Try using a static IP address for now, and see if everything is working well for you. If so, then try switching back to DHCP if desired.

Chris

#4 Paulo Jardim

Paulo Jardim

    New Member

  • Members
  • Pip
  • 8 posts

Posted 04 October 2012 - 04:34 PM

Chris Walker, Ty for explanation, worked with static IP puted in CODE. but i wanna know if i can debug my code using ethernet....because when i try bebug i cant ping, only after reconcting the board. But if i do that the debug should stop right?




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.