https://toitlang.org/ logo
Problems with seeed esp32-C3
# help
k
I flashed 4 seeed esp32-C3 with identical flash parameters, but only one connects successfully to wifi. 3 devices report
running Jaguar failed due to 'DEADLINE_EXCEEDED'
Did anyone have similar experiences and a solution ?
f
Can you try with a cellphone (as a hotspot) close to the device and see if that changes anything? Basically, ruling out the router and weak signals.
k
The router is ok, there are a lot of IOT-devices working well. And I am only 1 m away. Because I used the same script to flash jaguar on the different devices, I distrust them. My next approach is to check them with different tools (plattform io, ...)
f
Currently I don't see what Toit could do wrong, but if it works with platform.io (or something else), we should figure out what Toit is doing wrong. Thanks for investigating.
k
The same result, 3 of 4 devices cannot be connected to WLan.😢
f
Maybe have a look if Bluetooth works. If not, then it's almost certainly the antenna
k
I changed the antenna already without effect.
f
Could be the connection/trace to the antenna
k
- ✅ COM12: MAC: d4:f9:8d:03:df:cc - ❌ COM16: MAC: d4:f9:8d:05:a3:38 - ❌ COM17: MAC: d4:f9:8d:03:d8:fc - ❌ COM18: MAC: d4:f9:8d:03:da:bc
If the Wifi of ESP32-C3 is not working properly what option exist then to debug with jaguar ?
k
You can connect via a serial link and use Jaguar over that. Would that work for you?
k
In my router the device is visible for some seconds without getting connected. If I scan for it, the device is not found. So how to run or install container an app ?
f
As Kasper wrote: you can use a serial connection to interact with the Jaguar service.
Also, if 'scan' doesn't work, you can set the target device with
jag scan <ip>
. If the device is visible for a short time, then that command should work. However, you should see the successful connection in the logs. (Without that, here is no hope that
jag
can communicate with the device)
k
The device never gets an IP.
f
Since it doesn't work without Toit, there isn't a lot of hope to get it working. You could still use it with Jaguar through the serial connection.
k
How can I install an application / container via serial connection ?
f
It's a flash-option.
I think we have a document explaining how somewhere, but I can't find it right now.
Before going into details: does your esp32-c3 have an uart-usb converter?
if not, then things get more complicated.
same behaviour now detected for ESP32-C3 devices
f
weird. I would still try with a different hotspot (phone). We have had issues with a router that "filled up", and also rejected devices that reconnected too often.
k
ok, could be a reason - will check my fritzbox
that makes sense because previously used devices don't show that error
f
I would just enable the hotspot on your cellular phone. -> completely different router.
k
😵 😵‍💫 🥴
👍
Thank you - that was it
I need an extra router for iot
f
Nice.