N3 Ethernet - it doesn't work - Netduino 3 - Netduino Forums
   
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

N3 Ethernet - it doesn't work


  • Please log in to reply
17 replies to this topic

#1 claudio.serio

claudio.serio

    Member

  • Members
  • PipPip
  • 25 posts

Posted 01 November 2015 - 08:45 AM

From the Contact page in the website

 

 

Contact tpixel.gif tpixel.gif Please drop by our community forums. Join us.

A whole community of makers and engineers is here to support you.

 

 

.... but in the last month i didn't find anyone that helped me

 

I've the same problem. I wrote a code for N2 that work and now it doesn't work on N3.

 

I have only one request .... can anyone try this code for me to make me know if is my hardware that doesn't work or ...... i made a wrong purchase with my N3

 

The code is the same of the last 4 posts and it works on N2 to set a static address in the setup

Can anyone try this .... ??

Thank you

 

Dim Interf = Microsoft.SPOT.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()(0)
        Dim DNS(1) As String
        DNS(0) = "193.206.115.20"
        'DNS(1) = "193.206.115.20"
        Interf.EnableStaticIP("192.168.1.111", "255.255.255.0", "192.168.1.1")
 
This gives a generic error


#2 TechnoGuy

TechnoGuy

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts
  • LocationCanada

Posted 01 November 2015 - 10:47 PM

Hi Claudio,

 

I'm not a VB programmer.  But I did try your code in VB and then I tried something equivalent in C#.

 

This is a summary of things I noticed:

 

Visual Basic Version:

I get a compile time error message "could not find library 'Microsoft.VisualBasic.dll'" (even though my project DOES include a reference to the Microsoft.VisualBasic assembly.  It shows up with the following properties when I view it:

  • Runtime Version :  v4.0.30319
  • Version:  1.0.0.0 (also seems a bit ODD)

 

QUESTIONS:

  1. Is THAT what you are seeing?  You weren't very specific in what you indicated above.  Could you please TRY to post exactly what you're seeing and on which line of code it fails.
  2. What PARTICULAR version of Netduino 3 do you have?  WiFi or Ethernet?
  3. Please look up the firmware version as well.  You can use a tool MFDeploy for that...

 

FYI - Even though you're playing around with DNS addresses, there is no place in your code where you're actually attempting to set them in place.  You need to make a call to Interf.EnableStaticDNS() to do that...

 

C# Version:

I CAN compile & run the program.

 

On a Netduino 3 WiFi, calls to the following all FAIL (for me) with a System.NotImplementedException:

Interf.EnableStaticIP(....)

Interf.EnableStaticDNS(...)

Interf.EnableDhcp()

Interf.EnableDynamicDns()

 

On a Netduino Plus 2 the calls all WORK.

 

I have asked another user to check if this happens for him as well.

 

FYI - There are differences in the networking hardware & the networking stacks between Netduino 2 & Netduino 3.  I suspect these problems stem from that.  But it's too early to say for sure.

 

I'll aim to post an update in 1-2 days.  But in the meantime could you please answer my question above?


- Ian

 

My Current Dev Boards:

  • 3 x Netduino Plus 2
  • 1 x Netduino 3 WiFi

#3 claudio.serio

claudio.serio

    Member

  • Members
  • PipPip
  • 25 posts

Posted 02 November 2015 - 07:34 AM

Thanks a lot for your answer, this is my netduino 3:
 
HalSystemInfo.halVendorInfo:            Netduino 3 Ethernet (v4.3.2.3) by Secret Labs LLC
HalSystemInfo.oemCode:                  34
HalSystemInfo.modelCode:                177
HalSystemInfo.skuCode:                  4104
HalSystemInfo.moduleSerialNumber:       00000000000000000000000000000000
HalSystemInfo.systemSerialNumber:       0000000000000000
ClrInfo.clrVersion:                     4.3.1.0
ClrInfo.clrVendorInfo:                  Netduino 3 Ethernet (v4.3.2.3) by Secret Labs LLC
ClrInfo.targetFrameworkVersion:         4.3.1.0
SolutionReleaseInfo.solutionVersion:    4.3.2.2
SolutionReleaseInfo.solutionVendorInfo: Netduino 3 Ethernet (v4.3.2.3) by Secret Labs LLC
SoftwareVersion.BuildDate:              Sep 18 2015
SoftwareVersion.CompilerVersion:        410894
FloatingPoint:                          True
SourceLevelDebugging:                   True
ThreadCreateEx:                         True
LCD.Width:                              0
LCD.Height:                             0
LCD.BitsPerPixel:                       0
AppDomains:                             True
ExceptionFilters:                       True
IncrementalDeployment:                  True
SoftReboot:                             False
Profiling:                              False
ProfilingAllocations:                   False
ProfilingCalls:                         False
IsUnknown:                              False


#4 TechnoGuy

TechnoGuy

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts
  • LocationCanada

Posted 02 November 2015 - 08:19 AM

Okay so you have the Netduino 3 Ethernet board then, and you have the 4.3.2.3 firmware (the current version for that board).

 

Questions:

  • What is the error message you're seeing when you attempt to compile/run your code?
  • Where does it fail?
  • What does it say?
  • Is it a compile time error or a runtime error?

 

Could you also tell me what version of an assembly called Netduino.IP is installed on your Netduino 3 Ethernet (actually I think there will be 3 separate assemblies, prefixed with Netduino.IP).

 

You will see a bunch of assemblies listed in the Visual Studio Output window when you deploy your program to the Netduino (also happens as part of a debugging session).  Somewhere in the list you'll see something similar to the following:

 

Assembly: Netduino.IP (1.0.0.0)
Assembly: Netduino.IP.Interop (1.0.0.0)
Assembly: Netduino.IP.LinkLayers.CC3100 (1.0.0.0)

 

Probably the first 2 lines will have the same names & the 3rd will have a different name.  Please tell me what the version numbers are for each of these assemblies.  I think it might be 1.0.0.0 or possibly 1.0.1.x.  Please tell me also what the NAME of the 3rd assembly is.

 

You mentioned that your code works on a Netduino Plus 2 that you already have???  I bet if you look at that, you will NOT have the Netduino.IP assemblies on that board.  There's a separate download for that (Netduino.IP Technical Preview for Netduino Plus 2) - I would suggest NOT loading it onto that board at this time.  It's apparent (to me) that there are bugs in the current implementation of Netduino.IP...

 

I expect it may take weeks if not a couple of months for those to be addressed.  There's a new release of the .NET Micro Framework that just came out (4.4).  I imagine that the Netduino.IP bugs will be addressed if/when support for NETMF 4.4 comes out for Netduino.


- Ian

 

My Current Dev Boards:

  • 3 x Netduino Plus 2
  • 1 x Netduino 3 WiFi

#5 claudio.serio

claudio.serio

    Member

  • Members
  • PipPip
  • 25 posts

Posted 02 November 2015 - 08:48 AM

This is the wanting on screen

 

 Eccezione non gestita di tipo 'System.ArgumentException' in mscorlib.dll

 

And those are the message sequence on control window

 

Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'Microsoft.SPOT.Net.NetworkInformation.NetworkInterface.EnableStaticIP'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Type.GetType'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Type.ParseTypeName'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Type.ParseTypeName'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Type.ParseTypeName'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Type.ParseTypeName'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Type.ParseTypeName'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Type.GetType'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Type.GetType'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Reflection.Assembly.ParseAssemblyName'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Reflection.Assembly.ParseAssemblyName'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Type.GetType'
Esegui istruzione: esecuzione di istruzione/routine del codice non utente 'System.Type.GetType'
Eccezione first-chance di tipo 'System.ArgumentException' in mscorlib.dll
 
Everithing goes ok by attaching N2 Plus


#6 claudio.serio

claudio.serio

    Member

  • Members
  • PipPip
  • 25 posts

Posted 02 November 2015 - 08:52 AM

Other info of my N3:

 

DeviceInfo:
  HAL build info: 4.3.1.0, Netduino 3 Ethernet (v4.3.2.2) by Secret Labs LLC
  OEM Product codes (vendor, model, SKU): 34, 177, 4104
  Serial Numbers (module, system):
    00000000000000000000000000000000
    0000000000000000
  Solution Build Info: 4.3.2.2, Netduino 3 Ethernet (v4.3.2.2) by Secret Labs LLC
  AppDomains:
    default, id=1
  Assemblies:
    mscorlib,4.3.1.0
    Microsoft.SPOT.Native,4.3.1.0
    Microsoft.SPOT.Hardware,4.3.1.0
    Microsoft.SPOT.Net,4.3.1.0
    Microsoft.SPOT.Net.Security,4.3.1.0
    System,4.3.1.0
    System.Net.Security,4.3.1.0
    Microsoft.SPOT.Hardware.SerialPort,4.3.1.0
    Microsoft.SPOT.IO,4.3.1.0
    System.IO,4.3.1.0
    Microsoft.SPOT.Hardware.PWM,4.3.1.0
    Microsoft.SPOT.Hardware.Usb,4.3.1.0
    Netduino.IP,1.0.0.0
    Netduino.IP.Interop,1.0.0.0
    Netduino.IP.LinkLayers.AX88796C,1.0.0.0
    SecretLabs.NETMF.Diagnostics,4.3.1.0
    GoBus,1.5.0.0
    SecretLabs.NETMF.Hardware.Netduino,4.3.1.0
    Microsoft.SPOT.Hardware.OneWire,4.3.1.0
    SecretLabs.NETMF.Hardware,4.3.1.0
    Microsoft.VisualBasic,1.0.0.0
    IP_Set,1.0.0.0


#7 claudio.serio

claudio.serio

    Member

  • Members
  • PipPip
  • 25 posts

Posted 02 November 2015 - 08:53 AM

 Interf.EnableStaticIP("192.168.1.111", "255.255.255.0", "192.168.1.1")

 

This is the line where the error occours



#8 claudio.serio

claudio.serio

    Member

  • Members
  • PipPip
  • 25 posts

Posted 02 November 2015 - 08:55 AM

This is from my N2+

 

HalSystemInfo.halVersion:               4.3.1.0
HalSystemInfo.halVendorInfo:            Netduino Plus 2 (v4.3.2.1) by Secret Labs LLC
HalSystemInfo.oemCode:                  34
HalSystemInfo.modelCode:                177
HalSystemInfo.skuCode:                  4102
HalSystemInfo.moduleSerialNumber:       00000000000000000000000000000000
HalSystemInfo.systemSerialNumber:       0000000000000000
ClrInfo.clrVersion:                     4.3.1.0
ClrInfo.clrVendorInfo:                  Netduino Plus 2 (v4.3.2.1) by Secret Labs LLC
ClrInfo.targetFrameworkVersion:         4.3.1.0
SolutionReleaseInfo.solutionVersion:    4.3.2.1
SolutionReleaseInfo.solutionVendorInfo: Netduino Plus 2 (v4.3.2.1) by Secret Labs LLC
SoftwareVersion.BuildDate:              May  7 2015
SoftwareVersion.CompilerVersion:        410894
FloatingPoint:                          True
SourceLevelDebugging:                   True
ThreadCreateEx:                         True
LCD.Width:                              0
LCD.Height:                             0
LCD.BitsPerPixel:                       0
AppDomains:                             True
ExceptionFilters:                       True
IncrementalDeployment:                  True
SoftReboot:                             False
Profiling:                              False
ProfilingAllocations:                   False
ProfilingCalls:                         False
IsUnknown:                              False


#9 claudio.serio

claudio.serio

    Member

  • Members
  • PipPip
  • 25 posts

Posted 02 November 2015 - 08:56 AM

And those are other device info of the N2+

 

HAL build info: 4.3.1.0, Netduino Plus 2 (v4.3.2.1) by Secret Labs LLC
  OEM Product codes (vendor, model, SKU): 34, 177, 4102
  Serial Numbers (module, system):
    00000000000000000000000000000000
    0000000000000000
  Solution Build Info: 4.3.2.1, Netduino Plus 2 (v4.3.2.1) by Secret Labs LLC
  AppDomains:
    default, id=1
  Assemblies:
    mscorlib,4.3.1.0
    Microsoft.SPOT.Native,4.3.1.0
    Microsoft.SPOT.Hardware,4.3.1.0
    Microsoft.SPOT.Net,4.3.1.0
    System,4.3.1.0
    Microsoft.SPOT.Hardware.SerialPort,4.3.1.0
    Microsoft.SPOT.IO,4.3.1.0
    System.IO,4.3.1.0
    Microsoft.SPOT.Hardware.PWM,4.3.1.0
    Microsoft.SPOT.Hardware.Usb,4.3.1.0
    SecretLabs.NETMF.Diagnostics,4.3.1.0
    GoBus,1.5.0.0
    SecretLabs.NETMF.Hardware.Netduino,4.3.1.0
    Microsoft.SPOT.Hardware.OneWire,4.3.1.0
    Microsoft.SPOT.Time,4.3.1.0
    SecretLabs.NETMF.Hardware,4.3.1.0
    Microsoft.VisualBasic,1.0.0.0
    IP_Set,1.0.0.0


#10 claudio.serio

claudio.serio

    Member

  • Members
  • PipPip
  • 25 posts

Posted 02 November 2015 - 08:58 AM

Thanks for all ....



#11 TechnoGuy

TechnoGuy

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts
  • LocationCanada

Posted 03 November 2015 - 07:42 AM

Please see 3 issues (#5, #6 & #7) that I've logged for Netduino.IP in the netduino repository on GitHub:

 

https://github.com/n...duino.IP/issues

 

The problem is in the NetworkInterface class (from the Microsoft.SPOT.Net.NetworkInformation namespace).  You can view it here:

 

https://github.com/n...orkInterface.cs

 

A simple inspection of the code reveals that:

  • The methods EnableStaticIP() & EnableDhcp() are NOT implemented.
  • The EnableStaticDns() & EnableDynamicDns() methods ARE implemented, but an underlying method, UpdateConfiguration() (that they both call), is not implemented.

As I have indicated in my reports, these 4 methods:

  • WORK on a Netduino Plus 2 (with the original TCP/IP stack)
  • DO NOT work on a Netduino 3 Wi-Fi (with the Netduino.IP TCP/IP stack)

Claudio indicates that his experience is similar for the Netduino 3 Ethernet.


- Ian

 

My Current Dev Boards:

  • 3 x Netduino Plus 2
  • 1 x Netduino 3 WiFi

#12 claudio.serio

claudio.serio

    Member

  • Members
  • PipPip
  • 25 posts

Posted 03 November 2015 - 01:57 PM

So ... there isn't a solution ?  :unsure:  :unsure:  :unsure:  :unsure:



#13 TechnoGuy

TechnoGuy

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts
  • LocationCanada

Posted 03 November 2015 - 06:38 PM

You are correct - there does not appear to be a solution at the present time:

 

There does NOT appear to be a programmatic way to setup Static IP (or for that matter to switch things back to Dynamic IP) on a Netduino 3 board using the current implementation of Netduino.IP.

 

On your board (Netduino 3 Ethernet) and on my board (Netduino 3 Wi-Fi) we both have the Netduino.IP 1.0.0 assemblies.

 

I did see a mention elsewhere in the forums about Netduino.IP 1.0.1 (a revised version, in which it was suggested that numerous problems were fixed).  That appeared to be in relation to backporting Netduino.IP onto a Netduino Plus 2.  I don't believe it can be loaded onto a Netduino 3 (because of differences in the networking hardware).  My impressions of Netduino.IP at this time is very dim; I would NOT recommend loading that assembly onto a Netduino Plus 2 until the board's creator can weigh in on things.

 

As a short term workaround (think "months") I think it would be worthwhile for you to investigate configuring your board's networking settings manually, using the MFDeploy tool that's found in the Microsoft .NET Micro Framework 4.3 program group (off the programs menu).  If you use that method you should be able to setup static IP once & NOT have to write code to do it.


- Ian

 

My Current Dev Boards:

  • 3 x Netduino Plus 2
  • 1 x Netduino 3 WiFi

#14 joao_ladeira

joao_ladeira

    New Member

  • Members
  • Pip
  • 8 posts

Posted 04 February 2016 - 12:46 AM

I just received one today and it doesent work!! how is this possible? to receive a microcontroller that does not work out of the box??

Where should i send this back, i yould like my money back, this is unacceptable to sell this without any stable version.

My old ND2 ethernet and my new wifi 3 work just fine, but my new ethernet 3 right now cannot do anything that is network related (wich is the main porpuse of this device...)

 

Have any of you managed to get this working in any way? i cant establish any tcp connection (with DHCP or Static ip) both dont work, im setting this using mfdeploy, i dont care if it is not possible to set the ip on code at least for now just want this to work as it should, or else dont sell this in this state...



#15 claudio.serio

claudio.serio

    Member

  • Members
  • PipPip
  • 25 posts

Posted 04 February 2016 - 10:54 AM

You are right ... im scared for that ... how can they sell a so pointless product .... i buyed 5 (3-N3 Etherneth and 2-N3 WiFi) but i had to come back to N2+.

I wanted to do a quality jump, but i loose my money, my time .... 

So scared also for the absence of technical support, i employed 1 week to have an answer and i have to thanks users that helped me to understand, but i not received answers from technical support.....

And there is no date they have provide for a new firmware version .... don't know what think.....

 

Bye



#16 joao_ladeira

joao_ladeira

    New Member

  • Members
  • Pip
  • 8 posts

Posted 04 February 2016 - 11:07 AM

I agree, i have old netduinos working in production and i needed more so i bought a nd3 to test before ordering all that i need and was hoping i get also some network issues ironed out but instead is the complete oposite...

I really dont have time to try and read all threads to see if someone found a way to make this work (like i did on the early days of the netduino 2 i see the history repeating again), i would like as you pointed out that someone from the support to tackle this issue.

 

As i understood you main problem was not being able to set up the static ip with code right?

If you configure with mfdeploy a static ip or even with dhcp are you able to use the sockets? Because i cant even establish a connection even if i configure with mfdeploy.



#17 claudio.serio

claudio.serio

    Member

  • Members
  • PipPip
  • 25 posts

Posted 04 February 2016 - 02:40 PM

Yes, by mfdeploy you can set static IP, but still have a lot of problems .... for example the .Send method doesn't throw an exception if you detach the Lan Cable. So i spend other 3 days to try .. and when i finally used a N2+ everithing was OK.

Trust me, i already walked this way, if  you need Lan for your application use N2+ ... for the moment.



#18 joao_ladeira

joao_ladeira

    New Member

  • Members
  • Pip
  • 8 posts

Posted 04 February 2016 - 05:20 PM

Yes, by mfdeploy you can set static IP, but still have a lot of problems .... for example the .Send method doesn't throw an exception if you detach the Lan Cable. So i spend other 3 days to try .. and when i finally used a N2+ everithing was OK.

Trust me, i already walked this way, if  you need Lan for your application use N2+ ... for the moment.

Thanks for your feedback Claudio.

I would rather have a microcontroller connected thru a lan cable but since ND3 is in this state and they don't sell any more the ND2 i will probably stick with the wifi and for this i already have a working alternative and its waaay cheap around 3€ (although you have to program it in c++ ), i really am starting to enjoy this one (ESP8266 NodeMCU v1.0) and since they have a plugin to Visual studio as well its less painful to write code, oh and it supports over the air update :) my system supports several micro-controllers and is able to do over the air updates (unfortunatelly the netduino does not supports this yet, at least in a proper way).

 

Thank you Claudio.






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.