08-12-2013 05:56 AM
Hi - My requirement is to use the serial port of communication (RS232) between Host and RT , if the TCP / IP communication fails and need to keep on searching for TCP / IP communication establishment , if the connection has been established using TCP /IP then I don't bother about serial port communication , but when ever it fails , I need to immediately switch over to serial port communication with out any delay.
08-12-2013 06:07 AM
You are mixing up categories here. A serial port (RS232) is a hardware device, whereas TCP/IP is a protocol, whose data transfer speed depends on the hardware layer it uses.
Typically you can achieve 115 kbit/s with RS232 and 100 Mbit / s with a LAN cable. So that is a factor of 1000. You can realize TCP /IP on a serial link as well.
Cheers
Edgar
08-12-2013 06:54 AM
Hi - Thanks for your reply , I meant to say that , I need to use both way (RT to Host and Vice Versa) data transfer using both ways (TCP/IP and Serial Port - RS232). In this logic , I need to know , how can I accomodate the logic that is used for acquring datas through tcp/ip and if it fails ,immediately I need to switch over to serial port.
Here my doubt is , Suppose controller is connected with both ethernet cable as well as serial cable , when I disconnect the ethernet cable , the data should continuosly transfer through serial port cable. But it seems it not applicable to do so.
How can I accomplish the above said logic . Please suggest me to some good points to start up this task.
Please do the needful.
Thanks and Regards,
Dinesh
08-12-2013 07:49 AM
The easiest thing might be to send the data through both connections in parallel all the time. But you have to check whether RS232 is fast enough for your application
08-12-2013 10:43 PM
Hi - Thanks for your reply. Can I get me the startup code for sending / receiving the data's in parallel all the time through both RS232 and TCP/IP connections? and let me know, what would happen if the TCP/IP connection fails?
Awaiting your reply.
Thanks and Regards,
Dinesh
08-16-2013 12:34 AM
Is there any updates on this please?
Regards,
Dinesh
08-16-2013 02:24 AM
Dineshniot,
we are offering diverse professional programming services. If you want us to do the work for you we can provide a project proposal including budget and timeline. We need more details on the task though.
Cheers
Edgar