Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AT+HTTPCPOST after data transmission does not give SEND OK/ SEND FAIL #846

Open
3 tasks done
Daphne-HU opened this issue Jun 7, 2024 · 1 comment
Open
3 tasks done
Labels
Status: Awaiting Response awaiting a response from the author

Comments

@Daphne-HU
Copy link

Answers checklist

  • I have read the documentation ESP-AT Programming Guide and the issue is not addressed there.
  • I have used the latest released firmware or have updated my ESP-AT branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

AT+GMR

AT+GMR
AT version:3.3.0.0-dev(4c67f78 - ESP32 - Nov 28 2023 08:50:25)
SDK version:v5.0.4-dirty
compile time(d150e446):Apr 12 2024 08:20:42
Bin version:v3.2.0.0(WROOM-32)

OK

ESP-AT Firmware Source

latest release with Ethernet module on

Hardware Information

ESP32 WROOM 32E

Power Supply used

USB

What is the expected behavior?

AT+HTTPCPOST="",13,1,"Content-Type: application/json"

OK

+HTTPCPOST:117,
+HTTPCPOST:512,
+HTTPCPOST:512,
etc..
+HTTPCPOST:512,
SEND FAIL of SEND OK

What is the actual behavior?

After i send a AT+HTTPCPOST i get OK. but when follow up with the data the response i get
is the code of the error page but no SEND OK or SEND FAIL to indicate the transmission.
It's true that I get an error page, the place I sent it to had an issue but I would still expect a SEND FAIL

Probability of recurrence

in the case i describe, always

AT+SYSRAM?

AT+SYSRAM?
+SYSRAM:151152,144220
OK

Steps to reproduce

  1. connect ethernet
  2. Preset the URL
  3. Preset header with a key
  4. Send: AT+HTTPCPOST="",13,1,"Content-Type: application/json"
  5. Receive: OK
  6. Send the json data
  7. Receive: +HTTPCPOST:512,
  8. Did not receive SEND FAIL

AT command port output

AT+HTTPCPOST="",13,1,"Content-Type: application/json"

OK

>+HTTPCPOST:117,<data>
+HTTPCPOST:512,<data>
+HTTPCPOST:512,<data>
etc..
+HTTPCPOST:512,<data>
ready

AT log port output

rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6984
load:0x40078000,len:16080
load:0x40080400,len:3652
entry 0x40080620
I (27) boot: ESP-IDF v5.0.4-dirty 2nd stage bootloader
I (28) boot: compile time 08:20:43
W (28) boot: Unicore bootloader
I (31) boot: chip revision: v3.0
I (35) boot.esp32: SPI Speed      : 40MHz
I (39) boot.esp32: SPI Mode       : DIO
I (44) boot.esp32: SPI Flash Size : 16MB
I (48) boot: Enabling RNG early entropy source...
I (54) boot: Partition Table:
I (57) boot: ## Label            Usage          Type ST Offset   Length
I (65) boot:  0 phy_init         RF data          01 01 0000f000 00001000
I (72) boot:  1 otadata          OTA data         01 00 00010000 00002000
I (80) boot:  2 nvs              WiFi data        01 02 00012000 0000e000
I (87) boot:  3 at_customize     unknown          40 00 00020000 000e0000
I (94) boot:  4 ota_0            OTA app          00 10 00100000 00300000
I (102) boot:  5 ota_1            OTA app          00 11 00400000 00300000
I (110) boot: End of partition table
I (114) esp_image: segment 0: paddr=00100020 vaddr=3f400020 size=2ff10h (196368) map
I (193) esp_image: segment 1: paddr=0012ff38 vaddr=3ff80063 size=00008h (     8) load
I (194) esp_image: segment 2: paddr=0012ff48 vaddr=3ffbdb60 size=000d0h (   208) load
I (199) esp_image: segment 3: paddr=00130020 vaddr=400d0020 size=10ada4h (1093028) map
I (602) esp_image: segment 4: paddr=0023adcc vaddr=3ffbdc30 size=05104h ( 20740) load
I (611) esp_image: segment 5: paddr=0023fed8 vaddr=40080000 size=1ec58h (126040) load
I (663) esp_image: segment 6: paddr=0025eb38 vaddr=400c0000 size=00064h (   100) load
I (679) boot: Loaded app from partition at offset 0x100000
I (679) boot: Disabling RNG early entropy source...
no external 32k oscillator, disable it now.

E (963) NVS: INIT PARTITION IN MFG_NVS
at param mode: 1

E (1060) UART_TASK: Mode: 1
E (1064) uart: Installing driver for port 1
AT cmd port:uart1 tx:17 rx:16 cts:-1 rts:-1 baudrate:115200

module_name: WROOM-32

max tx power=78, ret=0

E (1072) NVS: Setting GPIO 5 to low
v3.2.0.0

Recv 126 bytes

Recv 35 bytes

Recv 13 bytes

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x2 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_FEO_V2))
waiting for download
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6984
load:0x40078000,len:16080
load:0x40080400,len:3652
entry 0x40080620
I (28) boot: ESP-IDF v5.0.4-dirty 2nd stage bootloader
I (28) boot: compile time 08:20:43
W (28) boot: Unicore bootloader
I (31) boot: chip revision: v3.0
I (35) boot.esp32: SPI Speed      : 40MHz
I (39) boot.esp32: SPI Mode       : DIO
I (44) boot.esp32: SPI Flash Size : 16MB
I (48) boot: Enabling RNG early entropy source...
I (54) boot: Partition Table:
I (57) boot: ## Label            Usage          Type ST Offset   Length
I (65) boot:  0 phy_init         RF data          01 01 0000f000 00001000
I (72) boot:  1 otadata          OTA data         01 00 00010000 00002000
I (80) boot:  2 nvs              WiFi data        01 02 00012000 0000e000
I (87) boot:  3 at_customize     unknown          40 00 00020000 000e0000
I (94) boot:  4 ota_0            OTA app          00 10 00100000 00300000
I (102) boot:  5 ota_1            OTA app          00 11 00400000 00300000
I (110) boot: End of partition table
I (114) esp_image: segment 0: paddr=00100020 vaddr=3f400020 size=2ff10h (196368) map
I (193) esp_image: segment 1: paddr=0012ff38 vaddr=3ff80063 size=00008h (     8) load
I (194) esp_image: segment 2: paddr=0012ff48 vaddr=3ffbdb60 size=000d0h (   208) load
I (199) esp_image: segment 3: paddr=00130020 vaddr=400d0020 size=10ada4h (1093028) map
I (602) esp_image: segment 4: paddr=0023adcc vaddr=3ffbdc30 size=05104h ( 20740) load
I (611) esp_image: segment 5: paddr=0023fed8 vaddr=40080000 size=1ec58h (126040) load
I (663) esp_image: segment 6: paddr=0025eb38 vaddr=400c0000 size=00064h (   100) load
I (679) boot: Loaded app from partition at offset 0x100000
I (679) boot: Disabling RNG early entropy source...
no external 32k oscillator, disable it now.

E (963) NVS: INIT PARTITION IN MFG_NVS
at param mode: 1

E (1059) UART_TASK: Mode: 1
E (1063) uart: Installing driver for port 1
AT cmd port:uart1 tx:17 rx:16 cts:-1 rts:-1 baudrate:115200

module_name: WROOM-32

max tx power=78, ret=0

E (1071) NVS: Setting GPIO 5 to low
v3.2.0.0

Recv 126 bytes

Recv 35 bytes

More Information.

No response

@ustccw
Copy link
Collaborator

ustccw commented Jun 28, 2024

@Daphne-HU Hi, could you please use latest master branch and enable more logs to see what happened:

  • 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.

@ustccw ustccw added the Status: Awaiting Response awaiting a response from the author label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting Response awaiting a response from the author
Projects
None yet
Development

No branches or pull requests

2 participants