Hello,
first of all i'm not sure if i post in the correct forum part but I hope it's OK.
We have an application that uses RTU (remote terminal unit) connected to serial interface of Cisco 819 ISR (C819HG-U-K9).
We want to be able to send and receive data from it (from RTU), for that we use raw-socket encapsulation.
so we set in 819HG in the following way:
router(config)# interface Serial0
router(config-if)# physical-layer async
router(config-if)# no ip address
router(config-if)# encapsulation raw-tcp
router(config-if)# exit
and
router(config)# line 7
router(config-line)# raw-socket tcp server 4007
if we connect from HQ on port 4007 we are able to communicate with it, and send/receve data. All is ok.
Here is our problem:
we added to line 7 config the following line:
router(config-line)# raw-socket tcp client A.B.C.D 5000
and now the router continuously tries to connect to the server on port 5000 (like every 5 seconds) because the web-application server terminates the connection. From what i've read on Cisco documentation the raw socket transport has an built-in auto retry mechanism (doesn't state if I can disable or modify some settings). If it was only 1 router it was ok, but if you have >100....

We don't want a permanent connection with the router, we want to initiate a connection only when some data are passed through serial interface from RTU.
Can you point me to the right direction?
Thanks.