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.

Michel Tol's Content

There have been 16 items by Michel Tol (Search limited from 28-April 23)


By content type

See this member's

Sort by                Order  

#18140 UPDATE: Fixed for RC3 -- New Bug discovered in Socket.Connect Method!

Posted by Michel Tol on 18 September 2011 - 09:25 AM in Beta Firmware and Drivers

Michael, Dan:

You are precisely correct. :) The RTM was scheduled to ship on Monday of this week so we decided it wouldn't make sense to have an RC2 for a week only to replace it by the RTM version. Also, the new AnalogPort/AnalogInput class was still being changed post-RC2 and we wanted that to settle before we integrated in the SAM7X-specific code.

We're going to build an "RC3" firmware to match the .NET MF 4.2 firmware...to make sure that users don't experience any BSOD issues. This should be the first "release-quality" 4.2 firmware. From there, we'll take input from users and get things ready for an official 4.2 firmware release (and pull in the new PWM and AnalogInput objects). We may do a few RCs until the community tells us that we're good to go--but that process should go pretty quickly.

I'm excited about 4.2. In addition to VB support and GC bugfixes, there are also new features and networking enhancements. Thanks to the testing and feedback of the NETMF community, this will likely be the highest quality NETMF release to date.

Chris



Chris, thanks for the update. Is there a 'rough' date for the 'RC3' release?



#18072 UPDATE: Fixed for RC3 -- New Bug discovered in Socket.Connect Method!

Posted by Michel Tol on 16 September 2011 - 09:08 AM in Beta Firmware and Drivers

Thanks for the update, Valkyrie-MT. We're downloading the updated PK now!

We should have an updated (RC2) firmware release for Netduino Plus by the weekend.



Maybe a stupid question, but is the RC2 N+ firmware already released? Where can I download it from? I could only find the RC1.

tnx
michel



#7446 Wild idea for a group project

Posted by Michel Tol on 11 January 2011 - 06:47 AM in General Discussion

As already said I am in... would be nice to see the geological spread of netduino/netduino+ devices around the globe... but who is building what? If you want I build the webservice and aggregate the output in JSON format so it could be easily used in g-maps.



#7424 Wild idea for a group project

Posted by Michel Tol on 10 January 2011 - 07:50 PM in General Discussion

I'm in....



#7015 Newbie on Serialport

Posted by Michel Tol on 04 January 2011 - 09:47 PM in Netduino 2 (and Netduino 1)

digital pin 0 and 1

check the following sweet pinout cardcreated by Tecchie



#7006 Need help with converting an Fezzer application

Posted by Michel Tol on 04 January 2011 - 08:56 PM in General Discussion

I totall forgot to reply on this topic...
Olaf, Chris tnx for your reply.

If I would use the bitBanger firmware I wouldn't know with the Cpu.Pin clockPin. What is it used for? Do I have to add a Real Time Clock Module to it?



#7001 Pinout Cards

Posted by Michel Tol on 04 January 2011 - 08:47 PM in General Discussion

tnx for sharing! :D



#6531 Need help with converting an Fezzer application

Posted by Michel Tol on 26 December 2010 - 01:17 PM in General Discussion

Hi,


after doing my succesfull WOL project, I wanted to play with my 434mhz transmitter.

My plan was to remote control my KAKU devices, so I could control them via the web (in combination with the N+). After a bit of searching on the web I found that somebody already did that in combination with Fez Domino and that he posted his code on Fezzer.com. While investigation his code, I saw he was using an outputCompare object to do the real transmitting of the message the KAKU device need. I couldn't find an outputCompare class in the N+ classes. Trying I tried to investigate the outputcompare class via reflactor I didn't become any wiser.

I think my lack of electronic knownlegde holding me back but in newbie language what is an outputcompare (wikipedia didn't help me relly much)? and how can I implement such thing for the netduino? Or did somebody already implement it and is he willing to post his code?



tnx,
michel


BTW: merry christmas :D



#6440 VS Emulator

Posted by Michel Tol on 23 December 2010 - 06:51 PM in Visual Studio

Hi Stan4th! The default emulator doesn't do that much, in my opinion it is only usefull if you need to be sure if your code will run, without throwing any runtime exceptions. A better emulator is the netduino emulator it is an open source emulator hosted on codeplex. It can be found overhere: http://netduinoemulator.codeplex.com/ As far as I know, they implemented the onboard led, and switch. If you know a bit of C# and WPF you should be able to add extra controls to the emulator. Hopefully this is helpfull. cyah michel



#6318 Trying to implement Wake on LAN (WOL) on N+

Posted by Michel Tol on 21 December 2010 - 10:01 AM in Netduino Plus 2 (and Netduino Plus 1)

Hereby my updated code:

using System;
using System.Net;
using System.Net.Sockets;
using System.Text;



namespace WOLService
{
    /// <summary>
    /// Wrapper around the MacAdress String
    /// </summary>
    public class MacAddress
    {
        private readonly string _address;
        
        private readonly string[] _macDigits;

        /// <summary>
        /// Constructor for creating a MAcAdress
        /// </summary>
        /// <param name="address"></param>
        public MacAddress(string address)
        {
            _address = address;

            if (_address.IndexOf("-") > -1)
            {
                _macDigits = _address.Split('-');
            }
            else
            {
                _macDigits = _address.Split(':');
            }

            if (_macDigits.Length != 6)
            {
                throw new ArgumentException("Incorrect MAC address supplied!");
            }
        }

        public override string ToString()
        {
            return _address;
        }
    
        public byte[] ToBytes()
        {

            var datagram = new byte[6];

            for (var x = 0; x < 6; x++)
            {
                datagram[x] = (byte)Convert.ToInt32(_macDigits[x], 16);
            }

            return datagram;
        }
    }


    public class WakeOnLan
    {
        public void WakeUp(MacAddress macAddress)
        {
            var wolPackage = CreateWolPackage(macAddress);


            Send(wolPackage);
        }

        private void Send(byte[] package)
        {

            using (Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp))
            {
                socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true);
                var endPoint = new IPEndPoint(new IPAddress(0xffffffffL), 40000);


                socket.Connect(endPoint);

                socket.Send(package);
            }
        }

        private static byte[] CreateWolPackage(MacAddress macAddress)
        {
            var datagram = new byte[108];

            for (int i = 0; i <= 5; i++)
            {
                datagram[i] = 0xff;
            }


            var macDigits = macAddress.ToBytes();
            int start = 6;
            for (int i = 0; i < 16; i++)
            {
                for (int x = 0; x < 6; x++)
                {
                    datagram[start + i * 6 + x] = macDigits[x];

                }
            }

            for (int i = 102; i < 108; i++)
            {
                datagram[i] = 0x00;
            }



            return datagram;
        }
    }
}


Together with the updated webserver posted in one of the other trheads, I am able to boot my machines at home remotely. Together with hamachi logmein.com I can connect to my machines at home any time I want without having my pc's running the whole day.



#6246 my netduino made me a steak

Posted by Michel Tol on 19 December 2010 - 07:48 AM in Project Showcase

hahaha lol briljant! Keep up the good work :)



#6217 Trying to implement Wake on LAN (WOL) on N+

Posted by Michel Tol on 18 December 2010 - 09:33 PM in Netduino Plus 2 (and Netduino Plus 1)

tecchie, tnx that did the trick! At least it doesn't error anymore. Will check it out tomorrow if the machine really boots aswell. tnx! michel



#6195 Trying to implement Wake on LAN (WOL) on N+

Posted by Michel Tol on 17 December 2010 - 10:27 PM in Netduino Plus 2 (and Netduino Plus 1)

HI,

after almost 2 weeks waiting my netduino+ had arrived.
After the led examples I wanted to implement a Wake on LAN (WOL) so I could remotely boot my PC at home.
after connecting the n+ to the network, enabled DHCP (got an ip). I tried to execute to the following method:


 public static void WakeUp(byte[] mac)
        {
            using (Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp))
            {
                // IP 255.255.255.255 
                //IPEndPoint endPoint = new IPEndPoint(new IPAddress(4294967295), 40000);
                IPEndPoint endPoint = new IPEndPoint(new IPAddress(0xffffffffL), 40000);

                socket.Connect(endPoint);

                byte[] packet = new byte[17 * 6];
                for (int i = 0; i < 6; i++) packet[i] = 0xFF;
                for (int i = 1; i <= 16; i++)
                {
                    for (int j = 0; j < 6; j++)
                    {
                        packet[i * 6 + j] = mac[j];
                    }
                }

                var r = socket.Send(packet, packet.Length,System.Net.Sockets.SocketFlags.Broadcast);
            }
        }


I'm converting my MAC-address from string to byte[] via the ToBytes() method in the following class :
    public  class MacAddress 
    {
        private readonly string _address;
        private readonly string[] _macDigits;

        public MacAddress(string address)
        {
            _address = address;

            
            if (_address.IndexOf("-") > -1)
            {
                _macDigits = _address.Split('-');
            }
            else
            {
                _macDigits = _address.Split(':');
            }

            if (_macDigits.Length != 6)
            {
                throw new ArgumentException("Incorrect MAC address supplied!");
            }

            
        }

        public override string ToString()
        {
            return _address;
        }
        public byte[] ToBytes()
        {

            var datagram = new byte[96];

            for (int i = 0; i <= 5; i++)
            {
                datagram[i] = 0xff;
            }


            int start = 0;
            for (int i = 0; i < 16; i++)
            {
                for (int x = 0; x < 6; x++)
                {
                    datagram[start + i * 6 + x] = (byte)Convert.ToInt32(_macDigits[x], 16);
                }
            }


            int k = Encoding.UTF8.GetBytes(_address).Length;


            return datagram;
        }
    }


for some reason it doesn't work. The error happends at the following line:
var r = socket.Send(packet, packet.Length,System.Net.Sockets.SocketFlags.Broadcast);


Error produced:

#### Exception System.Net.Sockets.SocketException - CLR_E_FAIL (3) ####
#### Message:
#### Microsoft.SPOT.Net.SocketNative::send [IP: 0000] ####
#### System.Net.Sockets.Socket::Send [IP: 0018] ####
#### System.Net.Sockets.Socket::Send [IP: 0008] ####
#### WOLService.WakeOnLan::WakeUp [IP: 0087] ####
#### WOLService.WakeOnLan::WakeUp [IP: 000d] ####
#### WOLService.Program::button_OnInterrupt [IP: 0014] ####
#### SocketException ErrorCode = 10022
#### SocketException ErrorCode = 10022
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll
#### SocketException ErrorCode = 10022
#### SocketException ErrorCode = 10022


I have no idea what is going wrong and can't find any info about error 'CLR_E_FAIL (3)' or error code 'ErrorCode = 10022'

Could somebody tell me what's wrong with my code or tell me where I can find more info about these error codes..

tnx!
michel



#5736 Missing items on the hardware page

Posted by Michel Tol on 04 December 2010 - 08:05 PM in General Discussion

Hi, is it just me or am I missing the netduini mini and netduino plus info on the hardware page. I can find the proper info via google but I was expecting to find it via the hardware page.



#5323 Boosting this community with a Wiki capability

Posted by Michel Tol on 26 November 2010 - 07:28 AM in General Discussion

I think the best option would be Stack Exchange http://stackexchange.com/.


Nice solution as well, but stackexchange is more problem - solution based approach instead of the wiki sharing info, code samples etc.
I don't think that the forum, wiki and the stack exchange could live side-by-side, the visitor would be lost possibilities to search.

anyway, just my 2 cents.



#5061 Home Automation Toolkit

Posted by Michel Tol on 19 November 2010 - 05:57 PM in Project Showcase

Hi, I'll follow this topic, it is exactly what I would like to do with the netduino family. I'm a general C# developer without any embedded experience. @VincentA : where did order your netduino+... couldn't find it yet @sparkfun.




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.