# Automatic TCP session restoring on boot

**URL:** <https://forum.sierrawireless.com/t/automatic-tcp-session-restoring-on-boot/29419>\
**Category:** RC76\
**Tags:** feature-request\
**Created:** [March 31, 2023, 7:05pm UTC](https://forum.sierrawireless.com/t/automatic-tcp-session-restoring-on-boot/29419 "2023-03-31T19:05:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![help9help](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@help9help](https://forum.sierrawireless.com/u/help9help)\
**Post date:** [March 31, 2023, 7:05pm UTC](https://forum.sierrawireless.com/t/automatic-tcp-session-restoring-on-boot/29419/1 "2023-03-31T19:05:51Z")

</div>

Hello,

I have an RC7611 module configured as a TCP server and use it in the Direct Data Flow mode when a client is connected. The +KTCPCFG command allows me to open the listening socket automatically on boot. But to enter the Direct Data Flow mode I have to resend the +KTCPSTART command every time a client is connecting. Wonder if is there a way to make the device accept the first incoming connection and enter Direct Data Flow mode automatically?

Here is an example of the module configuration steps I do.  
These commands can be sent once and the configuration is stored on the device:

```auto
AT+KCNXCFG=1,"GPRS",APN,"",""
AT+KCNXUP=1
AT+KTCPCFG=,1,,10001,,,,,,1

```

Incoming connection notification:  
`+KTCP_SRVREQ: 1,2,IPAddress,Port`

Entering the Direct Data Flow, requires sending every time a new connection is accepted:

```auto
AT+KTCPSTART=2
CONNECT
...

```

Can sending the +KTCPSTART command be avoided to make the TCP session restored fully automatically on boot without the need for an external watchdog for the module?

Please advise. Thanks in advance!

Regards

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [April 1, 2023, 12:43am UTC](https://forum.sierrawireless.com/t/automatic-tcp-session-restoring-on-boot/29419/2 "2023-04-01T00:43:12Z")

</div>

no. i don’t think so, I think you need to enter this command

---

<div class="post-metadata">

**Author:** ![help9help](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@help9help](https://forum.sierrawireless.com/u/help9help)\
**Post date:** [April 3, 2023, 9:25pm UTC](https://forum.sierrawireless.com/t/automatic-tcp-session-restoring-on-boot/29419/3 "2023-04-03T21:25:50Z")

</div>

Ok, thank you for your reply anyway. Maybe it’s something that can be considered in future releases? Having the TCP/UDP server/client session and direct data flow restored automatically without outside intervention seems like a good feature to have. In the application I am working on the cellular modules will replace Wi-Fi gateways and having this feature would be helpful in order to not rework system firmware/protocol to support cellular modules.
