Sections
You are here: Home Forum .NET C# Please help a newbie

Please help a newbie

Up to .NET C#

Please help a newbie

Posted by Jonas at September 30. 2008
Hi there. I've just received my MakingThings controller kit and is in the starting phase of a project where I will read data from the different sensors using them for visualization. I'm pretty new to all of this and would like som guidance on how to communicate with the board using C#. I don't think the info on this homepage is enough for me. I've downloaded the MakingThings.NET package and tried to use the example applications that came with it. I can't get any of them to work though, and I can't figure out what I'm doing wrong. When using the mchelper application everything seem to work smoothly though. So, I have a few questions in hope to get some help here. On my network, the controller board has the IP 192.168.1.132. Standard ports for incoming/outgoing packets are 10000, right? When using the MCTest application, I input these values in the settings for UDP. Then, when I send messages to the board, nothing happends. For example, sending "/appled/0/state 1" to the board should result in turning one of the LEDs on, but nothing, nothing, nothing. I'm using Windows Vista, and read that some people had problems communicating with the board on Vista. But since the mchelper application is working, that wouldn't be the case, right? Also, probably a simple programming question: In the code we've got: udpPacket = new UdpPacket(); udpPacket.RemoteHostName = mct.GetUdpRemoteHostName(); udpPacket.RemotePort = mct.GetUdpRemotePort(); udpPacket.LocalPort = mct.GetUdpLocalPort(); udpPacket.Open(); oscUdp = new Osc(udpPacket); oscUdp.SetAllMessageHandler(UdpMessages); When sending a message, the application never enters the method "UdpMessages". Is this a sign on that my application simply isn't receiving anything from the board? Could there be a simple explaination to this? Hoping for some guidance here, I'm quite lost...

Re: Please help a newbie

Posted by Aaron Tunell at September 30. 2008

I've put up several applications I wrote in C# in my folder

http://www.makingthings.com/Members/tunell

most notably MC Animator and MC Drumkit.

SensorTracker may also help. Also check out the How-To on passing data to Excel using C#, that will give you the primary steps to establishing contact between the MC and C# (plus Excel if you care)

Re: Please help a newbie

Posted by Jonas at October 01. 2008
Oh, thanks a lot! This will be really helpful.
Powered by Ploneboard
Document Actions