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.

andybareweb's Content

There have been 5 items by andybareweb (Search limited from 26-April 23)


By content type

See this member's

Sort by                Order  

#39970 IoT and Netduino+

Posted by andybareweb on 23 November 2012 - 12:09 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi guys, A week ago I presented a NETMF and Windows Azure talk which you can see at http://channel9.msdn...reConf/2012/A06 (ERRATA - ATMEL NOT AMTEL) <-- I got picked up on that a lot lol I'm a Windows Azure MVP and having spoken to many people who I respect in the NETMF arena I have decided to do a follow up article that focusses more on the DEVICE than the cloud backbone that my talk at Azure Conf focussed on. Please reply to this post with ideas as to how you'd like to showcase cloud interconnected devices, catch me (andybareweb) on ip chat or mail me and we can move forward. All the best, Andy



#38182 How to check if ethernet is connected?

Posted by andybareweb on 29 October 2012 - 05:14 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi,

I know that i'm digging an old thread but I have the similar question and I must manually set the IP address (so no DHCP).

Is there any way to do it ?

Thanks.

Cédric


Hi Cédric:

var interfaces = Microsoft.SPOT.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces();
                foreach (var networkInterface in interfaces)
                {
                    Debug.Print(networkInterface.IsDhcpEnabled ? "Dhcp Enabled" : "Static Ip");
                    Debug.Print(networkInterface.IPAddress);
                    if (networkInterface.IsDhcpEnabled)
                    {
                        networkInterface.EnableStaticIP("192.168.0.9", "255.255.255.0", "192.168.0.1");
                    }
                }

This prints out whether you're already Dhcp Enabled or Static, and if Dhcp it sets to static.

You'd probably want to be a little cleverer around releasing leases if you want to be friendly to your dhcp server, but otherwise the above works.

Regards
Andy



#37915 Netduino Sam-BA connection not found

Posted by andybareweb on 24 October 2012 - 11:16 AM in Netduino Plus 2 (and Netduino Plus 1)

Perfect. I also had to install the x64 driver for Windows from the wiki, and I had to erase twice as I started getting an error (attached) from the Amtel tool. Once I'd gone back to a fresh erase (3v3 to pin under 0) the problem went away. As a side note, to document my experience I also found that I was using the wrong MFDeploy (one I downloaded from Microsoft rather than the one C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Tools) and that couldn't see the Netduino to upload the firmware. Once everything was in line, driver, amtel tool, mfdeploy and the netduino bits, the flashing worked first time. Thanks for the support, Andy

Attached Thumbnails

  • 24-10-2012 11-44-10.png



#37841 Netduino Sam-BA connection not found

Posted by andybareweb on 23 October 2012 - 12:37 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi!

Just a question, how does Windows call it? If it still sees a "Netduino" in the device manager, it's not yet reset.


Ah-hah! It is Netduino, good intuition.

I must have not hit the erase properly (tentative worried fingers...) I'll retry.

Many thanks
Andy



#37836 Netduino Sam-BA connection not found

Posted by andybareweb on 23 October 2012 - 11:21 AM in Netduino Plus 2 (and Netduino Plus 1)

hi all, I'm trying to flash my netduino in order to upgrade to 4.2. I'm following http://wiki.netduino...ep-by-step.ashx but running into a problem pretty quickly. SAM-BA 2.12 "Select the connection" has an empty drop down, as though the n+ isn't around. It's plugged in (I double checked ;-)) and Windows has added it as a device. Any idea to get me going? Cheers Andy

Attached Thumbnails

  • 23-10-2012 11-59-50.png




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.