Hi Shawn:
We are working heavily with serial ports on mono linux here at my Univ.
and so far all works kind of ok doing read/write calls , but now we
really need the incoming data event, but also be able to write to the
serial port, so we can't do threading loops makings reads on the port
Hi Mauricio,
Are implementation was for OSX and we did not implement events.
However we did make a threaded read and write that uses select on the
port to see if there is data.
Here is the where the code can be downloaded.
http://shaneo.blogsite.org/
I hope this helps.
Shawn
Hi Shawn:
We are
Hi,
Sorry, We have meant to release the code, but it went on the back
burner and I actually forgot about it. Thanks for the reminder.
I guess if the patch works, then that is great.
Our implementation relies on a new .NET class that uses Unix calls.
If this is still needed we can release
Hello all
which is the status of the serial port in MacOSX implementation?
i think Shawn code is not released, and i wonder if patching mono with
this patch:
https://bugzilla.novell.com/show_bug.cgi?id=384227
and re-compiling Mono will work on Mac.
Worked for anyone? i have no MACs around.
Uhm...
Now I try the code below. It works on Microsoft Visual Studio, but not in
mono on Ubuntu.
It compile it, but when I try to run it I get this error:
Unhandled Exception: System.NotImplementedException: The requested feature
is not implemented.
at
The RecievedEvent is not implemented (check the exception...). If you
need to monitor the serial port for incoming data, create a separate
thread for handling the port and use the blocking Read methods.
Remember not to use the port outside the thread that has created it.
Please note that MSDN
Hi,
I'm a little scared that you all want to fiddle with SerialPort
implementation. The Win32 and Linux versions work well and are
reasonably stable (there are some little fixes waiting in svn for
inclusion in next mono release - but you have very little chance of
actually bumping into the bugs
I have the same problem.
I compile the code located at
http://www.mono-project.com/HowToSystemIOPorts.
When I run it I get this:
Unhandled Exception: System.TimeoutException: The operation has timed-out.
at System.IO.Ports.SerialPortStream.Read (System.Byte[] buffer, Int32
offset, Int32 count)
Alan_Chun wrote:
HI, currently I am porting a windows app to linux using Mono. I have some
difficulties to get the serial port work. here is the code(based on mono
website):
I have also tried BytesToRead, Read, ReadByte, all of them are working
fine under windows using .net2.0
Hi,
I hope to have our OSX implementation up in the next couple of days.
This implementation should work under linux too!!
I am also looking at the serial.c source and will try to get that to
work under OSX as well.
I will send the link ASAP.
Shawn Schaerer
Director of Research and
Would you mind filling a bug with the precise information?
Thanks,
Carlos.
El jue, 29-05-2008 a las 02:24 -0700, Bs360 escribió:
Alan_Chun wrote:
HI, currently I am porting a windows app to linux using Mono. I have some
difficulties to get the serial port work. here is the
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
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
Hello,
The issue with our code is that we call the Mono posix libraries, this
is not cross platform.
Our implementation uses the Win32 api in windows and posix calls with a C
helper layer in Unix platforms.
Observe that we never tested it with Mac.
Since you are using the Mono.Posix
Thanks.,
I will look in to it and see if we can fix the osx version. Most
likely it is a tty setting that has not been set, in OSX Unix there
are a couple of settings that need to be set or the port does not work.
Shawn Schaerer
Director of Research and Development
Cogmation Robotics Inc
Ok, it will be really useeful for us because we are working on porting
our program to OSX without success.
Please, let me know when you publish it
Thanks
2008/5/16 Shawn Schaerer [EMAIL PROTECTED]:
Hi,
No we do not have it on the web, but we are willing to put it up and or
submit it to the
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
Shwn: Do you have this reimlemenation of serial n OsX on the net? is
it free software?
Thanks
2008/5/16, Shawn Schaerer [EMAIL PROTECTED]:
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
Hi,
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.
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
HI, currently I am porting a windows app to linux using Mono. I have some
difficulties to get the serial port work. here is the code(based on mono
website):
public static void Main(string[] args)
{
SerialPortTest myTest = new SerialPortTest();
myTest.Test();
Alan_Chun wrote:
HI, currently I am porting a windows app to linux using Mono. I have some
difficulties to get the serial port work. here is the code(based on mono
website):
Hi Alan, cna you test this code in linux? (using of course /dev/ttyS0 or
the correct serial device), I use lot of
Alan_Chun pisze:
HI, currently I am porting a windows app to linux using Mono. I have some
difficulties to get the serial port work. here is the code(based on mono
website):
Could you post whole of your program.
It looks like you are trying to open serial port in the main thread,
then
Hi Arek,
That's the whole .cs file I have.
I know it looks strange but under mono, the data received event is not
working. That's why I create another thread to do data polling. Maybe you
have better ways to do that?
Thanks
Arek Waliszewski wrote:
Alan_Chun pisze:
HI, currently I am
Try creating the SerialPort in the same Thread that uses it afterwards.
On Thu, May 15, 2008 at 4:49 PM, Alan_Chun [EMAIL PROTECTED] wrote:
Hi Arek,
That's the whole .cs file I have.
I know it looks strange but under mono, the data received event is not
working. That's why I create another
Panoramix wrote:
In Linux to use a device the user who requires access should have the
permission to use it.
So you must verify that the user starts the application is registered in
the group owner of ttysN.
To find out the group owner of the device by a shell run the command
below:
That's likely because 'mono test.exe' actually uses mono, and
'test.exe' runs .net instead.
This appears to be a bug.
Please fill a bug report with the attached repro.
Thanks!
Carlos
El jue, 15-05-2008 a las 12:01 -0700, Alan_Chun escribió:
Panoramix wrote:
In Linux to use a device
Hello, you can take a look at chronojump code. It uses serial port on
both platforms:
http://svn.gnome.org/viewvc/chronojump/trunk/src/chronopic.cs?revision=383view=markup
http://svn.gnome.org/viewvc/chronojump/trunk/src/chronojump_mini.cs?revision=364view=markup
It's a pity this two parts are
27 matches
Mail list logo