正在上传图片(0/1)

M300 OSDK无法获取摄像头数据

 0
手机看帖 3 2356
USB连接和串口连接应该没有问题,航点任务可以执行
有ACM0设备

nvidia@tegra-ubuntu:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 033: ID 2ca3:001f
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


nvidia@tegra-ubuntu:~$ ls -l /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Sep 22 14:19 /dev/ttyACM0


下面是命令行的报错,提示初始化USB通道错误,
请问这个是什么问题呢?有没有可能是USB线不行?

nvidia@tegra-ubuntu:~/Downloads/Onboard-SDK-master/build/bin$ ./djiosdk-liveview-sample
Read App ID
User Configuration read successfully.

[3027457.872]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 1ZNDH3L0010450
[3027457.872]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.4.8.56
[3027457.872]STATUS/1 @ functionalSetUp, L279: Shake hand with drone successfully by getting drone version.
[3027457.873]STATUS/1 @ legacyX5SEnableTask, L56: Legacy X5S Enable task created.
[3027458.873]STATUS/1 @ sendHeartbeatToFCTask, L1576: OSDK send heart beat to fc task created.
[3027459.074]STATUS/1 @ FileMgrImpl, L253: register download file callback handler successfully.
[3027459.076]STATUS/1 @ RegisterOSDInfoCallback, L471: register result of geting FC ground station status pushing : 1

[3027459.076]STATUS/1 @ Firewall, L46: Firewall is initializing ...
[3027459.097]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 1ZNDH3L0010450
[3027459.097]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.4.8.56
[3027459.115]ERRORLOG/1 @ AdvancedSensing, L108: Failed to initialize USB Bulk Linker channel for liveview!
[3027459.115]ERRORLOG/1 @ AdvancedSensing, L115: Failed to create task for liveview!
[3027459.116]ERRORLOG/1 @ AdvancedSensing, L123: Failed to initialize USB Bulk Linker channel for perception!
[3027459.116]ERRORLOG/1 @ AdvancedSensing, L130: Failed to create task for advanced sensing!
[3027459.116]STATUS/1 @ AdvancedSensing, L135: Advanced Sensing init for the M300 drone
[3027459.116]STATUS/1 @ LiveViewImpl, L89: Finding if liveview stream is available now.
[3027459.917]STATUS/1 @ init, L254: Start advanced sensing initalization
[3027459.917]STATUS/1 @ activate, L1309: osdk policy file updating(1) ......
[3027460.919]STATUS/1 @ activate, L1317: osdk policy file updating(2) ......
[3027460.925]STATUS/1 @ RequestUploadPolicyFileHandle, L146: request upload policy file type:0
[3027460.925]STATUS/1 @ RequestUploadPolicyFileHandle, L163: Upload policy file info md5 checksum and version
[3027460.927]STATUS/1 @ RequestUploadPolicyFileHandle, L146: request upload policy file type:1
[3027460.927]STATUS/1 @ RequestUploadPolicyFileHandle, L183: request upload policy file data: 0 0 200
[3027460.929]STATUS/1 @ RequestUploadPolicyFileHandle, L146: request upload policy file type:1
[3027460.930]STATUS/1 @ RequestUploadPolicyFileHandle, L183: request upload policy file data: 1 200 169
[3027460.933]STATUS/1 @ RequestUploadPolicyFileHandle, L146: request upload policy file type:2
[3027460.933]STATUS/1 @ RequestUploadPolicyFileHandle, L211: request upload policy file success
[3027461.919]STATUS/1 @ activate, L1329: version 0x3040838

[3027461.931]STATUS/1 @ activate, L1367: Activation successful


| Available commands:                                            |
| [a] Start getting FPV H264 stream sample                       |
|  Start getting main camera H264 stream sample               |
| [c] Start getting vice camera H264 stream sample               |
| [d] Start getting top camera H264 stream sample                |
b
[3027468.760]STATUS/1 @ getCameraList, L199: register result of geting camera pushing : 1

[3027468.769]STATUS/1 @ getCameraList, L218: Request start pushing camera info ack = 0

[3027469.790]STATUS/1 @ getCameraList, L235: Request end pushing camera info ack = 0

[3027469.790]STATUS/1 @ getCameraList, L236: mounted    cam0:1 cam2:0 cam3:0
[3027469.790]STATUS/1 @ getCameraList, L237: type       cam0:42 cam2:0 cam3:0
[3027469.790]STATUS/1 @ startH264Stream, L457: camera[0] is mounted

subsrcibe data success!
[3027469.796]STATUS/1 @ main, L135: Wait 10 second to record stream
unsubsrcibe data success!

| Available commands:                                            |
| [a] Start getting FPV H264 stream sample                       |
|  Start getting main camera H264 stream sample               |
| [c] Start getting vice camera H264 stream sample               |
| [d] Start getting top camera H264 stream sample                |
评论
上传
你需要登录之后才能回帖    登录 | 注册
楼主   2020-9-22 3#

libusb驱动是直接通过apt安装的libusb-1.0-0-dev  
Cmake可以自己动找到驱动
懒猫吃鱼  DJI FPV认证用户 2020-9-22 4#
Embedded_Blake9-22 15:04
libusb驱动是直接通过apt安装的libusb-1.0-0-dev  
Cmake可以自己动找到驱动[图片]
你这个日志看起来程序都跑完了,执行目录下有生成H264文件吗?
你有多高   2021-12-27 5#
您好,请问问题解决了吗?遇到了同样的问题
取消 点赞 评论
分享至:
回复:
上传
取消 评论
快速回复 返回顶部 返回列表