Closed marcoavaccaro closed 4 years ago
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.
I am seeing the exact same thing with my setup when connecting to AWS using a modem (in my case) and not an Ethernet board.
I can connect to AWS just fine over WiFi but as soon as I try with a modem I get the same error you're seeing @marcoavaccaro.
Has anyone else come across this issue when trying to connect to AWS on another connection other than WiFi? Thank you so much in advance!
assertion "Invalid mbox" failed: file "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/tcpip.c", line 267, function: tcpip_callback_with_block
abort() was called at PC 0x4012c027 on core 1
Backtrace: 0x4008cca8:0x3ffb1bb0 0x4008ced9:0x3ffb1bd0 0x4012c027:0x3ffb1bf0 0x40140042:0x3ffb1c20 0x4013fed9:0x3ffb1c40 0x4013f6b9:0x3ffb1c80 0x400fc399:0x3ffb1cd0 0x400d9f39:0x3ffb1d20 0x400d9254:0x3ffb1e70 0x400d8fdc:0x3ffb1eb0 0x400d2e24:0x3ffb1f50 0x400d7bbf:0x3ffb1f80 0x400e11dd:0x3ffb1fb0 0x400893bd:0x3ffb1fd0
Hello @marcoavaccaro , did you find a solution on how to connect ESP32 to AWS using Ethernet?
Thanks, Simone
Also facing the same problem with DOIT DEV KIT V1
I got the same problem on TTGO T1, upon successful establishing GPRS connection and mapping on DDNS, unable to run AsyncWebServer on 80 port. The WiFi is not initialized and do not required in given project
Hello guys, I had the same problem with ESP32 and a GPRS connection over Sim868. The way I made it work and my understanding of the situation is as follows:
Although you might not want to use Wifi in your project for the time being you might want to initiate it with WiFi.begin(); because Esp32's internal clock, TCP, other components, and features are only initiated when wifi is initiated.
Even more so, because you are not connecting to a Wifi network that would have given you the current time you have to manually set this internal time, for this, I have used https://github.com/fbiego/ESP32Time and I have used the time provided by the GPRS module upon boot.
My use case involved accessing an HTTPS link with a firmware file to download and install remotely via GPRS with a provided certificate. So without the internal components started and the current time correct the request will surely fail.
So as a quick summary of the fix:
ESP32Time rtc(3600); // offset in seconds GMT+1
and in setup before doing anything else:
WiFi.begin(); rtc.setTime(30, 58, 15, 13, 7, 2022); // you either set time manually or take it from your Ethernet / GPRS module
And this was the only way to make it work and not get the error. Hope it helps!
This saved my day, thank you @madaerodog!
I only have added the WiFi.begin() without the setTime and now the aws iot sdk works like a charm.
My hardware is a LilyGo T-SIM7080G-S3 ESP32-S3 (TINY_GSM_MODEM_SIM7080), and the exact error I got when calling hornbill.connect was:
assert failed: tcpip_send_msg_wait_sem IDF/components/lwip/lwip/src/api/tcpip.c:455 (Invalid mbox)
Hello guys,
I'm using an esp32 dev board and an enc28j60 module to send messages to aws iot plataform using mqtt. I already done that using wifi but now i'm trying use ethernet.
I also already could post a tweet using this ethernet module with the lib Ethercard.h. So i can connect to internet via ethernet and can connect to aws mqtt using wifi. Now the problem is to do them both.
I could upload the new code to the esp but it crashes entering the function hornbill.connect() just after printing "test"
The log shows until the reboot is:
So i guess it connect to the internet but some error is happening and i don't know why. The backtrace translaction is: https://i.imgur.com/5BOvjsr.png
Hardware:
Board: ESP32 Dev Module IDE name: Arduino IDE 1.8.12 Flash Frequency: 80Mhz Computer OS: Windows 10
Sketch: