Hello.
I use MacOS Mojave and LaserWeb4, but even if I connect ESP32grbl with USB serial or BT-SPP, reportinit_message is not sent, so it is disconnected.
When I added “grblsendf (CLIENTALL,” \ r \ nGrbl “GRBLVERSION” [‘$’ for help] \ r \ n “);” to myspp_cb function in BTconfig.cpp, it was not disconnected.
Can I do the same with a USB serial connection?
评论 (5)
#2 – yoch2015 于 2019-09-24
Thank you.
The crash occurs on Windows but not on MacOSX.
#3 – yoch2015 于 2019-09-24
It doesn’t crash like this:
$ sudo cu -s115200 -l/dev/tty.SLAB_USBtoUART
Connected.
#4 – bdring 于 2019-09-24
The USB is not part of the ESP32, so there is no way to detect a connection. It could be done if you redesign the ESP32 Dev Module .
#5 – yoch2015 于 2019-09-24
Thank you.
Since I was using the binary version, the problem of CTRL + X was solved if I changed it.
#1 – bdring 于 2019-09-24
With Arduino Grbl, the controller crashes and reboots whenever you connect. That is why you see that message. That is not a desirable feature and it is fortunate the ESP32 does not do that.
Most senders, including LaserWeb4 now support a “Reset on connect” feature. This requests that string on connect.
See this issue where they talk about it