Hi,
i’m using an HL6528 2.8V
When connecting as a tcp client to a server, it happens that sometimes the kpattern is not recognized by the HL6528. the escape char is sent to the server as a data…i can see it in the log of the server
I try to send it three times with a pause of 1 second between each try… but i never get the OK from the HL6528. it is sent three time as a data to the server
It happens approximatively 1 times every 15 frames successfully sent to the server.
it seems that the module don’t understand the escape pattern…
it tried to use “\x1A” and also --EOF–Pattern-- as kpattern
it tried to make a pause of 300ms between the end of my data and the sending of the escape pattern…but pb is still there…
Do you have any lead to solve with this problem ?
below are the commands i send to the module (in case of a success):
(when it fails, we stopped after the “sending data + escape char” line - send three time the escape char without having the ok…)
Changing the escape pattern…
AT+KPATTERN="–EOF–Pattern–"
Rx HL6528: OK
Sending data to server…
AT+KCNXCFG=1,“GPRS”,“orange”,“orange”,“orange”,“0.0.0.0”,“0.0.0.0”,“0.0.0.0”
Rx HL6528: OK
AT+KTCPCFG=1,0,“xx.xxx.xx.xx”,xxxx
Rx HL6528: +KTCPCFG: 1
Rx HL6528: OK
AT+KTCPCNX=1
Rx HL6528: OK
Rx HL6528: +KCNX_IND: 1,4,1
Rx HL6528: +KCNX_IND: 1,1,0
Rx HL6528: +KTCP_IND: 1,1
AT+KTCPSND=1,100
Rx HL6528: CONNECT
sending data + escape char
Rx HL6528: OK
Rx HL6528: +KTCP_NOTIF: 1,8
Rx HL6528: +KTCP_DATA: 1,5
Receiving data from server …
AT+KTCPRCV=1,1000
Rx HL6528: CONNECT
Rx HL6528: 12345–EOF–Pattern–
Rx HL6528: OK
Closing Socket…
AT+KTCPCLOSE=1,1
Rx HL6528: OK
Delete Session…
AT+KTCPDEL=1
Rx HL6528: OK
Power Down Module…
AT+CPOF
Rx HL6528: +KCNX_IND: 1,5,30
Rx HL6528: OK
Module Powering down…
Rx HL6528: +KCNX_IND: 1,0,0