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

Failed to set resolution #31

Closed
hpsaturn opened this issue Nov 29, 2024 · 2 comments
Closed

Failed to set resolution #31

hpsaturn opened this issue Nov 29, 2024 · 2 comments
Assignees
Labels
Seeed_Arduino_SSCMA Label for Seeed_Arduino_SSCMA UAY Unassigned yet

Comments

@hpsaturn
Copy link

hpsaturn commented Nov 29, 2024

Summary

I have a XIAO S3 and AI vision v2. I can load the AI models and it works and I can view the detections on the SenseCraft IA portal, but when I trying to start the streaming on the webserver index, I have a popup error that show "Failed to set resolution.."

To Reproduce

  1. uploaded the face detections models for AI vision v2
  2. connected it to the XIAO S3 sensor
  3. uploaded the camera web server sketch with WiFi credentials
  4. enter to the local ip
  5. try to start the streaming with any resolution
  6. you can see the error

Console output:

[  7416][V][esp32-hal-uart.c:330] uartBegin(): UART0 baud(921600) Mode(800001c) rxPin(44) txPin(43)
[  7417][V][esp32-hal-uart.c:416] uartBegin(): UART0 not installed. Starting installation
[  7418][V][esp32-hal-uart.c:463] uartBegin(): UART0 initialization done.
[  7419][V][esp32-hal-uart.c:330] uartBegin(): UART0 baud(921600) Mode(800001c) rxPin(-1) txPin(-1)
[  7420][V][esp32-hal-uart.c:343] uartBegin(): UART0 Driver already installed.
[  7420][V][esp32-hal-uart.c:346] uartBegin(): UART0 changing buffer sizes or inverted signal or rxfifo_full_thrhd. IDF driver will be restarted
[  7422][V][esp32-hal-uart.c:463] uartBegin(): UART0 initialization done.
[  8424][I][app_httpd.cpp:948] startCameraServer(): Starting web server on port: '80'
[  8426][I][app_httpd.cpp:965] startCameraServer(): Starting stream server on port: '8080'
Camera Ready! Use 'http://192.168.178.25' to connect
neric.cpp:1040] _ev[ 18][W][d.cpp:860] cd_ha(): Wait client reply slot timeout...
0][W][app_p:860] cd_handlert client reply slot timeout...
24426][W][appd.cpp:8and_handle(): Wai reply slot timeout...

Expected behavior

Camera preview with the detections

Screenshots
screenshot20241129_011431

Desktop info:

  • OS: Debian 11
  • Browser: Firefox
  • Versions:
Platform espressif32 @ 6.9.0 (required: espressif32 @ 6.9.0)
├── framework-arduinoespressif32 @ 3.20017.0 (required: platformio/framework-arduinoespressif32 @ ~3.20017.0)
├── framework-espidf @ 3.50301.0 (required: platformio/framework-espidf @ ~3.50301.0)
├── tool-cmake @ 3.16.4 (required: platformio/tool-cmake @ ~3.16.0)
├── tool-esptoolpy @ 1.40501.0 (required: platformio/tool-esptoolpy @ ~1.40501.0)
├── tool-mkfatfs @ 2.0.1 (required: platformio/tool-mkfatfs @ ~2.0.0)
├── tool-mklittlefs @ 1.203.210628 (required: platformio/tool-mklittlefs @ ~1.203.0)
├── tool-mkspiffs @ 2.230.0 (required: platformio/tool-mkspiffs @ ~2.230.0)
├── tool-ninja @ 1.7.1 (required: platformio/tool-ninja @ ^1.7.0)
├── tool-openocd-esp32 @ 2.1100.20220706 (required: platformio/tool-openocd-esp32 @ ~2.1100.0)
├── toolchain-esp32ulp @ 1.23800.240113 (required: platformio/toolchain-esp32ulp @ ~1.23800.0)
├── toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 (required: espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch5)
├── toolchain-xtensa-esp-elf @ 13.2.0+20240530 (required: platformio/toolchain-xtensa-esp-elf @ 13.2.0+20240530)
└── toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5 (required: espressif/toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5)

Libraries
├── ArduinoEigen @ 0.3.2 (required: hideakitai/ArduinoEigen @ ^0.3.2)
│   └── ArxTypeTraits @ 0.3.1 (required: hideakitai/ArxTypeTraits @ *)
├── ArduinoJson @ 7.2.1 (required: bblanchon/ArduinoJson @ ^7.2.1)
├── ESP32 Wifi CLI @ 0.3.3 (required: hpsaturn/ESP32 Wifi CLI @ ^0.3.3)
│   ├── Commander-API @ 2.1.0+sha.a8815b9 (required: git+https://github.com/hpsaturn/Commander-API.git#strcmp-fix)
│   └── Shellminator @ 1.2.0+sha.fae3be8 (required: git+https://github.com/hpsaturn/Shellminator.git)
├── EasyPreferences @ 0.1.3 (required: hpsaturn/EasyPreferences @ ^0.1.2)
├── EspNowCam @ 0.1.16 (required: hpsaturn/EspNowCam @ ^0.1.12)
│   └── Nanopb @ 0.4.8 (required: nanopb/Nanopb @ 0.4.8)
├── OneButton @ 2.6.1 (required: mathertel/OneButton @ ^2.0.3)
└── Seeed_Arduino_SSCMA @ 1.0.1+sha.7646a55 (required: git+https://github.com/Seeed-Studio/Seeed_Arduino_SSCMA.git)

Additional context

I migrated the sketch to PlatformIO.

@iChizer0
Copy link
Contributor

Thank you for submitting the issue, we just tested the example again and found that due to some API changes, the secondary initialization of the hardware serial and the use of printf will cause some abnormalities, the relevant fixes have been submitted to the latest main branch, you can try to use the latest commit, if the problem still exists, please contact us, thank you.

Changes: #32
Env:
image

@hpsaturn
Copy link
Author

Thanks, yes it resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Seeed_Arduino_SSCMA Label for Seeed_Arduino_SSCMA UAY Unassigned yet
Projects
Status: Done
Development

No branches or pull requests

3 participants