WS6318 not exiting DATA-mode after [ETX]

Hi!

I have the following scenario: I’m opening a UDP socket in Continuous Mode (where [ETX] is considered end of data). If i read and understand the AT command manual correctly, the modem in this mode should send the current datagram (with ETX marking boundaries) and change from DATA mode to AT mode when parsing the [ETX]-character? Now I’m only able to send the datagram when sending “+++” sequence, which is a pretty slow solution (1 sec guard time before and after +++).

I’m opening the socket and DATA mode with “AT+WIPDATA=1,1,1”

ETX = 0x03?

What am I doing wrong? :slight_smile:

EDIT: I was mistaken, the modem did actually send the datagram when parsing the [ETX]-character, but it still wont exit to AT mode without +++.

Henrik

Hi,

UDP is connectionless protocol ,so [ETX] charater is necessary to define the boundary of datagrams being sent.

To exit from data mode and switch back to AT mode,

  1. by sending “+++” with 1 second guard time before and after the sequence
  2. by sending an AT+WIPDATA=<proto.,,0 on another UART in AT mode

Thanks.

Thanks for the answer!

Am I reading the AT command manual wrong when it states this is a normal response for AT+WIPDATA=1,5,1:

CONNECT
<read/write data>

OK

This is differentiated from the other example without

CONNECT
<read/write data>
+++
OK

Hello, i use WS6318 ad i am having issue with at+wipdata command. I use echo mode for serial communication and when entered in data mode i see no echo for UART, is it normal? also i try to read google page with at+wipdata and nothing happened. Here is part of my commands sequence.
After “CONNECT” i send “GET / HTTP/1.0[0x3]+++” which i cant see in the transmission.

AT+WIPCREATE=2,1,“www.google.com”,80
OK
AT+WIPDATA=2,1,2
CONNECT

OK

+WIPPEERCLOSE: 2,1

OK

Also i try sending UDP to a programm on my PC that i wrote, also nothing happened. The programm wait UDP on port 11000. After “CONNECT” i send “123456789[0x3]+++”, also not shown between CONNECT and OK.

AT+WIPCREATE=1,1,80,“212.39.80.42”,11000
OK
AT+WIPDATA=1,1,1
CONNECT

OK

What i am doing wrong?
regards
Georgi

As far as I understand another UART in WS6318 is UART2 that is used as stated in the data sheet for debug purposes only. Are you sure that UART2 could be used for switching between modes? Thanks.

Could you describe the algorithm that you use to switch your WS6318 from DATA mode to AT command mode? Am I right that you don’t use the slow “+++” approach? Thanks.