Huawei MH5000-31 Linux 驱动集成

Huawei MH5000-31 Linux 驱动集成

TONYLABS 09 Jun, 2020


1. 如何确定系统中是否已经正确安装了 USB 驱动?


$ dmesg

运行 dmesg 命令,查看 Linux 内核信息,如果信息与下图一致,则说明设备可正常加载。


2. 如何确定系统中是否已经正确配置 CDC ECM 驱动?


$ dmesg

运行 dmesg 命令,如出现下图红框部分信息,则说明存在正确的CDC ECM 驱动。


5. 如何手动加载串口驱动?

确认已配置添加编译驱动option 进入内核(参考章节4 )。

  1. 查询模块的VID 和PID(Linux 系统上可通过输入lsusb 获取,如果不支持该命令,可以通过windows 或相关产品文档获得)。若得到模块的VID=12D1,PID=15C3,则说明 HUAWEI MH5000-31 模块USB 串口驱动加载成功。
  2. 打开Terminal,输入 echo "12d1 15C3" >/sys/bus/usb-serial/drivers/option1/new_id
  3. 输入dmesg 或者ls /dev/ttyUSB*,查看加载是否成功。


6. 如果无法映射端口或无法查找对应端口形态需要提供哪些日志文件

  1. 打开Terminal,执行命令 dmesg 并保存输出结果于dmesg.txt 文档。
  2. 执行命令ls –l /sys/bus/usb/drivers/,保存输出结果于logcat.txt 文档,确保此目录下有 option 选项。
  3. 执行命令ls –l /sys/bus/usb/drivers/option/***/,保存输出结果于logcat.txt 文档。
  4. 执行命令cat /sys/bus/usb/drivers/option/***/bInterface*,保存输出结果于 logcat.txt 文档。
  5. 如果能执行命令cat /proc/bus/usb/devices,将输出结果保存于logcat.txt 文档(如果不能请忽略此命令)。

Like what you're reading? Subscribe to our top stories.

We will continue to update Front; if you have any questions or suggestions, please contact us!

Follow us on Medium, Twitter, Facebook, YouTube, and Dribbble.

Image Description
Written by

Hanna Wolfe

I create advanced website builders made exclusively for web developers.


  • Image Description
    Dave Austin 1 day ago

    As a Special Education teacher this resonates so well with me. Fighting with gen ed teachers to flatten for the students with learning disabilities. It also confirms some things for me in my writing.

    • Image Description
      Hanna Wolfe 1 day ago

      Love it Dave! We're all about keeping it up.

  • Image Description
    Christina Kray 2 days ago

    Since our attention spans seem to be shrinking by the day — keeping it simple is more important than ever.


Post a comment

Stay in the know

Get special offers on the latest developments from Front.