Re: thread safe? - remoting

110 views
Skip to first unread message

Victor Rocha

unread,
Sep 15, 2007, 8:17:19 AM9/15/07
to NModbus...@googlegroups.com, ahf...@gmail.com
hello

I have attached some sources on how to use the proposed remoting solution.
in fact I don't know if there's execessive overhead on this, but it's
been working fine for me.

to give proper credit, i got many hints from mono-brasil discussion
list, specially from Rafael Teixeira/ monoman :-) like he pointed out,
serial communication is so slow that the remoting/web overhead
probably won't be noticed at all.

RemoteInterface.cs = declare which methods will be exposed, complie as
dll and reference it in the rest of the applcation

RemoteObject.cs = a NMODBUS master

RemoteServer.cs = publishes our RemoteObject

aquisitor.cs = client to the remoting interface (in this case it's a
webservice, but could be pretty much anything)

hope it helps.
feedback will be welcome :-)

greetings
Victor

RemoteInterface.cs
RemoteObject.cs
RemoteServer.cs
aquisitor.cs
aquisitor.asmx

Welteis

unread,
Sep 18, 2007, 6:06:08 PM9/18/07
to NModbus

I´m very interested. This remoting server can be very helpfull, i´m
just worried about the speed (Refreshed Data).

I´ve seen something about the Mono Project. Are you using NModbus with
Gtk# succefully and under Unix?

Thanks!

> RemoteInterface.cs
> 1KDownload
>
> RemoteObject.cs
> 1KDownload
>
> RemoteServer.cs
> 1KDownload
>
> aquisitor.cs
> 3KDownload
>
> aquisitor.asmx
> 1KDownload

Victor Rocha

unread,
Sep 19, 2007, 9:46:52 PM9/19/07
to NModbus...@googlegroups.com
welteis,
(sorry if it's off-topic for the nmodbus list)

i use NModbus with mono in linux, and it works well for me.

we are acquiring data from modbus devices using a GNU/Debian 4 machine.

i have little experience with GTK, though. I have already tried it and
i know it works, but in fact i've been working mainly with console-
and web-based applications.

google would point you to some nice tutorials, i'd suggest looking for
Glade (for design of gtk interfaces) and libglade (for binding the
designed UIs into the c# language). feel free to contact me, we could
come up together with something nice...

wish you luck! :-)

victor

Reply all
Reply to author
Forward
0 new messages