# Getting video streams from USB camera connected to Microhard Add-on module

Source: https://forum.modalai.com/topic/278/getting-video-streams-from-usb-camera-connected-to-microhard-add-on-module
Category: Flight Core and Legacy VOXL (https://forum.modalai.com/category/9/flight-core-and-legacy-voxl)
Tags: voxl-cam
Posted: 2021-06-14 09:13:24 UTC by Gaurav Borade
Replies: 7 · Views: 1768

## Gaurav Borade · 2021-06-14 09:13:24 UTC

I am trying to get the video streams from a USB camera which is connected to the J4 connector  on the Microhard Add-on module (https://docs.modalai.com/microhard-add-on-datasheet/) 

As this camera is connected to an add-on modem, how to configure it & get video streams from it?

I am able to get the streams from internal cameras (RTSP video using MIPI cameras https://docs.modalai.com/voxl-rtsp/) but struggling to get the streams from the USB camera.

![setup.jpg](https://forum.modalai.com/assets/uploads/files/1623661918569-setup.jpg) 

![module.jpeg](https://forum.modalai.com/assets/uploads/files/1623661928067-module.jpeg) ![camera.JPEG](https://forum.modalai.com/assets/uploads/files/1623661935229-camera.jpeg)

## Reply by Eric Katzfey (ModalAI staff) · 2021-06-14 14:25:41 UTC

There are a few steps you can take to bring up a new USB camera. First of all, the camera must be UVC compliant. The best thing to do is to test it out on a Linux PC first and verify that it works there. Some tips: 1. Use the 'lsusb' command before and after you plug the camera in to see if it is showing up. 2. If you see the device with 'lsusb', look in /dev to see if it shows up as a /dev/videox device. So, do 'ls /dev/video*' before plugging in the camera and after plugging in the camera to see if it appears. 3. If everything looks good you should be able to stream from it using voxl-streamer.

## Reply by Gaurav Borade · 2021-06-15 07:51:30 UTC

Hi Eric,
Thank you for the help.

I confirmed that the camera is UVC compliant. 
![c6bb9d19-de40-432d-9850-5aa2986550dd-image.png](https://forum.modalai.com/assets/uploads/files/1623743427026-c6bb9d19-de40-432d-9850-5aa2986550dd-image.png) 
Also, the camera is detected on my personal laptop.

But unfortunately can not see it in VOXL the list (lsusb) not showing the camera.
>before
![3b0ce97e-b529-4bd3-9cd0-3906231bfb8c-image.png](https://forum.modalai.com/assets/uploads/files/1623743295303-3b0ce97e-b529-4bd3-9cd0-3906231bfb8c-image.png) 

>after
![85b445e0-7c75-4bb3-ae2c-9e11d154a2ff-image.png](https://forum.modalai.com/assets/uploads/files/1623743355685-85b445e0-7c75-4bb3-ae2c-9e11d154a2ff-image.png) 

Do I need to install any specific drivers for it?

## Reply by Eric Katzfey (ModalAI staff) · 2021-06-15 15:42:16 UTC

No, you shouldn't need anything special to see it with 'lsusb'. If you run 'dmesg -wH' and then plug in the camera do you see any messages printed? Another thing you can try is to free up the adb port by using ssh over wifi instead of adb. Then plug the camera into the adb port and see if you see it with 'lsusb'. It's possible you are seeing a power issue and the adb USB port can deal with more power.

## Reply by Gaurav Borade · 2021-06-16 17:23:34 UTC

Hi Eric,

lsusb not working.

I have tried with the dmesg -wH & got the following message printed

![usb detection.JPG](https://forum.modalai.com/assets/uploads/files/1623862867615-usb-detection.jpg) 

Let me know any suggestions and how to proceed  & thank you for helping..! :-)

(Also, I am trying with ADB port (Need to find a connector to connect the camera with it))

## Reply by Eric Katzfey (ModalAI staff) · 2021-06-17 16:56:29 UTC

What cable / connector were you using to connect to your laptop? What does your laptop show for lsusb for the device? On your laptop, please use ```
lsusb -v -d <vendor:product>
``` and share what it outputs.

## Reply by Caleb Rievley · 2022-07-01 00:04:41 UTC

I am having a similar problem but I was able to confirm that the camera was being seen by the voxl it was under /dev/video2. 

However, it then said that /dev/video2 was not found when running when initiating ffmpeg.

## Reply by Eric Katzfey (ModalAI staff) · 2022-07-01 20:37:01 UTC (in reply to Caleb Rievley)

@Caleb-Rievley Our recommendation is to use voxl-uvc-server and voxl-streamer for UVC cameras. Documentation is at: https://docs.modalai.com/voxl-streamer/#streaming-uvc-cameras-from-voxl-uvc-server, https://docs.modalai.com/voxl-streamer, and https://docs.modalai.com/voxl-uvc-server
