[En-Nut-Discussion] Dual rs232<->Ethernet

asdus asdusik at gmail.com
Fri Oct 30 09:16:38 CET 2009


Yep, you're right. But rs232d primer have some troubles.
Yes, it's have buffers to resolve different speed problems, but
connection stucks, if ethernet client disconnect unclean, and,
sometimes, i'm have strange data freezes, when i receive sended data
only on next connection.

2009/10/30 Ulrich Prinz <uprinz2 at netscape.net>:
> 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!



More information about the En-Nut-Discussion mailing list