Problems sending data with AT+CIPSENDL

rajtendulkar
Posts: 4
Joined: Sun Oct 27, 2024 9:37 am

Problems sending data with AT+CIPSENDL

Postby rajtendulkar » Sun Oct 27, 2024 9:57 am

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
Attachments
at_command_log.txt
(1.88 KiB) Downloaded 93 times

esp-at
Posts: 200
Joined: Mon May 09, 2022 3:00 am

Re: Problems sending data with AT+CIPSENDL

Postby esp-at » Tue Oct 29, 2024 9:37 am

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.

rajtendulkar
Posts: 4
Joined: Sun Oct 27, 2024 9:37 am

Re: Problems sending data with AT+CIPSENDL

Postby rajtendulkar » Tue Nov 05, 2024 7:54 am

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!
Attachments
device.txt
(5.17 KiB) Downloaded 20 times
esp32.txt
(79.82 KiB) Downloaded 21 times

rajtendulkar
Posts: 4
Joined: Sun Oct 27, 2024 9:37 am

Re: Problems sending data with AT+CIPSENDL

Postby rajtendulkar » Tue Nov 05, 2024 9:18 am

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!
Attachments
device.txt
(5.17 KiB) Downloaded 22 times
esp32.txt
(79.82 KiB) Downloaded 21 times

esp-at
Posts: 200
Joined: Mon May 09, 2022 3:00 am

Re: Problems sending data with AT+CIPSENDL

Postby esp-at » Wed Nov 06, 2024 2:09 am

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.

~

rajtendulkar
Posts: 4
Joined: Sun Oct 27, 2024 9:37 am

Re: Problems sending data with AT+CIPSENDL

Postby rajtendulkar » Wed Nov 06, 2024 8:55 am

Looks like the problem is with receiving side of the UART.
I don't receive SEND OK on the UART.

Who is online

Users browsing this forum: No registered users and 15 guests