-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GRBL 1.1f Connection Issues #17
Comments
lw.comm-server does also identify the firmware by the welcome string. Unfortunately we had to remove the automatic ctrl-x after connection because it causes smoothieware to go into alarm state. |
Could we add a field on the front end to be read by the server so the control-x or any other be executed ?
Ariel Yahni
…On Mar 10, 2017, 11:52, at 11:52, Claudio Prezzi ***@***.***> wrote:
lw.comm-server does also identify the firmware by the welcome string.
Unfortunately we had to remove the automatic ctrl-x after connection
because it causes smoothieware to go into alarm state.
Just press CTRL-X after connecting. This should reset GRBL to get the
welcome string.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#17 (comment)
|
In the machine setup section we could have an "Reset On Connect" radio box or have it as a header and you choose which reset command you want to send. For maximum flexibility we could have it as a textbox and let the user do whatever init stuff they wanted.
|
I worked very hard to get rid of all the firmware dependency in the frontend and I don't like to put it back now. This problem is only related to grbl directly connected by serial rx/tx (not USB). We don't have many users with such a configuration. I will find another elegant (automatic) solution. ;) |
This is related to issue #11 |
When monitoring the serial port on the pi with minicom and I connect to the device I get
When I inject
What 3 commands are being issues to the device during connection? |
I struck oil! So, I hijacked the comm-servers stdout messages to trigger a reset by doing this:
When I connect to the device it fires in the reset command before the comms server reads the first bytes. A minor piping issue that may be an issue below.
|
I can flesh out the RasPi section of the docs as I work through my new machine setup. I wrote a script to start the server and setup the serial trigger so you can connect without caring. #!/bin/bash
# Copyright (c) 2016 Trevor Johansen Aase
#
# The MIT License (MIT)
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
# the Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Useage:
# ./start_server.sh /dev/YOUR-TTY
TTY=${1:-/dev/serial0}
function trigger {
echo "Firing reset trigger to $TTY !"
echo -n $'\cx' > $TTY
}
echo "Starting LaserWeb4 Comms Server..."
npm run-script start-server | tee /tmp/lw.stdout.log &
while true
do
tail -f /tmp/lw.stdout.log | grep -q --line-buffered "INFO: Connecting to USB,$TTY" && trigger
done |
Just for your info: The two errors you see are the trials to detect other firmware. You could just ignore them, as they should not harm your Grbl. |
I gave @iceblu3710 edit permissions on cncpro.co so I assume we can close this as a documented workaround for now. Later we'll have an electron app with Pi support as a non-gui app |
I am running the comms server from a Raspberry Pi and home made Arduino stepper shield. When LW connects to the serial port the Arduino does not restart and give the GRBL FW version which is how most program ID the firmware.
How does the comms server ID the firmware?
The text was updated successfully, but these errors were encountered: