[En-Nut-Discussion] Dual rs232<->Ethernet
Ulrich Prinz
uprinz2 at netscape.net
Fri Oct 30 20:31:47 CET 2009
Hi!
Yes, if you take a look at the previous discussion of the last few
weeks, you'll see, that there are some problems existing in the TCP/IP
stack.
But what you tell is that connections are not completely handled, as a
TCP COnnection may break at any time. So try to find a good point where
to monitor that situation and clean up the system to a default where it
accepts new data and connection.
But without code it's hard to tell.
Regards, Ulrich
asdus schrieb:
> 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!
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list