[Mono-dev] Serial Port Reading

Spyros Sakellariadis (MS OPEN TECH) spyros at microsoft.com
Wed Dec 10 17:30:31 UTC 2014


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-7623<callto:+14257077623>   -  Mobile +1(425) 444-1884<callto:+14254441884>

/ss
From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-bounces at 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 <Ivo at ufo-net.nl<mailto:Ivo at 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 at lists.ximian.com<mailto:Mono-devel-list at lists.ximian.com>

http://lists.ximian.com/mailman/listinfo/mono-devel-list


_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com<mailto:Mono-devel-list at lists.ximian.com>
http://lists.ximian.com/mailman/listinfo/mono-devel-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20141210/1219a322/attachment-0001.html>


More information about the Mono-devel-list mailing list