• Lv0
    粉丝0

积分4 / 贡献0

提问2答案被采纳0文章0

作者动态

OpenHarmony4.0 USB通信bulkTransfer报错-3

xylitol2010 显示全部楼层 发表于 2024-3-7 18:19:47

执行usbManager.bulkTransfer(this.devicePipe, this.usbOutPoint, new Uint8Array(128)),返回-3,是什么原因?

日志如下:

03-07 17:51:43.866 3105 3105 I A03d00/JSAPP: UsbUtils_tagg initUsbDevice claimRet force[true] = 0} 03-07 17:51:43.866 3105 3105 I A03d00/JSAPP: tagg in direction=128 out direction=0 03-07 17:51:43.866 3105 3105 I A03d00/JSAPP: tagg before usb output >>> 03-07 17:51:43.867 3105 3105 E C01719/ffrt: 5:TrivalOpenQosCtrlNode:62 task 3105 belong to user 20010039 open qos node failed 03-07 17:51:43.867 3105 3171 I C02905/Usbd: [usb_srv_proxy.cpp] SetBufferMessage# success length:7 03-07 17:51:43.867 3105 3105 I C02c02/PARAM: [param_request.c:179]SystemSetParameter name ffrt.interval.limit msgid:9 03-07 17:51:43.867 579 768 E C02500/Usbd: BulkTransferWrite:invalid param 03-07 17:51:43.867 579 768 E C02500/usb_interfacestub: UsbInterfaceStubBulkTransferWrite failed, error code is -3 03-07 17:51:43.867 939 1042 E C01510/BinderInvoker: 124: SendRequest: handle=2 result = -3 03-07 17:51:43.867 3105 3105 I C02c02/PARAM: [param_request.c:200]SystemSetParameter name ffrt.interval.limit msgid:9 ret: 0 03-07 17:51:43.867 939 1042 E C02500/usb_interfaceproxy: BulkTransferWrite failed, error code is -3 03-07 17:51:43.867 939 1042 E C02904/UsbService: [usb_service.cpp] BulkTransferWrite# BulkTransferWrite error ret:-3 03-07 17:51:43.867 939 1042 E C02905/Usbd: [usb_srv_stub.cpp] DoBulkTransferWrite# BulkTransferWrite error ret:-3 03-07 17:51:43.867 3105 3171 E C02903/UsbSrvClient: [usb_srv_client.cpp] BulkTransfer# failed width ret = -3 ! 03-07 17:51:43.867 3105 3171 E C02907/UsbMgrJSNAPI: [usb_info.cpp] operator()# ControlTransferExecute failed 03-07 17:51:43.868 3105 3105 E C02907/UsbMgrJSNAPI: [usb_info.cpp] operator()# BulkTransfer failed

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论1

s_hao

沙发 发表于 2024-3-13 14:55:59
目前从日志看是非法参数,这个要你自己先看下官方文档,是不是传的参数错了

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部