Hello.
I've a task to exchange data between KRC4 and sw on PC. KRC4 is a KSS 8.3.38 server with Ethernet KRL 2.2.6. Protocol after connection establishing is:
- KRC4 receives string with '\r' (13) in the end. String may be "start" or "end".
IF "start":
- KRC transfers string with "\r\n" (13,10) in the end every 40 ms. String is a couple of data and its length is variable.
IF "end":
- KRC stops data transfer.
So, incoming and outcoming strings have variable size and I used STREAM type of raw data in xml file:
<RECEIVE>
<RAW>
<ELEMENT Tag="PCData" Type="STREAM" EOS="13" Set_Flag="105"/>
</RAW>
</RECEIVE>
<SEND>
</SEND>
The problem is that in this case any raw data that I will send will also ends with 13 (not 13, 10 as i need) despite the fact that I've configured only raw data to receive. Another my try was with BYTE[1] data but sending of 40 bytes in 1-byte portions takes very long time (about 300 ms).
Can you advise something?
P.S. I cannot modify PC side software.
Thanks.