[Mono-dev] Mono C# Serial Port problem

Jim Redman jredman at ergotech.com
Wed May 21 10:16:51 EDT 2008


Shawn,

I don't know whether it's helpful, but the RXTX implementation of the 
JavaComm API is available on a huge range of platforms - and it runs 
under Mono after IKVMC'ing it.

Since the portability of the native code is your issue you may want to 
take a look at what they have.  The .NET underlying native code 
requirements can't be much different from Java's - there's not much 
imagination to be applied to serial ports.  If you could reuse it with 
or without modifications, you'd have a well tested, portable, base.

Jim

Shawn Schaerer wrote:
> Hi,
> 
> We could turn this into a new implementation.  The serial port is a 
> major component robotics.
> 
> The issue with our code is that we call the Mono posix libraries, this 
> is not cross platform.
> 
> Is this a problem ?  If not we can work on the new serial port 
> implementation.
> 
> In any case we will put it up on our site in the next couple of days
> 
> Shawn Schaerer
> Director of Research and Development
> Cogmation Robotics Inc
> http://www.cogmation.com
> 
> 
> 
> 
> On 20-May-08, at 4:04 PM, Miguel de Icaza wrote:
> 
>>
>>>
>>> No we do not have it on the web, but we are willing to put it up and
>>> or submit it to the mono-project.
>>
>> Would it be possible to turn this new implementation into something that
>> would fix the existing System.IO.Serial implementation?
>>
>> We do not really use serial devices so we barely touch this code, most
>> of the code in that namespace has been written and later fixed by people
>> that have had a particular problem that they absolutely had to have
>> fixed.
>>
>>>
>>>
>>>
>>>
>>>
>>> Shawn Schaerer
>>> Director of Research and Development
>>> Cogmation Robotics Inc
>>> www.cogmation.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 16-May-08, at 11:00 AM, Xavi de Blas wrote:
>>>
>>>> Shwn: Do you have this reimlemenation of serial n OsX on the net? is
>>>> it free software?
>>>>
>>>>
>>>> Thanks
>>>>
>>>>
>>>> 2008/5/16, Shawn Schaerer <shawn at cogmation.com 
>>>> <mailto:shawn at cogmation.com>>:
>>>>> Hi,
>>>>>
>>>>>
>>>>> We also have problems with the serial port under OSX.  We had to
>>>>> re-
>>>>> implement most of the serial port unsing posix call.
>>>>>
>>>>>
>>>>> Can you actually get any data out of the port ?
>>>>>
>>>>>
>>>>> Shawn Schaerer
>>>>> Director of Research and Development
>>>>> Cogmation Robotics Inc
>>>>> www.cogmation.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> 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
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

-- 
Jim Redman
(505) 662 5156 x85
http://www.ergotech.com


More information about the Mono-devel-list mailing list