[MonoDevelop] Missing System.IO.Ports?

Doug Blank doug.blank at gmail.com
Tue Sep 25 01:51:53 UTC 2012


On Mon, Sep 24, 2012 at 6:51 PM, Daniel Morgan <monodanmorg at yahoo.com> wrote:
> Well.  That is a shame.  How well does Mono work with using the serial port
> to communicate with an Arduino microcontroller board?

I have used the Mono SerialPort code to talk to the Arduino [1] (and
the Fluke2 + Scribbler robot [2]) without issues. There seems to be a
bit more of a delay when compared to our CPython + pyserial API, but
this version is in IronPython on Mono using the Mono SerialPort API.
This works on Linux, Mac, and Windows.

> What would it take to implement the DataRecievedEvent ?

It would be super great if someone implemented it (for Unix and Windows).

-Doug

[1] - http://blog.roboteducation.org/node/47
[2] - http://calicoproject.org/Calico_Myro

> ________________________________
> From: Daniel Hughes <trampster at gmail.com>
> To: Doug Blank <doug.blank at gmail.com>
> Cc: monodevelop-list at lists.ximian.com; daviesl5000 <davies-lee at sky.com>
> Sent: Sunday, September 23, 2012 5:30 PM
> Subject: Re: [MonoDevelop] Missing System.IO.Ports?
>
> We found that on mono for windows we would lose data. We didn't investigate
> this to closely because we use ms .net on windows anyway.
>
> Once we rewrote our code to not rely on the DataRecievedEvent it worked fine
> on mono for linux.
>
> Cheers,
> Daniel Hughes
>
> On Mon, Sep 24, 2012 at 1:32 AM, Doug Blank <doug.blank at gmail.com> wrote:
>
> On Sun, Sep 23, 2012 at 2:18 AM, Daniel Hughes <trampster at gmail.com> wrote:
>> The System.IO.Ports namespace is in System.dll
>>
>> However before you go to far you should be aware that mono does not have
>> an
>> implementation for event driven serial. And they have no plans to
>> implement
>> it. At my work we had to rewrite our serial layer to work around this. You
>> should also be aware that serial coms is known to not work on mono for
>> windows.
>
> We have been using Mono, SerialPort from System.IO.Ports, and COM
> ports on Windows without problems.
>
> It may be that on older Windows (eg, XP) that we had to prefix the
> "COM" with "\\.\" for ports greater than 9.
>
> -Doug
>
>> Best of luck,
>> Daniel Hughes
>>
>>
>>
>> On Sat, Sep 22, 2012 at 9:46 AM, daviesl5000 <davies-lee at sky.com> wrote:
>>>
>>> Hi,
>>>
>>> I'm new to mono (not C#). I tried porting one of my window apps to Linux
>>> (Ubuntu) Mono (2.8). However when selecting "Edit Reference" in the
>>> project
>>> solution I can find all the modules required by project except
>>> Serial.IO.Ports?
>>>
>>> Is there something required in Linux in addition to the IDE to add
>>> Serial.IO.Port support?
>>>
>>> Many thanks,
>>>
>>> Lee
>>>
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://mono.1490590.n4.nabble.com/Missing-System-IO-Ports-tp4656727.html
>>> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Monodevelop-list mailing list
>>> Monodevelop-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>>
>>
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>
>
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>


More information about the Monodevelop-list mailing list