Re: [Mono-dev] Serial Port Reading
I may be answering a simpler question than is asked, but in response to techi eth’s “Do anyone have successfully in reading of serial port with Linux over Mono?” we are using Mono on a Raspberry Pi running Debian GNU/Linux to read data coming in the serial port from an Arduino sensor as part of our IoT project “ConnectTheDots”. The code is on GitHub at http://connecthedots.io , and the Wiki contains instructions on how to set up the environment (from the Arduino to the Raspberry and then up to Azure in our case). Relatively simple, but if anyone has a better way to do this, would love to hear. Spyros Sakellariadis MS Open Technologies, Inc. Office +1(425) 707-7623callto:+14257077623 - Mobile +1(425) 444-1884callto:+14254441884 /ss From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of techi eth Sent: Monday, December 8, 2014 7:52 PM To: mono-devel Subject: Re: [Mono-dev] Serial Port Reading Thanks for input.. Is their any plan or update in Mono available in which event is working with serial port ? Thanks On Mon, Dec 8, 2014 at 4:50 PM, Ivo Smits i...@ufo-net.nlmailto:i...@ufo-net.nl wrote: Hello, I use the serial port class a lot, but always through the synchronous Read and Write methods. This works great. Looking at the mono source code for the SerialPort class, the events seem to exist, but are not called from anywhere, so they are probably not yet implemented (as is stated in the documentation, http://www.mono-project.com/archived/howtosystemioports/). SerialPort source code: https://github.com/mono/mono/blob/master/mcs/class/System/System.IO.Ports/SerialPort.cs -- Ivo techi eth schreef op 8-12-2014 11:24: Hi, I have bit struggle to get reading over Serial port with Mono on Linux. As of now I could not able to get Event working. Do anyone have successfully in reading of serial port with Linux over Mono ? Or Is this bug or not implemented part of Mono ? Thanks ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.commailto:Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.commailto:Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Event logging under Mono
Yes, to local Sent from my Windows Phone From: Miljenko Cvjetkomailto:mcvje...@holisticware.net Sent: 12/9/2014 7:56 AM To: mono-devel-list@lists.ximian.commailto:mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Event logging under Mono Hi Did You set MONO_EVENTLOG_TYPE? win32|local|null; cheers mel On 20141208 23:38 , Spyros Sakellariadis (MS OPEN TECH) wrote: [Sorry if duplicate. I think I originally sent to wrong alias] Hi – I am trying to implement logging for a small application running under Mono on a Raspberry Pi. Unfortunately I have been unable to create an event log despite following guidance that I have found on the Net, and am wondering if there is best practice on how to do this. FWIW, the steps I have taken are as follows: 1. On the Raspberry Pi, I created /var/lib/mono and /var/lib/mono/eventlog directories, set directory permission on each to 777 per http://lists.ximian.com/pipermail/mono-devel-list/2006-August/019853.html. 2. Ran the following .NET code, based loosely on http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog(v=vs.110).aspxhttp://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog%28v=vs.110%29.aspx: using System; using System.Text; using System.Diagnostics; namespace Logging { class Program { static void Main(string[] args) { if (!EventLog.SourceExists(MySource)) { EventLog.CreateEventSource(MySource, MyNewLog); Console.WriteLine(CreatedEventSource); Console.WriteLine(Exiting, execute the application a second time to use the source.); return; } else Console.WriteLine(Found the EventLog Source.); return; } } } If I run this twice on a Windows 8 machine, the first time it comes back with “CreatedEventSource”, the second time it comes back with “Found the EventLog Source”, and the Windows Event Log has a new log entitled MyNewLog. However, if I run it on the Raspberry Pi under mono, I get the message “CreatedEventSource” no matter how many times I run it, and no files are created in /var/lib/mono/eventlog. What am I missing, or what should I try instead? Spyros Sakellariadis Microsoft Open Technologies, Inc. spy...@microsoft.commailto:spy...@microsoft.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.commailto:Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Event logging under Mono
[Sorry if duplicate. I think I originally sent to wrong alias] Hi - I am trying to implement logging for a small application running under Mono on a Raspberry Pi. Unfortunately I have been unable to create an event log despite following guidance that I have found on the Net, and am wondering if there is best practice on how to do this. FWIW, the steps I have taken are as follows: 1. On the Raspberry Pi, I created /var/lib/mono and /var/lib/mono/eventlog directories, set directory permission on each to 777 per http://lists.ximian.com/pipermail/mono-devel-list/2006-August/019853.html. 2. Ran the following .NET code, based loosely on http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog(v=vs.110).aspx: using System; using System.Text; using System.Diagnostics; namespace Logging { class Program { static void Main(string[] args) { if (!EventLog.SourceExists(MySource)) { EventLog.CreateEventSource(MySource, MyNewLog); Console.WriteLine(CreatedEventSource); Console.WriteLine(Exiting, execute the application a second time to use the source.); return; } else Console.WriteLine(Found the EventLog Source.); return; } } } If I run this twice on a Windows 8 machine, the first time it comes back with CreatedEventSource, the second time it comes back with Found the EventLog Source, and the Windows Event Log has a new log entitled MyNewLog. However, if I run it on the Raspberry Pi under mono, I get the message CreatedEventSource no matter how many times I run it, and no files are created in /var/lib/mono/eventlog. What am I missing, or what should I try instead? Spyros Sakellariadis Microsoft Open Technologies, Inc. spy...@microsoft.commailto:spy...@microsoft.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list