# HL7588 - Using Direct Data Flow in Server Mode

**URL:** <https://forum.sierrawireless.com/t/hl7588-using-direct-data-flow-in-server-mode/22059>\
**Category:** Uncategorized\
**Created:** [November 9, 2020, 6:55pm UTC](https://forum.sierrawireless.com/t/hl7588-using-direct-data-flow-in-server-mode/22059 "2020-11-09T18:55:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron.mcneil](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@aaron.mcneil](https://forum.sierrawireless.com/u/aaron.mcneil)\
**Post date:** [November 9, 2020, 6:55pm UTC](https://forum.sierrawireless.com/t/hl7588-using-direct-data-flow-in-server-mode/22059/1 "2020-11-09T18:55:30Z")

</div>

I am using a Sierra Wireless HL7588 module that is included in the Nimbelink Skywire NL-SW-LTE-S7588-T.

I would like to make use of Direct Data Flow mode. The problem seems to be when trying to use AT+KTCPSTART when I have the TCP connection set up in server mode. I can successfully use Direct Data Flow Mode and KTCPSTART when I am configured as a client. Below is a capture of the AT commands and the responses I get when trying to do this. You can see, I set up both a client and server connection. I then start the client connection successfully using KTCPSTART, send some data, and then close the connection. I do the same steps when trying to start the server mode using KTCPSTART but get an error returned.

WinTX New Capture Started: 8/27/2020 10:38:34 AM  
AT+KTCPCFG?

+KTCPCFG: 1,0,1,1,"",12345,0,0,0 //SERVER CONFIG  
+KTCPCFG: 2,0,1,0,“47.222.66.242”,12345,2045,0,0,0 //CLIENT CONFIG

OK  
AT+KTCPCSTART=2

+KTCP\_NOTIF: 2,5  
AT+KTCPSTART=2 //START DIRECT DATA MODE CONFIGURED AS CLIENT

+KTCP\_IND: 2,1

CONNECT //SUCCESSFULLY CONNECTED TO SERVER  
hello+++  
+++

OK

+KTCP\_DATA: 2,1

+KTCP\_DATA: 2,2

+KTCP\_DATA: 2,1

+KTCP\_DATA: 2,1

+KTCP\_DATA: 2,1

+KTCP\_DATA: 2,1

+KTCP\_DATA: 2,1

+KTCP\_DATA: 2,1

+KTCP\_DATA: 2,1

+KTCP\_DATA: 2,1

+KTCP\_DATA: 2,1

+KTCP\_DATA: 2,1  
AT+KTC{PCLOSE=2 //CLOSE CONNECTION

OK

+KCNX\_IND: 1,5,30

AT+KTCPCFG?

+KTCPCFG: 1,0,1,1,"",12345,0,0,0 //SERVER CONFIG  
+KTCPCFG: 2,0,1,0,“47.222.66.242”,12345,2045,0,0,0 //CLIENT CONFIG

OK  
AT+KTCPSTART=1 //START DIRECT DATA MODE CONFIGURED AS SERVER

+CME ERROR: 910 //ERROR

+KCNX\_IND: 1,0,0

My question is, is it even possible to use Direct Data Flow mode as I am trying to do? If so, what am I doing wrong ?

---

<div class="post-metadata">

**Author:** ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://forum.sierrawireless.com/u/Donald)\
**Post date:** [November 10, 2020, 2:17am UTC](https://forum.sierrawireless.com/t/hl7588-using-direct-data-flow-in-server-mode/22059/2 "2020-11-10T02:17:14Z")

</div>

Hi @aaron.mcneil

Which firmware version are you using (ATI3)? If you are not in the latest firmware, please download the latest one and retry.

You can get it here [https://source.sierrawireless.com/resources/airprime/software/hl7588-firmware/#sthash.I6wqANCZ.dpbs](https://source.sierrawireless.com/resources/airprime/software/hl7588-firmware/#sthash.I6wqANCZ.dpbs)

---

<div class="post-metadata">

**Author:** ![aaron.mcneil](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@aaron.mcneil](https://forum.sierrawireless.com/u/aaron.mcneil)\
**Post date:** [November 13, 2020, 3:12pm UTC](https://forum.sierrawireless.com/t/hl7588-using-direct-data-flow-in-server-mode/22059/3 "2020-11-13T15:12:59Z")

</div>

Hi @Donald,

I tried upgrading the firmware and still get the same results. I am able to use AT+KTCPSTART when using as a client, but get an error returned when trying to as a server.

---

<div class="post-metadata">

**Author:** ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://forum.sierrawireless.com/u/Donald)\
**Post date:** [November 16, 2020, 7:49am UTC](https://forum.sierrawireless.com/t/hl7588-using-direct-data-flow-in-server-mode/22059/4 "2020-11-16T07:49:18Z")

</div>

Hi @aaron.mcneil

> [@aaron.mcneil](#):
>
> AT+KTCPCFG?
> 
> +KTCPCFG: 1,0,1,1,“”,12345,0,0,0 //SERVER CONFIG  
> +KTCPCFG: 2,0,1,0,“47.222.66.242”,12345,2045,0,0,0 //CLIENT CONFIG

> [@aaron.mcneil](#):
>
> AT+KTCPSTART=1 //START DIRECT DATA MODE CONFIGURED AS SERVER
> 
> +CME ERROR: 910 //ERROR

It is a normal behavior. You cannot start a TCP Connection in Direct Data Flow (KTCPSTART) with only a server configuration.  
You need a TCP connection between the client and the server to start a TCP Connection in Direct Data Flow (KTCPSTART).

Please help to tick “Solution” if your question is answered.
