[Mono-list] System.IO.Ports / Events

Daniel Hughes trampster at gmail.com
Thu Mar 8 10:40:26 UTC 2012


The company I work for had a need for these events as well to port an
existing application to run on ubuntu.

The answer I got then was that it was not worth implementing because no one
wanted it. I was told to implement it myself if I wanted it. Which I could
not do as I had stupidly used reflector on the .net implementation
excluding me from contributing to mono.

In the end I rewrote the serial layer of our application to work without
the need for the events. The protocol we where using had a
clear separation between sending and receiving it was basically a
command response system. That meant we could send our command and then use
the blocking read methods to wait for the expected response. (no need for
polling in our case) This will not work for all protocols so I cant be sure
that this approach will help you.

It is sad that such a hole exists in monos implementation. But despite this
question having come up quite a lot the mono people do not consider it a
priority.

Sincerely,
Daniel Hughes

On Thu, Mar 8, 2012 at 10:32 PM, Armando B. <hmandevteam at gmail.com> wrote:

> Also i had this need, you could try to polling
>
> http://code.google.com/p/comex-project/source/browse/trunk/comex-base/Src/Readers/SmartMouseReader.cs#247
>
> and parse read data, after put data in a container and generate an
> DataArrived Event that say your application that container is filled.
> For some projects i used this approach
>
>
>
> 2012/3/8 Robert Jordan <robertj at gmx.net>:
> > On 28.05.2010 14:06, yp_381 wrote:
> >>
> >> My question is, if the information regarding the implementation state of
> >> the
> >> DataReceived-Event provided here
> >> http://www.mono-project.com/HowToSystemIOPorts is still correct.
> >>
> >> Everything I found about it was several months, or even years old. Are
> the
> >> events still not implemented, or am I just doing something wrong?
> >
> >
> > These limitations are still in place.
> >
> > Robert
> >
> > _______________________________________________
> > Mono-list maillist  -  Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
> --
>   themonospot project - http://www.integrazioneweb.com/themonospot
>   monosim project - http://www.integrazioneweb.com/monosim
>   comex project - http://comex-project.googlecode.com
>   webpman project - http://www.integrazioneweb.com/webpman
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120308/2863de24/attachment.html>


More information about the Mono-list mailing list