Flutter USB串口与arduino,未检测到CH340

发布于 2025-01-13 03:48:24 字数 556 浏览 3 评论 0原文

我正在尝试使用这个包 usb_serial 与我的硬件设备(如 Arduino、Esp8266、Esp32、FTDI 板)进行通信等等,

现在我使用的是带有CH340芯片的板子。设备详细信息与 device_filter.xml
中提到的相匹配 输入图片此处描述

在 device_filter.xml 中
输入图片这里的描述

我在这里缺少什么吗,如果你知道,请帮助我。谢谢

I'm trying this package usb_serial to communicate with my hardware devices like Arduino, Esp8266, Esp32, FTDI board, etc.,

Right now I'm using a board with a CH340 chip in it. Device details are matching as mentioned in device_filter.xml
enter image description here

In device_filter.xml
enter image description here

Am I missing somthing here, please help me if you know. Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

千と千尋 2025-01-20 03:48:24

我找到了解决方案。
示例代码中,我评论了subtitle : Text(device.manufacturerName!), 行。
原因是我使用的是无品牌的 CH340 芯片,上面没有制造商的名称。

I found the solution.
In the example code I commented subtitle: Text(device.manufacturerName!), line.
The reason is I was using an unbranded CH340 chip, which did not have the manufacturer's name on it.

独夜无伴 2025-01-20 03:48:24

我也遇到了这个问题,注释掉字幕行为我解决了这个问题。

PS 我添加了一个空检查......

subtitle: Text(device.manufacturerName ?? "Unknown Manufacturer"),

I too had this problem and commenting out the subtitle line fixed it for me.

P.S. I added a null check instead...

subtitle: Text(device.manufacturerName ?? "Unknown Manufacturer"),
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文