- Netduino Forums
- → Michael Schwarz's Content
Michael Schwarz's Content
There have been 21 items by Michael Schwarz (Search limited from 30-March 23)
#4767 Analog Input help...
Posted by Michael Schwarz on 09 November 2010 - 09:37 PM in General Discussion
#4657 Where to buy?
Posted by Michael Schwarz on 08 November 2010 - 05:07 PM in General Discussion
From today on it is also available directly from Germany by Watterott electronic.
Yes, I talked to them some days ago to put it on their shop... ;-)
Michael
#4579 DHCP - getting different IP address each time I restart
Posted by Michael Schwarz on 07 November 2010 - 01:49 PM in Netduino Plus 2 (and Netduino Plus 1)
You probably right concerning clientID, but it works fine with my Windows Server 2008 R2 DHCP server. And I use a reservation to fix my NetduinoPlus address.
Hi Pascal,
yepp, seems that it is working with Microsoft DHCP server. I tried it with the AVM box as well as another Linux box and had no luck. Not sure who could give a try to add this option, should not be a big deal.
Can you do another test? What if you try to renew the lease in your application? Think of a module that you will plug to different networks while it is running. Is this working? I have configured the IP to 0.0.0.0, then I get an IP address from my DHCP... then I disconnect from network... connect again and renew the lease and get 0.0.0.0. :-(
Michael
#4578 MFToolkit - new release (VS2010 support / .NET MF 4.1)
Posted by Michael Schwarz on 07 November 2010 - 11:20 AM in Netduino Plus 2 (and Netduino Plus 1)
#4544 Arduino and Netduino pros and cons
Posted by Michael Schwarz on 06 November 2010 - 10:02 PM in General Discussion
#4543 DHCP - getting different IP address each time I restart
Posted by Michael Schwarz on 06 November 2010 - 09:59 PM in Netduino Plus 2 (and Netduino Plus 1)
#4539 DHCP - getting different IP address each time I restart
Posted by Michael Schwarz on 06 November 2010 - 09:01 PM in Netduino Plus 2 (and Netduino Plus 1)
yes, the same happens with other DHCP servers I have here.
I had a look on RFC 2132, 9.14:
This option is used by DHCP clients to specify their unique
identifier. DHCP servers use this value to index their database of
address bindings. This value is expected to be unique for all
clients in an administrative domain.
Identifiers SHOULD be treated as opaque objects by DHCP servers.
The client identifier MAY consist of type-value pairs similar to the
'htype'/'chaddr' fields defined in [3]. For instance, it MAY consist
of a hardware type and hardware address. In this case the type field
SHOULD be one of the ARP hardware types defined in STD2 [22]. A
hardware type of 0 (zero) should be used when the value field
contains an identifier other than a hardware address (e.g. a fully
qualified domain name).
For correct identification of clients, each client's client-
identifier MUST be unique among the client-identifiers used on the
subnet to which the client is attached. Vendors and system
administrators are responsible for choosing client-identifiers that
meet this requirement for uniqueness.
This is the part that DHCP servers use to identify the client's MAC address.
I think we need to add this.
Michael
#4534 DHCP - getting different IP address each time I restart
Posted by Michael Schwarz on 06 November 2010 - 02:26 PM in Netduino Plus 2 (and Netduino Plus 1)
#4533 DHCP - getting different IP address each time I restart
Posted by Michael Schwarz on 06 November 2010 - 02:03 PM in Netduino Plus 2 (and Netduino Plus 1)
#4531 DHCP - getting different IP address each time I restart
Posted by Michael Schwarz on 06 November 2010 - 11:17 AM in Netduino Plus 2 (and Netduino Plus 1)
Attached Files
- Captures.zip 1.21KB 14 downloads
#4530 DHCP - getting different IP address each time I restart
Posted by Michael Schwarz on 06 November 2010 - 11:00 AM in Netduino Plus 2 (and Netduino Plus 1)
foreach (NetworkInterface net in NetworkInterface.GetAllNetworkInterfaces()) { Debug.Print(net.IPAddress.ToString()); Debug.Print(ByteUtil.PrintBytes(net.PhysicalAddress)); net.RenewDhcpLease(); } foreach (NetworkInterface net in NetworkInterface.GetAllNetworkInterfaces()) { Debug.Print(net.IPAddress.ToString()); Debug.Print(ByteUtil.PrintBytes(net.PhysicalAddress)); }
The output looks like this:
192.168.178.82
5C-86-4A-00-00-E5
0.0.0.0
5C-86-4A-00-00-E5
If I reboot the device I get 192.168.178.83.
Michael
#4529 DHCP - getting different IP address each time I restart
Posted by Michael Schwarz on 06 November 2010 - 10:45 AM in Netduino Plus 2 (and Netduino Plus 1)
#4526 DHCP - getting different IP address each time I restart
Posted by Michael Schwarz on 06 November 2010 - 09:38 AM in Netduino Plus 2 (and Netduino Plus 1)
#4525 MFToolkit - new release (VS2010 support / .NET MF 4.1)
Posted by Michael Schwarz on 06 November 2010 - 09:35 AM in Netduino Plus 2 (and Netduino Plus 1)
Awesome stuff! Noob question - what libraries would I reference to use the WebServer on a Netduino or Netduino Plus? I'm not familiar with the meaning of the LE and BE folders. Thanks!
Hi James,
just reference the MicroHTTP\MicroHTTP.dll, that should copy automatically all references assemblies in your project.
Regards,
Michael
#4524 Network Toolkit and Netduino Plus
Posted by Michael Schwarz on 06 November 2010 - 08:32 AM in Netduino Plus 2 (and Netduino Plus 1)
There was a period at the end of you URL. The working link is http://mftoolkit.cod...ases/view/55143
Thanks...
Michael
#4483 Netbios
Posted by Michael Schwarz on 05 November 2010 - 02:19 PM in Netduino Plus 2 (and Netduino Plus 1)
Thanks Chris,
My first proof of concept seems to be near now,
But the name is hardcoded, not a good idea, especialy for the majority of members who have multiple NetduinoPlus (or Netduino + Shield ) on the same network
I need to provide a way to specify the name of your device. What about this :
NetworkInterface[] networkInterfaces = NetworkInterface.GetAllNetworkInterfaces(); networkInterfaces[0].EnableNetBios("NETDUINO");
By this way, you can enable Netbios (disable by default) and you can specify a name.
Comments are welcome,
Pascal
Did anybody talked to MS concerning this feature request?
Regards,
Michael
#4479 MFToolkit - new release (VS2010 support / .NET MF 4.1)
Posted by Michael Schwarz on 05 November 2010 - 01:36 PM in Netduino Plus 2 (and Netduino Plus 1)
Hi,
because it was already requested several times I have published the changes concerning Visual Studio 2010 and .NET MF 4.1. You can download the latest release here (including the LE / BE files):
http://mftoolkit.cod...ases/view/55143
Here is a short example how to use the Web server to turn on the embedded LED on the Netduino Plus:
using ... namespace NetduinoApplication1 { public class Program { public static void Main() { MFToolkit.Net.Web.HttpServer http = new MFToolkit.Net.Web.HttpServer(new MyWeb()); http.Start(); while(true) { Thread.Sleep(1000); } } } public class MyWeb : IHttpHandler { public OutputPort led1 = new OutputPort(Pins.ONBOARD_LED, false); public void ProcessRequest(HttpContext context) { switch (context.Request.RawUrl) { case "/": context.Response.ContentType = "text/html"; context.Response.WriteLine("<html><head></head><body>Current Time: " + DateTime.Now + "<br/>"); context.Response.WriteLine("<a href=\"/led_on\">On</a> <a href=\"/led_off\">Off</a><br/<"); context.Response.WriteLine("</body></html>"); break; case "/led_on": led1.Write(true); // turn on the LED context.Response.ContentType = "text/html"; context.Response.WriteLine("<html><head></head><body><a href=\"/\">Go home...</a></body></html>"); break; case "/led_off": led1.Write(false); // turn off the LED context.Response.ContentType = "text/html"; context.Response.WriteLine("<html><head></head><body><a href=\"/\">Go home...</a></body></html>"); break; default: context.Response.RaiseError(HttpStatusCode.NotFound); break; } } } }
Regards,
Michael
Attached Files
- Program.cs 2.06KB 66 downloads
#4477 MFToolkit - new release (VS2010 support / .NET MF 4.1)
Posted by Michael Schwarz on 05 November 2010 - 01:21 PM in Netduino Plus 2 (and Netduino Plus 1)
#4475 Network Toolkit and Netduino Plus
Posted by Michael Schwarz on 05 November 2010 - 01:17 PM in Netduino Plus 2 (and Netduino Plus 1)
Download the release at http://mftoolkit.cod...ases/view/55143
Regards,
Michael
#1842 Where to buy?
Posted by Michael Schwarz on 06 September 2010 - 11:06 AM in General Discussion
#1745 Quadrocopter
Posted by Michael Schwarz on 03 September 2010 - 05:56 PM in Project Showcase
- Netduino Forums
- → Michael Schwarz's Content
- Privacy Policy