• Lv1
    粉丝0

积分0 / 贡献0

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

作者动态

    ubuntu2404运行hdc总是Empty

    whelly 显示全部楼层 发表于 2025-2-11 19:34:07

    【问题描述】

    1. 介绍问题现象和发生的背景 我在网上下的toolchains-windows-x64-5.1.0.50-Beta1,在windows下hdc可以,但是toolchains-linux-x64-5.1.0.50-Beta1在ubuntu2404上一直是Empty.
    2. 相关的代码(请勿使用截图) 我通过lsusb看:有设备:Bus 003 Device 009: ID 18d1:5000 Google Inc. "HDC Device". 但是会多个/dev/ttyUSB0出来,不知道是不是这个问题?
    3. 运行结果、错误截图
    4. 我尝试过的解决方法和结果 尝试修改udev不识别成ttyUSB,也没效果. sudo chmod -R 777 /dev/bus/usb/ . 也没效果.
    5. 我想要达到的结果 现在只希望能在ubuntu2404上能正常使用hdc,因为我开发都在这个系统上.

    【运行环境】

    硬件:X64 ROM版本: DevEvoStudio版本: SDK版本:version-Master_Version-OpenHarmony_5.1.0.50-20250206_020637-ohos-sdk-full.tar.gz

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

    精彩评论2

    whelly

    沙发 发表于 2025-2-12 09:25:38
    [I][2025-02-12 08:34:10.063][2d84248][session.cpp:25] Program running. Ver: 3.1.0e Pid:4946
    [I][2025-02-12 08:34:10.063][2d84248][session.cpp:33] set UV_THREADPOOL_SIZE:128
    [D][2025-02-12 08:34:10.064][2d84248][session.cpp:45] loopMain init
    [D][2025-02-12 08:34:10.083][2d84248][base.cpp:1445] Write mutext to /tmp/.HDCServer.pid, pid:4946
    [F][2025-02-12 08:34:10.084][2d84248][base.cpp:2157] rename log file failed.
    [D][2025-02-12 08:34:10.084][2d84248][server_for_client.cpp:108] channelHost ::ffff:127.0.0.1, port: 8710
    [D][2025-02-12 08:34:10.084][2d84248][host_usb.cpp:55] HdcHostUSB init
    [D][2025-02-12 08:34:10.084][2d84248][host_usb.cpp:320] USBHost loopfind mode
    [D][2025-02-12 08:34:10.084][2d84248][host_uart.cpp:510] StartupUARTWork
    [D][2025-02-12 08:34:10.084][2d84248][host_uart.cpp:470] StartUartSendThread.
    [I][2025-02-12 08:34:10.085][2d84248][host_uart.cpp:478] StartUartSendThread success.
    [F][2025-02-12 08:34:10.084][b2595fc5][base.cpp:264] ThreadCompressLog file /tmp/hdc_logs/hdc-20250212-083410084.log not exist
    [D][2025-02-12 08:34:10.085][fe278be5][host_uart.cpp:63] UartWriteThread wait sendLock.
    [F][2025-02-12 08:34:10.085][7f87f5c5][uv_status.cpp:124] LoopMonitorWorker every 3000 ms check hung 500 us
    [D][2025-02-12 08:34:10.087][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:34:10.087][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:34:10.087][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:34:10.087][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:34:11.068][2d84248][host_uart.cpp:202] new port:/dev/ttyUSB0
    [I][2025-02-12 08:34:11.068][2d84248][host_uart.cpp:546] WatchUartDevPlugin found uart port :/dev/ttyUSB0
    [D][2025-02-12 08:34:11.068][2d84248][host_uart.cpp:429] UpdateUARTDaemonInfo uart connectKey :/dev/ttyUSB0 session <null> change to 1
    [D][2025-02-12 08:34:11.068][2d84248][host_uart.cpp:444] UpdateUARTDaemonInfo add new di
    [I][2025-02-12 08:34:11.362][2d84248][channel.cpp:424] Mallocchannel:2399552584
    [D][2025-02-12 08:34:11.362][2d84248][server_for_client.cpp:64] AcceptClient uid:2399552584
    [D][2025-02-12 08:34:11.362][2d84248][server_for_client.cpp:86] Server ver:Ver: 3.1.0e3d103a4a4ce155b3
    [D][2025-02-12 08:34:11.363][2d84248][server_for_client.cpp:837] ServerForClient cid:2399552584 sid:0 handshake finished
    [F][2025-02-12 08:34:11.363][2d84248][server_for_client.cpp:795] connectKey.size 0 channelId:2399552584
    [W][2025-02-12 08:34:11.363][2d84248][server_for_client.cpp:841] No target channelId:2399552584
    [D][2025-02-12 08:34:11.363][2d84248][channel.cpp:130] ReadStream idle read channelId:2399552584
    [I][2025-02-12 08:34:11.371][2d84248][server_for_client.cpp:899] ReadChannel cid:2399552584 sid:0 key: command:list targets
    [W][2025-02-12 08:34:11.371][2d84248][channel.cpp:157] ReadStream childRet:-3 channelId:2399552584 keepAlive:0
    [D][2025-02-12 08:34:11.371][2d84248][channel.cpp:539] Begin to free channel, channelid:2399552584
    [D][2025-02-12 08:34:11.371][2d84248][channel.cpp:177] Read Stream needExit, FreeChannel finish channelId:2399552584
    [D][2025-02-12 08:34:11.371][2d84248][channel.cpp:629] channel info: id:2399552584 isDead:1 ref:0, writeFailedTimes:0
    [D][2025-02-12 08:34:11.371][2d84248][base.cpp:874] before uv handle close, the uv handle type is 13
    [I][2025-02-12 08:34:11.371][2d84248][channel.cpp:439] FreeChannelFinally uvHandleRef:1 channelId:2399552584 sid:0
    [I][2025-02-12 08:34:11.371][2d84248][channel.cpp:455] !!!FreeChannelFinally channelId:2399552584 sid:0 finish
    [D][2025-02-12 08:34:11.371][2d84248][base.cpp:874] before uv handle close, the uv handle type is 6
    [D][2025-02-12 08:34:25.091][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:34:25.092][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:34:25.092][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:34:25.092][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:34:40.094][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:34:40.095][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:34:40.095][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:34:40.095][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:34:55.098][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:34:55.099][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:34:55.099][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:34:55.099][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:35:10.101][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:35:10.102][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:35:10.102][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:35:10.102][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:35:25.106][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:35:25.106][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:35:25.106][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:35:25.106][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:35:40.109][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:35:40.110][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:35:40.110][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:35:40.110][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:35:55.115][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:35:55.115][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:35:55.115][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:35:55.116][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:36:10.118][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:36:10.118][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:36:10.118][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:36:10.118][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:36:25.123][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:36:25.124][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:36:25.124][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:36:25.124][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:36:40.129][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:36:40.129][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:36:40.129][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:36:40.130][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:36:55.133][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:36:55.133][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:36:55.133][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:36:55.133][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:37:10.137][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:37:10.137][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:37:10.137][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:37:10.138][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:37:25.140][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:37:25.140][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:37:25.140][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:37:25.141][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:37:40.144][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:37:40.145][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:37:40.145][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:37:40.145][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:37:55.149][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:37:55.150][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:37:55.150][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:37:55.150][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6
    [D][2025-02-12 08:38:10.154][2d84248][host_usb.cpp:352] CheckDescriptor busId-devId:3-9 serialNum:035******539(L:14)
    [D][2025-02-12 08:38:10.154][2d84248][host_usb.cpp:442] CheckActiveConfig IsDebuggableDev passed and then check endpoint attr
    [D][2025-02-12 08:38:10.154][2d84248][host_usb.cpp:680] libusb_claim_interface ret -6, interfaceNumber 0
    [F][2025-02-12 08:38:10.155][2d84248][host_usb.cpp:159] DetectMyNeed OpenDeviceMyNeed childRet:-6


    这个是hdc.log

    whelly

    发表于 2025-2-12 14:35  IP属地: 安徽省

    回复 whelly: [14060.273583] usb 3-1: new high-speed USB device number 15 using xhci_hcd
    [14060.402801] usb 3-1: New USB device found, idVendor=18d1, idProduct=5000, bcdDevice= 4.04
    [14060.402836] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [14060.402850] usb 3-1: Product: "HDC Device"
    [14060.402859] usb 3-1: Manufacturer: Unisoc
    [14060.402867] usb 3-1: SerialNumber: 03516892320539
    [14060.406627] usb_serial_simple 3-1:1.0: google converter detected
    [14060.406912] usb 3-1: google converter now attached to ttyUSB0
    [14060.569142] usb 3-1: USB disconnect, device number 15
    [14060.570752] google ttyUSB0: google converter now disconnected from ttyUSB0
    [14060.570832] usb_serial_simple 3-1:1.0: device disconnected
    [14061.952391] usb 3-1: new high-speed USB device number 16 using xhci_hcd
    [14062.081479] usb 3-1: New USB device found, idVendor=18d1, idProduct=5000, bcdDevice= 4.04
    [14062.081503] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [14062.081510] usb 3-1: Product: "HDC Device"
    [14062.081516] usb 3-1: Manufacturer: Unisoc
    [14062.081520] usb 3-1: SerialNumber: 03516892320539
    [14062.084809] usb_serial_simple 3-1:1.0: google converter detected
    [14062.085074] usb 3-1: google converter now attached to ttyUSB0

    以上是usb连上时的dmesg.哪位大侠帮看看啊

    【1 条回复】

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

    返回顶部