Grove Vision V2 and XIAO ESPC3 no wifi connection

Hello,
I followed the tutorial to connect my Grove Vision V2 and a XIAO ESPC3 to Home Assistant.
I flashed the XIAO like described, I got the Grove Vision running and detecting things but when I entered my wifi credentials, nothing happens.
I use a 2.4ghz network with a wep2 & 3 and have a lot of other ESPs running in it just fine.
What’s the best way to debug my problem? The log isn’t showing anything that’s related to wifi.

Hi there,
And Welcome Here…
So most obvious is Antenna, be sure it’s connected properly , those c3’s can be tricky.
The only other suggestion would try the “WPS demo” code on it ,if your Router/AP supports it.
Eliminates the Creds part of the connection.
It’s on here with the code , download that and drop it on the c3 if it works , then that eliminates any hardware issue’s and puts you on too the HA side of stuff.
HTH
GL :slight_smile: PJ

curious to know , was this c3 ever connected to a wifi b4? :v:

Some routers have security settings or MAC address filtering that could prevent new devices from joining the network.

It’s more than likely it’s NOT the router or AP MAC filtering, if so the others would have required edit of the rules, etc. shot in the dark though to check, can’t hurt…LOL
Try the WPS demo code does it connect or no?
HTH
GL :slight_smile: PJ :v:

XIAO connects just fine via WSP to Wifi. When I try it in combination with the grove vision and the firmware provided in the tutorial, there isn’t even a request to the router.

Hi there,
Ok, Good The WPS connects fine.
Is the USB -C connection connected?
can you enable some debugging in the IDE tools for the ESP boot? see what it reports.
I got one from the LiveStream give away, haven’t set it up yet , so You are way ahead of me… :smile: I’ll look over the wiki and guide, What camera do you have? any good? THNX :v:
HTH
GL :slight_smile: PJ

Plugging in the ESP, Arduino IDE shows me this:

e[0;32mI (361) esp_image: segment 4: paddr=00162e00 vaddr=40382ae[0;32mI (537) spi_flash: detected chip: generice[0m
e[0;32mI (538) spi_flash: flash io: dioe[0m
e[0;32mI (538) sleep: Configure to isolate all GPIO pins in sleep statee[0m
e[0;32mI (543) sleep: Enable automatic switching of GPIO sleep configuratione[0m
e[0;32mI (550) app_start: Starting scheduler on CPU0e[0m
e[0;32mI (555) main_task: Started on CPU0e[0m
e[0;32mI (555) main_task: Calling app_main()e[0m
external 32k oscillator already started.

at param mode: 1

e[0;32mI (581) pp: pp rom version: 9387209e[0m
e[0;32mI (582) net80211: net80211 rom version: 9387209e[0m
I (584) wifi:wifi driver task: 3fca5f3c, prio:23, stack:6144, core=0
e[0;32mI (584) system_api: Base MAC address is not sete[0m
e[0;32mI (585) system_api: read default base MAC address from EFUSEe[0m
I (587) wifi:wifi firmware version: e2d0ad8
I (588) wifi:wifi certification version: v7.0
I (588) wifi:config NVS flash: enabled
I (588) wifi:config nano formating: enabled
I (588) wifi:Init data frame dynamic rx buffer num: 32
I (588) wifi:Init management frame dynamic rx buffer num: 32
I (589) wifi:Init management short buffer num: 32
I (589) wifi:Init dynamic tx buffer num: 32
I (589) wifi:Init static tx FG buffer num: 2
I (589) wifi:Init static rx buffer size: 1600
I (589) wifi:Init static rx buffer num: 10
I (590) wifi:Init dynamic rx buffer num: 32
e[0;32mI (591) wifi_init: rx ba win: 6e[0m
e[0;32mI (591) wifi_init: tcpip mbox: 32e[0m
e[0;32mI (591) wifi_init: udp mbox: 6e[0m
e[0;32mI (591) wifi_init: tcp mbox: 6e[0m
e[0;32mI (592) wifi_init: tcp tx win: 5760e[0m
e[0;32mI (592) wifi_init: tcp rx win: 5760e[0m
e[0;32mI (592) wifi_init: tcp mss: 1440e[0m
e[0;32mI (592) wifi_init: WiFi IRAM OP enablede[0m
e[0;32mI (592) wifi_init: WiFi RX IRAM OP enablede[0m
e[0;32mI (592) wifi_init: WiFi SLP IRAM OP enablede[0m
e[0;32mI (593) phy_init: phy_version 1110,9c20f0a,Jul 27 2023,10:42:54e[0m
e[0;32mI (593) phy_init: Support multiple PHY init data binse[0m
I (629) wifi:mode : softAP (54:32:04:89:58:15)
I (630) wifi:Total power save buffer number: 16
I (631) wifi:Init max length of beacon: 752/752
I (631) wifi:Init max length of beacon: 752/752
e[0;32mI (636) uart: ESP_INTR_FLAG_IRAM flag not set while CONFIG_UART_ISR_IN_IRAM is enabled, flag updatede[0m
e[0;32mI (638) uart: queue free spaces: 30e[0m
AT cmd port:uart0 tx:21 rx:20 cts:5 rts:4 baudrate:921600

module_name: XIAO

max tx power=78, ret=0

I (641) wifi:set country: cc=CN schan=1 nchan=13 policy=1

e[0;32mI (642) phy_init: PHY init data type updated from DEFAULT to SRRCe[0m
v3.2.0.0

I (644) wifi:mode : sta (54:32:04:89:58:14) + softAP (54:32:04:89:58:15)
I (645) wifi:enable tsf
I (649) wifi:mode : softAP (54:32:04:89:58:15)
e[0;32mI (654) main_task: Returned from app_main()e[0m

I can connect to the AP via Smartphone.
I dont know how to debug while the ESP is connected to the Grove Vision, i get no Logs at all.
SenseCraft shows no usable Log and the Arduino IDE is empty too when connected to the ESP.

Hi there,
So I just opened the one I have up, Connected it to the IDE with nothing mounted (Xiao) wise, No camera, The port is Connected at 921600 baud, I get a Log output that’s this?

1st BL Modem Build DATE=Nov 30 2023, 0x0002000b
Please input any key to enter X-Modem mode in 100 ms 
waiting input key...
slot flash_offset 0x00100000
New MemDesp himax_sec_SB_image_process PASS
set_memory_s_ns
bl_status = 0x800000, HX_DSP_FLAG 1
bl_status = 0x800000
jump_addr=0x10000000
Compiler Version: ARM GNU, 13.2.1 20231009


{"type": 1, "name": "INIT@MODEL", "code": 0, "data": {"model": {"id": 1, "type": 0, "address": 4194304, "size": 0}}}
dw_iic_write err_state:2 
dw_iic_write err_code:-60 
[hx_drv_i2cm_write_data]-L:654, Fail:-60 
    retry=0, (regAddr=0x4800, val=0x01) Fail (-60)

dw_iic_write err_state:2 
dw_iic_write err_code:-60 
[hx_drv_i2cm_write_data]-L:654, Fail:-60 
    retry=1, (regAddr=0x4800, val=0x01) Fail (-60)

dw_iic_write err_state:2 
dw_iic_write err_code:-60 
[hx_drv_i2cm_write_data]-L:654, Fail:-60 
    retry=2, (regAddr=0x4800, val=0x01) Fail (-60)


{"type": 1, "name": "INIT@SENSOR", "code": 4, "data": {"sensor": {"id": 1, "type": 1, "state": 0}}}

But it does work and output something, check that with yours.
I’m plugged into the VisionAI board , no Xiao, No camera.
Black button is reset.
HTH
GL :slight_smile: PJ :v:

Thats the log of the raw Grove Vision ai v2:

1st BL Modem Build DATE=Nov 30 2023, 0x0002000b
Please input any key to enter X-Modem mode in 100 ms 
waiting input key...
slot flash_offset 0x00100000
New MemDesp himax_sec_SB_image_process PASS
set_memory_s_ns
bl_status = 0x800000, HX_DSP_FLAG 1
bl_status = 0x800000
jump_addr=0x10000000
Compiler Version: ARM GNU, 13.2.1 20231009

Build date: Mar 18 2024 04:19:46
dw_iic_write err_state:2 
dw_iic_write err_code:-60 
[hx_drv_i2cm_write_data]-L:701, Fail:-60 
    retry=0, (regAddr=0x4800, val=0x01) Fail (-60)

dw_iic_write err_state:2 
dw_iic_write err_code:-60 
[hx_drv_i2cm_write_data]-L:701, Fail:-60 
    retry=1, (regAddr=0x4800, val=0x01) Fail (-60)

dw_iic_write err_state:2 
dw_iic_write err_code:-60 
[hx_drv_i2cm_write_data]-L:701, Fail:-60 
    retry=2, (regAddr=0x4800, val=0x01) Fail (-60)

dw_iic_write err_state:2 
dw_iic_write err_code:-60 
[hx_drv_i2cm_write_data]-L:701, Fail:-60 
    retry=0, (regAddr=0x4800, val=0x01) Fail (-60)

dw_iic_write err_state:2 
dw_iic_write err_code:-60 
[hx_drv_i2cm_write_data]-L:701, Fail:-60 
    retry=1, (regAddr=0x4800, val=0x01) Fail (-60)

dw_iic_write err_state:2 
dw_iic_write err_code:-60 
[hx_drv_i2cm_write_data]-L:701, Fail:-60 
    retry=2, (regAddr=0x4800, val=0x01) Fail (-60)