开源改变世界

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

推推 grbl 3年前 (2023-02-04) 280次浏览
关闭
Geeklab3D 开启了这个issue 2017 年 11 月 13 日 · 60条评论
关闭

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano#437

Geeklab3D 开启了这个issue 2017 年 11 月 13 日 · 60条评论

评论

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

您好
,我按照网站上的安装说明在新的 Raspberry Pi 3 上安装了最新的 Raspian。我还在 Raspberry Pi 配置中启用了串行连接。Web 界面工作,除了连接的带有 GRBL 的 arduino nano ATmega 341 没有出现在机器连接中。

在终端 dmesg 中显示:

usbcore:注册了新的接口驱动程序ch341
[3.115097] usbserial:为ch341-uart注册的USB串行支持
[3.115186] ch341 1-1.2:1.0:检测到ch341-uart转换器
[3.117234] usb 1-1.2:ch341-uart转换器现在连接到ttyUSB0

…..
我安装了 Arduino IDE 并获得了对 nano 的完全访问权限。我将最新的 GRBL 版本刷入 nano,但仍然没有连接。

如果我将带有 Eleksmaker 的 W10 笔记本连接到 nano,一切正常。

任何想法,为什么这不起作用?先感谢您。
RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

我在 Raspberry Pi 上遇到了类似的问题(“未找到结果”),发现我的问题是为节点安装“SerialPort”模块。
新指南有以下几行:

sudo npm install serialport --unsafe-perm --build-from-source
sudo npm install

这对我有用。

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

嗨 thystonius
感谢您的反馈。我明天会检查一下。

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

我遇到了与 Geeklab3D 相同的问题。

$ dmesg |grep ch341
[1824054.331645] usbcore:已注册新接口驱动程序 ch341
[1824054.331930] usbserial:为 ch341-uart [1824054.332108] 注册的 USB 串行支持
ch341 1-1.5:1.0:检测到 ch341-uart 转换器
[1824054.33914] :ch341-uart转换器现在连接到ttyUSB0
[1833136.016131] ch341-uart ttyUSB0:ch341-uart转换器现在与ttyUSB0断开连接
[1833136.016270] ch341 1-1.5:1.0:设备断开连接
[1835925.591298] ch343:1.0-1.5检测到转换器
[1835925.597659] usb 1-1.5:ch341-uart 转换器现在连接到 ttyUSB0`

$ lsusb
Bus 001 Device 007: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter

我确实使用 thystonius 推荐的相同参数安装了串口

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
thystonius 评论了 2017 年 12 月 14 日 通过电子邮件
RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

$ cat /proc/device-tree/model
Raspberry Pi 2 Model B Rev 1.1

$ cat /etc/os-release
PRETTY_NAME=”Raspbian GNU/Linux 8 (jessie)”
NAME=”Raspbian GNU/Linux”
VERSION_ID=”8″
VERSION=”8 (jessie)”

$节点-v
v6.12.2

$ npm -v
3.10.10

带有 Grbl 1.1 的 Eleksmaker EleksLaser-A5 Pro

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
thystonius 评论了 2017 年 12 月 14 日 通过电子邮件  

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

试过这个
‘var SerialPort = require(‘serialport’);
var port = new SerialPort(‘/dev/ttyUSB0’, {
baudRate: 57600
});

// 打开错误将作为错误事件发出
port.on(‘error’, function(err) {
console.log(‘Error: ‘, err.message);
});

port.open(function (err) {
if (err) {
return console.log(‘打开端口时出错:’, err.message);
}
// 什么都不做
});’
并得到
“$ DEBUG=* node testSerial.js
Error: Port is opening”

我现在就试试你的

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

$ DEBUG=* node testSerial1.js
Ports [ { comName: ‘/dev/ttyACM0’,
manufacturer: ‘Prusa_Research__prusa3d.com_’,
serialNumber: ‘Prusa_Research__prusa3d.com__Original_Prusa_i3_MK2_CZPX0717X003XK12123’,
pnpId: ‘usb-Prusa_Research__prusa3d.com__Original_Prusa_i3_MK2_CZPX0717X003XK12123-if00’,
vendorId: ‘0x2c99’,
productId: ‘0x0001’ },
{ comName: ‘/dev/ttyAMA0’,
manufacturer: undefined,
serialNumber: undefined,
pnpId: undefined,
vendorId: undefined,
productId: undefined },
{ comName: ‘/dev/ttyUSB0 ‘,
制造商:’1a86’,
序列号:’1a86_USB2.0-Serial’,
pnpId:’usb-1a86_USB2。0-Serial-if00-port0′,
vendorId: ‘0x1a86’,
productId: ‘0x7523’ } ]
错误:空

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
thystonius 评论了 2017 年 12 月 14 日 通过电子邮件
RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

嗯,我的 Pi 是本地主机。我在那里有本地主机… localhost:8000 是准确的

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

从 Pi
$ curl -I localhost:8000
HTTP/1.1 200 OK

如果不是本地主机应该是什么?

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
thystonius 评论了 2017 年 12 月 14 日 通过电子邮件
RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

使用无线适配器 ip 工作。很奇怪!但显然,我需要重做 fw 部署,因为我猜它实际上并没有发生。

固件 grbl 0.9j 检测到
Grbl 版本太旧 -> 您必须至少安装 GRBL 1.1e

谢谢你的帮助,内森。知道为什么我们必须使用机器的 IP 吗?我有一个本地解析到该机器的 DNS 名称,我可以使用它以免丢失地址吗?

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
thystonius 评论了 2017 年 12 月 14 日 通过电子邮件
RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

你好。我从头开始重新安装了 pi。我现在得到了到 arduino 的串行连接,但是有 GRBL 到旧问题。我将在本周末尝试使用新固件刷新 arduino。

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
合作者

这个解决了吗?

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

同样的问题在这里。从头开始。我正在使用带有 Raspberry Pi 3+ 的 Eleksmaker A3 Pro 2500mw PWM 激光器。我可以正常连接到网络,但未填充机器连接下拉列表。

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

奇怪 – 我显示了 USB 端口 ttyUSB0 和 ttyAMA0,我可以从 CLI 连接到 ttyUSB0 @ 115200,但是当我尝试通过 Web 界面连接时,什么也没有!我正在使用 serialport@6.2.2

/var/log/daemon.log:
Sep 11 20:38:08 raspberrypi lw.comm-server[5548]: INFO: Connecting to USB,/dev/ttyUSB0,115200
Sep 11 20:38:08 raspberrypi lw.comm-服务器[5548]:/home/ pi/lw.comm-server/server.js:291
Sep 11 20:38:08 raspberrypi lw.comm-server[5548]:解析器:serialport.parsers.readline(‘\n’ ),
Sep 11 20:38:08 raspberrypi lw.comm-server[5548]: ^
Sep 11 20:38:08 raspberrypi lw.comm-server[5548]: TypeError: serialport.parsers.readline is not a function
Sep 11 20:38:08 raspberrypi lw.comm-server [5548]:在 Socket。(/home/pi/lw.comm-server/server.js:291:48)
9 月 11 日 20:38:08 raspberrypi lw.comm-server [5548]: 在 Socket.emit (events.js:182:13)
9 月 11 日 20:38:08 raspberrypi lw.comm-server [5548]:在 /home/pi/lw.comm-server/node_modules/socket.io/lib/socket.js:503:12
9 月 11 日 20:38: 08 raspberrypi lw.comm-server[5548]: at process._tickCallback (internal/process/next_tick.js:61:11)
Sep 11 20:38:08 raspberrypi systemd[1]: lw.comm-server.service: Main进程退出,代码=退出,状态=1/失败
9 月 11 日 20:38:08 raspberrypi systemd[1]:lw.comm-server.service:单元进入失败状态。
9 月 11 日 20:38:08 raspberrypi systemd [1]:lw.comm-server.service:失败,结果为“退出代码”。
9 月 11 日 20:38:08 raspberrypi systemd[1]:lw.comm-server.service:服务延迟时间结束,计划重启。
9 月 11 日 20:38:08 raspberrypi systemd[1]:已停止 LaserWeb4 服务器。
9 月 11 日 20:38:08 raspberrypi systemd[1]:启动 LaserWeb4 服务器。

玩了一些之后,最新版本的串口似乎有一些重大变化,承诺和东西..

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
成员
开胃菜 评论了 2018 年 9 月 12 日  

lw.comm-server 需要串口版本 4.x 而不是 6.x!你应该通过 USB 电缆连接控制器,而不是 RX/TX 到 Raspberry Pi。

同样重要的是,作为@thystonius写道:当您使用树莓派作为服务器时,您必须在 LaserWeb 的服务器字段中设置树莓派的 IP (+:8000),而不是 localhost:8000!

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437

好吧,我无法让 4.x 在 Node 10 下编译,所以 6.x 在 10 下工作。

我可能会看看对 server.js 进行更改以使 6.x 今晚工作。

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
成员

正如 wiki 中所写,我们需要 NodeJS V6 ;)

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
成员

非常感谢使用串行端口 6.x 连接到 nodejs 10.x。

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
埃利斯格 评论了 2018 年 9 月 13 日  

我知道它说的是 V6,但我讨厌落后那么远。=) 我有一个用于 lw.comm 的分支 – 但我目前只完成了代码样式设置。我目前没有太多个人时间,所以我可能需要几天时间才能开始工作。

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
成员
开胃菜 评论了 2018 年 9 月 14 日  

请不要做代码样式/重新格式化!这使得审查拉取请求(找到相关更改)变得非常复杂,因此不会被确认/接受。

RaspberryPI,没有 USB 连接到带有 GRBL 的 ch341 arduino nano #437
thystonius 评论了 2018 年 9 月 14 日 通过电子邮件
喜欢 (0)