sinricpro / non-sdk-issues

Report non sdk related issues here (Alexa, Google Home, SmartThings, IFTTT, API)
2 stars 0 forks source link

Camera esp32 AI Thinkers experience. #18

Closed huseman21 closed 3 years ago

huseman21 commented 3 years ago

I thought I would give your camera a try. And this is my experience so far. (on a side note thanks for all this effort, I replaced my home thermostat with your Alexa integration and about a week of extra coding, its been online for about a week and working great, if you want the finished code to add it here for others that are banging there heads off the wall trying to get it to work let me know.

Ok now back to the camera, I'm using the a esp32-cam.

After trying random camera definitions without success, (cam not found during run time errors) I noticed your camera.ino (select_pins.h) file is missing the definition for #define CAMERA_MODEL_AI_THINKER but it is mentioned in the camera.ini code. So I added it to my copy of select_pins.h as shown below as that is the camera definition I am able to use with other projects using the esp32-cam.

elif defined (CAMERA_MODEL_AI_THINKER)

define PWDN_GPIO_NUM 32

define RESET_GPIO_NUM -1

define XCLK_GPIO_NUM 0

define SIOD_GPIO_NUM 26

define SIOC_GPIO_NUM 27

define Y9_GPIO_NUM 35

define Y8_GPIO_NUM 34

define Y7_GPIO_NUM 39

define Y6_GPIO_NUM 36

define Y5_GPIO_NUM 21

define Y4_GPIO_NUM 19

define Y3_GPIO_NUM 18

define Y2_GPIO_NUM 5

define VSYNC_GPIO_NUM 25

define HREF_GPIO_NUM 23

define PCLK_GPIO_NUM 22

Ok after that change the camera is found and the streamer is created as the serial debug shows as seen below.

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (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:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:9720 ho 0 tail 12 room 4 load:0x40080400,len:6352 entry 0x400806b8 psram found . WiFi connected IP address: 192.168.200.12 LinkedListElement (0x3ffe2c74)->(0x3ffe2c74)->(0x3ffe2c74) Creating TSP streamer Created streamer width=1600, height=1200 Connected to SinricPro

Device 60164066b8cb375513da0ee4 turned off (via SinricPro) Device 60164066b8cb375513da0ee4 turned on (via SinricPro)

The camera devices does go online per your web page interface and I can successfully turn it on and off. (On a side note when it first booted Alexa notified me that it found a new camera device but it says its having problems reaching the cam if I ask her to view it. I believe thats normal as I read someplace that you have not finished Alexa camera integration yet.

Anyways when I attempt to view the cam via your android app, the app crashes the second I click on the camera device. I'm using a Samsung galaxy 10 if that matters.

I did try dropping the framesize down to FRAMESIZE_CIF (352 x 288), but still a crash. I did try the app on an older galaxy S6, but still a crash. I tried just making a rtsp connection from my pc (rtsp://192.168.200.12:8554/mjpeg/1), Yeaa it worked fine.

As I was writing this document I decided to try the app on an iphone, and the video worked, yeaaaaaa. video is streaming just fine on phones, it just hates android's. :(

I will look forward to you adding full Alexa support in the future.

Thanks.

aleiei commented 3 years ago

Same problem with HUAWEI P20 and same ESP32 Cam AI Tincker. Only with VLC the rtsp streaming works fine. Follow issue. Alex

kakopappa commented 3 years ago

Thanks guys. Will take a look

On Tue, 2 Feb 2021 at 4:36 PM aleiei notifications@github.com wrote:

Same problem with HUAWEI P20 and same ESP32 Cam AI Tincker. Only with VLC the rtsp streaming works fine. Follow issue. Alex

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sinricpro/esp8266-esp32-sdk/issues/136#issuecomment-771502033, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZS54T55CHQ7MNGPZUTS47BQ3ANCNFSM4W3COYRQ .

AndresBardales commented 3 years ago

Hola amigo @kakopappa , tengo el mismo problema que @huseman21, mi pregunta es: si compro un dispositivo en este caso el de la camara, podría ver el video desde mi dispositivo android? saludos.


Edit (translated to english using an online translator):

Hi friend @kakopappa , I have the same problem as @huseman21, my question is: if I buy a device in this case the one with the camera, I could see the video from my android device? greetings.

sivar2311 commented 3 years ago

It would be very nice of you if you write in English. That way most people will be able to understand your comment.

Thanks for your understanding!

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.