Page 1 of 1

Problems sending data with AT+CIPSENDL

Posted: Sun Oct 27, 2024 9:57 am
by rajtendulkar
Hello,

I am a new user to ESP32. I have a problem, that I am trying to connect to a server and upload some data to it.
In total I make 3 uploads of the data. The first two are received at the host side.
However, third transaction doesn't go through.

I want to know, how can I debug this problem.
I attached the wireshark to the host Wifi adapter.
I can see the first 2 transactions. However third transaction doesn't appear on Wifi as well.
So looks like the transaction is stuck at sender side itself.
On the server side, the python script is stuck waiting for data with recv() on the socket.

What should be my next steps?

I have copy pasted the AT commands from my output logs.

Code: Select all

>> AT+CIPSTART=3,"SSL","192.168.0.115",2525,0
3,CONNECT
OK

>> AT+CIPSENDL=3,203
OK

+CIPSENDL:203,203

SEND OK

>> AT+CIPSENDL=3,301
OK
+CIPSENDL:301,301

SEND OK

>> AT+CIPSENDL=3,100
OK

Re: Problems sending data with AT+CIPSENDL

Posted: Tue Oct 29, 2024 9:37 am
by esp-at
Hi, could you please compile the AT firmware in your PC and see what happen from AT log port (GPIO1).

Use latest master branch and enable more logs to see what happened:
Compile guide: https://docs.espressif.com/projects/esp ... le_it.html

in the step 5, configurate the following options:
python build.py menuconfig -> Component config -> Log output -> Default log verbosity -> Debug
python build.py menuconfig -> Component config -> AT -> Enable ESP-AT Debug
python build.py menuconfig -> Component config -> AT -> Enable ESP-AT Debug -> Enable Network Debug
(Disable BT to reduce bin size) python build.py menuconfig -> Component config -> Bluetooth -> Deselect

The AT log port output should give more logs.

Re: Problems sending data with AT+CIPSENDL

Posted: Tue Nov 05, 2024 7:54 am
by rajtendulkar
Hi,

I can see that SEND OK is being sent by ESP32, but it is not received properly at the other end.
Can you give further pointers on why this would be the case?
I was having all other responses correctly.

Thank you!

Re: Problems sending data with AT+CIPSENDL

Posted: Tue Nov 05, 2024 9:18 am
by rajtendulkar
Hi,

I can see that SEND OK is being sent by ESP32, but it is not received by the devices.
I can see other responses coming correctly.
However, this is somehow not received.

Any inputs on how can we debug this further?

Thanks!

Re: Problems sending data with AT+CIPSENDL

Posted: Wed Nov 06, 2024 2:09 am
by esp-at
hi, from the logs you provided, it seems that PC has already received this data (data len=100), you can see this log:
1) ESP32 tcp tx:
@@tcp-tx: IPL:169, S:2503821884, A:708091599, SP:52705, DP:2525, F:0x18, TDL:129
2) PC tcp rx:
@@tcp-rx: IPL:40, S:708091599, A:2503822013, SP:2525, DP:52705, F:0x10, TDL:0

it indicates that:
esp32 tcp seq (2503821884) + datalen (129) = pc tcp ack (2503822013), so pc should has already received this data.

I suggest you check the logic on the TCP receiving side.

~

Re: Problems sending data with AT+CIPSENDL

Posted: Wed Nov 06, 2024 8:55 am
by rajtendulkar
Looks like the problem is with receiving side of the UART.
I don't receive SEND OK on the UART.