# Amb82 mini Arduino SDK camera detection issue

**URL:** <https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495>\
**Category:** Multimedia\
**Tags:** evb-amb82\
**Created:** [November 7, 2025, 5:25am UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495 "2025-11-07T05:25:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevomechSolutions](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DevomechSolutions](https://forum.amebaiot.com/u/DevomechSolutions)\
**Post date:** [November 7, 2025, 5:25am UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495/1 "2025-11-07T05:25:08Z")

</div>

Can not detect the camera sensor connection/disconnection. (reason: The initialization functions for have no return type for error handling)

---

<div class="post-metadata">

**Author:** ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)\
**Post date:** [November 11, 2025, 9:32am UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495/2 "2025-11-11T09:32:34Z")

</div>

Hi @DevomechSolutions ,

May I know if you want to detect the connection of camera sensor during initialization or during runtime streaming? We do have API to check the camera sensor connection status at the start of video opening. Thanks.

---

<div class="post-metadata">

**Author:** ![DevomechSolutions](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DevomechSolutions](https://forum.amebaiot.com/u/DevomechSolutions)\
**Post date:** [November 11, 2025, 10:06am UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495/3 "2025-11-11T10:06:41Z")

</div>

We want the detection of the camera sensor during initialization.

---

<div class="post-metadata">

**Author:** ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)\
**Post date:** [November 12, 2025, 2:47am UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495/4 "2025-11-12T02:47:34Z")

</div>

Hi @DevomechSolutions ,

Thanks for the clarification. If the camera sensor is not connected properly during initialization, video opening process will be failed and the following error logs will be shown

```auto
[video_pre_init_procedure] START

hal_voe_send2voe too long 37899 cmd 0x00000206 p1 0x00000000 p2 0x00000000

VOE command 0x206 fail ret 0xff

VOE_OPEN_CMD command fail 98400400

hal_video_open fail ret=98400400, group=3

hal_voe_ready 0x0 0x1718 

[VID Err]Please check sensor id first,the id is 1

```

We understand that you need a return value for the video open status, hence, we have created an API in Arduino SDK for video open status check, please apply the following patch to your Arduino SDK package. You can now call Camera.cameraOpenStatus() for the camera sensor connection check, 0: No video opened, 1: Video is opened.

We will update these changes in the upcoming pre-release version.

Please let us know if this fulfill your needs. Thank you.

[arduino\_patch\_video\_status.zip](https://forum.amebaiot.com/uploads/short-url/i9T8G7Ql4ijgcdcPV7hbTdCaLyC.zip) (13.2 KB)

---

<div class="post-metadata">

**Author:** ![DevomechSolutions](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DevomechSolutions](https://forum.amebaiot.com/u/DevomechSolutions)\
**Post date:** [November 12, 2025, 8:33am UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495/5 "2025-11-12T08:33:41Z")

</div>

I have replaced the patch files and encounter errors during build.

I am using arduino sdk 4.0.9  
ArduinoIDE 2.3.6

 ![errors](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/4/410f4baa20e0f4b740fa737cecc8f45efd510c3d.jpeg)

---

<div class="post-metadata">

**Author:** ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)\
**Post date:** [November 12, 2025, 9:11am UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495/6 "2025-11-12T09:11:07Z")

</div>

Hi @DevomechSolutions ,

Would you mind to update your SDK to the latest pre-release version 4.1.0-build20251027 and apply the patch again? This could be due to the version incompatibility.

Thank you.

---

<div class="post-metadata">

**Author:** ![DevomechSolutions](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DevomechSolutions](https://forum.amebaiot.com/u/DevomechSolutions)\
**Post date:** [November 12, 2025, 12:54pm UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495/7 "2025-11-12T12:54:02Z")

</div>

using 4.1.0-build20251027

encountered this error  
c:/users/thinkpad/appdata/local/arduino15/packages/realtek/tools/ameba\_pro2\_toolchain/1.0.1-p1/bin/../lib/gcc/arm-none-eabi/10.3.0/../../../../arm-none-eabi/bin/ld.exe: C:\Users\thinkpad\AppData\Local\arduino\sketches\EF621C024634E69F79547D96C4E44F0D\sketch\camera\_ops.cpp.o: in function `ameba_camera_init()': camera_ops.cpp:(.text._Z17ameba_camera_initv+0x4): undefined reference to `Video::cameraOpenStatus()’  
collect2.exe: error: ld returned 1 exit status

---

<div class="post-metadata">

**Author:** ![DevomechSolutions](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DevomechSolutions](https://forum.amebaiot.com/u/DevomechSolutions)\
**Post date:** [November 12, 2025, 1:53pm UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495/8 "2025-11-12T13:53:15Z")

</div>

It worked! thanks

I first initialized the camera and then used the Camera.cameraOpenStatus() function.

---

<div class="post-metadata">

**Author:** ![DevomechSolutions](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DevomechSolutions](https://forum.amebaiot.com/u/DevomechSolutions)\
**Post date:** [November 12, 2025, 2:29pm UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495/9 "2025-11-12T14:29:27Z")

</div>

Hi **[KevinKL](https://forum.amebaiot.com/u/kevinkl)**.  
Is there a way that we can check the camera connection status before initialization ?

---

<div class="post-metadata">

**Author:** ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)\
**Post date:** [November 13, 2025, 6:24am UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495/10 "2025-11-13T06:24:26Z")

</div>

I will help you to verify and get back to you soon.

Thanks.

---

<div class="post-metadata">

**Author:** ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)\
**Post date:** [November 18, 2025, 3:52am UTC](https://forum.amebaiot.com/t/amb82-mini-arduino-sdk-camera-detection-issue/4495/11 "2025-11-18T03:52:42Z")

</div>

Hi @DevomechSolutions ,

The calling of Camera.channelBegin(CHANNEL) is necessary for sensor detection. Kindly make sure that you have called the API to update the connection status of the camera sensor.

Thank you.
