// Have to add references for MFDeployEngine.dll & Microsoft.SPOT.Debugger.dll using System; using Microsoft.NetMicroFramework.Tools.MFDeployTool.Engine; using System.Threading; namespace MFDeployEngineDataLogger { class Program { static void Main(string[] args) { using (MFDeploy mfDeploy = new MFDeploy()) { var devicePorts = mfDeploy.EnumPorts(TransportType.USB); if (devicePorts.Count != 0) { using (MFDevice netduino = mfDeploy.Connect(devicePorts[0])) { if (netduino.DbgEngine.IsConnected) { netduino.DbgEngine.OnMessage += new Microsoft.SPOT.Debugger.MessageEventHandler(DbgEngine_OnMessage); Thread.Sleep(Timeout.Infinite); } else { Console.WriteLine("Could not Connect"); Console.Read(); } } } } } static void DbgEngine_OnMessage(Microsoft.SPOT.Debugger.WireProtocol.IncomingMessage msg, string text) { Console.Write(text); } } }
Reading Debug Information in Console App using MFDeployEngine
Started by Thomas Rankin, May 01 2012 01:27 AM
1 reply to this topic
#1
Posted 01 May 2012 - 01:27 AM
I like to wire up my device to log information that my computer can further process and send to other services like Pachube etc. I didn't want to bother setting up an USB RS232 cable and board. Through some research I found Chris Walker mention that you could tap into the MFDeployEngine, but I wasn't able to find any code to do so. So I did a little research, and found that it was quite simple really. MFDeploy turns out to be quite a powerful tool to interface with your NetMF Devices.
#2
Posted 09 September 2012 - 07:23 PM
Hey Thomas,
Did you use MFDeployEngine to store persistent data?
I want to do that, but I don't know how. I don't know if I should update my firmware from 4.1 to 4.2,
and I don't know where do I get the "MFDeployEngine.dll" file.
Also, how can I make sure I'm not overriding some important data?
Any help would be appreciated.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users