OpenHarmony开发者论坛

标题: OpenHarmony4.0 USB通信bulkTransfer报错-3 [打印本页]

作者: xylitol2010    时间: 2024-3-7 18:19
标题: OpenHarmony4.0 USB通信bulkTransfer报错-3
[md]执行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_interface_stub: 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_interface_proxy: 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
[/md]
作者: s_hao    时间: 2024-3-13 14:55
目前从日志看是非法参数,这个要你自己先看下官方文档,是不是传的参数错了




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5