EmixamPP / linux-enable-ir-emitter

Provides support for infrared cameras that are not directly enabled out-of-the box.
MIT License
242 stars 21 forks source link

LAN camera #55

Closed Ri-Bai closed 3 years ago

Ri-Bai commented 3 years ago

I can not find the device under the /dev (base) vci-1@vci1-UNO-3083G-3085G-D64E:/dev$ ls maybe I need installl anther driver? my camera is a infrare camera made by FOTRIC and connect with the computer with the LAN Port. I do the command ifconfig -a`` and find the connected messages as following:

eno1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether c4:00:ad:02:a8:aa  txqueuelen 1000  (Ethernet)
        RX packets 6861  bytes 7929217 (7.9 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3868  bytes 740444 (740.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf7f00000-f7f20000  
EmixamPP commented 3 years ago

Can you provide me de following information :

Ri-Bai commented 3 years ago

Can you provide me de following information :

  • the ouput of lsusb
  • the ouput of v4l2-ctl --list-devices

Thank you for your reply and the information as follow. By the way, My infrare camera connected by LAN1 port rather than a usb port.


(base) vci-1@vci1-UNO-3083G-3085G-D64E:~$ lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 003 Device 002: ID 0e8f:0022 GreenAsia Inc. multimedia keyboard controller
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(base) vci-1@vci1-UNO-3083G-3085G-D64E:~$ v4l2-ctl --list-devices
Failed to open /dev/video0: No such file or directory
(base) vci-1@vci1-UNO-3083G-3085G-D64E:~$ 
EmixamPP commented 3 years ago

By the way, My infrare camera connected by LAN1 port rather than a usb port.

Ho sorry I didn't see that part of the message

Hum I never deal with that kind of camera. Are you sure that you need to use linux-enable-ir-emitter ? A driver is needed under Windows ? Or it's plug and play ? (may be the constructor provide a driver for Linux ?)

The aim of linux-enable-ir-emitter is only to generate a driver for UVC webcam. In other words, it is only for usb cameras using the standard. Sorry !

So I guess that your camera doen't use this Usb Video Class standard.

You want to use this camera in order to use howdy ? Or just to use it on a Linux system ?

Ri-Bai commented 3 years ago

By the way, My infrare camera connected by LAN1 port rather than a usb port.

Ho sorry I didn't see that part of the message

Hum I never deal with that kind of camera. Are you sure that you need to use linux-enable-ir-emitter ? A driver is needed under Windows ? Or it's plug and play ? (may be the constructor provide a driver for Linux ?)

The aim of linux-enable-ir-emitter is only to generate a driver for UVC webcam. In other words, it is only for usb cameras using the standard. Sorry !

So I guess that your camera doen't use this Usb Video Class standard.

You want to use this camera in order to use howdy ? Or just to use it on a Linux system ?

Thank you . maybe I need find another way to drive my camera.the constructor said that they had no driver for the camera in the linux system and so I try my best to solve this problem. And thank you again , I will try it in other ways .

EmixamPP commented 3 years ago

If you want to observe which instruction the driver send to your camera, you can download Wireshark on Windows and sniff the lan.

From this, you will "just" under Linux build a network package with these instructions and each time want to read the camera, sent the packet and listen to the returns that contain the image. (I guess)

So ok it's nice for handmade utilization but there is no support for software. May be can you can simulate a fake usb "/dev/videoX" and redirect the access to your handmade software in order to read the camera. But I know it's tricky and it requiere a lot of time and knowledge to be implemented.

Good luck !