[En-Nut-Discussion] Dual rs232<->Ethernet
Ulrich Prinz
uprinz2 at netscape.net
Fri Oct 30 00:21:37 CET 2009
Hi!
I am not sure, if I understand that correctly:
You'd like to communicate with two RS232 ports via TCP/IP.
In nut/app/rs232d there is a demo for doing that with one single port.
So you can duplicate the THREAD and assign the second one to a different
port. As a connection like that cannot be shared, only one client can
access one RS232 port. So you do not need to take care of launching
several threads per port.
To access GPIOs of the CPU there are different options. You can watch
the RS322 communication an catch special commands, that are not routet
to the RS232 port but are used to control or read GPIOs.
Or you can launch a third server thread that controls the GPIOs.
If your code doesn't work, you can post parts of the code in here, so we
can help.
Regards
Ulrich
asdus schrieb:
> Hi all.
> For my home automation i need to use 2 rs232<->ethernet converters
> I'm buy Ethernut V 1.3 H board and try to make it, using rs232d, Basic
> TCP Server and Serial Port Monitor examples.
> Using that i need to do this in dedicated threads, because i'm use
> other ethernut's digital pins to get home events. All my tries fails,
> i have lags using my remote rs232's.
>
> Can anyone with code or part of code, that's can help me to resolve my
> problem? Great thanks!
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list