OpenHarmony开发者论坛
标题:
OpenHarmony版本支持USB接口摄像头吗?
[打印本页]
作者:
lvlovelive
时间:
2023-12-2 10:46
标题:
OpenHarmony版本支持USB接口摄像头吗?
[md]我想使用 RK3568 平台,测试USB接口摄像头,用OpenHarmony版本自带的相机APP使用USB接口摄像头拍照。
请问下,OpenHarmory版本是否支持USB接口摄像头?如果支持的话,从哪个版本开始支持的?需要如何配置USB接口摄像头?相机APP能否直接调用USB接口摄像头?
[/md]
作者:
lvlovelive
时间:
2023-12-2 11:30
[md]在OpenHarmony 4.0 Release版本上测试,接入USB摄像头,串口打印如下日志:
[ 1975.251241] usb 1-1: new high-speed USB device number 5 using ehci-platform
[ 1975.400438] usb 1-1: New USB device found, idVendor=2bdf, idProduct=0281, bcdDevice=30.00
[ 1975.400542] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1975.400583] usb 1-1: Product: 2K USB Camera
[ 1975.400618] usb 1-1: Manufacturer: 04014008_P040300_SN0002
[ 1975.400650] usb 1-1: SerialNumber: 04014008_P040300_SN0002
[ 1975.407091] uvcvideo: Found UVC 1.00 device 2K USB Camera (2bdf:0281)
[ 1975.418923] rockchip-cpuinfo cpuinfo: failed to get id cell: -517
[ 1975.424356] [I/HDF_AUDIO_USB] [LinuxAudioUsbProbe][line:159]: entry
[ 1975.424520] [E/HDF_AUDIO_USB] [AudioUsbDriverInit][line:139]: **usb device is not support**
[ 1975.424560] [E/HDF_AUDIO_USB] [LinuxAudioUsbProbe][line:164]: AudioUsbDriverInit is failed
[ 1975.424910] hdf-audio-usb: probe of 1-1:1.2 failed with error -1
[ 1975.426312] [I/USB_PNP_NOTIFY] UsbPnpNotifyCallback: action=0x1
[ 1975.426369] [I/USB_PNP_NOTIFY] UsbPnpNotifyAddInitInfo:209 i=0, interfaceInfo=0xe-0x1-0x0-0x0
[ 1975.426397] [I/USB_PNP_NOTIFY] UsbPnpNotifyAddInitInfo:209 i=1, interfaceInfo=0xe-0x2-0x0-0x1
[ 1975.426422] [I/USB_PNP_NOTIFY] UsbPnpNotifyAddInitInfo:209 i=2, interfaceInfo=0x1-0x1-0x0-0x2
[ 1975.426444] [I/USB_PNP_NOTIFY] UsbPnpNotifyAddInitInfo:209 i=3, interfaceInfo=0x1-0x2-0x0-0x3
[ 1975.426527] [I/USB_PNP_NOTIFY] UsbPnpNotifyReportThread: UsbPnpNotifyReportThread start!
[ 1975.426598] [I/USB_PNP_NOTIFY] UsbPnpNotifyHdfSendEvent:375 device information, 3 usbDevAddr=18446743524918679552, devNum=5, busNum=1, infoTable=4-0x2bdf-0x281!
日志提示usb device is not support,跟踪代码发现,USB只支持UAC(USB Audio Class),不支持UVC(USB Video Class),USB摄像头需要支持UVC,看来目前最新的OpenHarmony 4.0 Release版本不支持USB接口摄像头。
不知道Release版本什么时候可以支持USB摄像头?
[/md]
作者:
论坛小助手
时间:
2023-12-12 14:47
可以直接调用,插入就可以。默认的系统相机app没有选择摄像头的功能。底层驱动和框架都是支持的
作者:
xq_qyh
时间:
2024-2-28 09:10
你好我也遇到了这个问题请问你解决了吗
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5