-
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
Random issue: machine disconnection - reconnect - queue continues when clicking jog #40
Comments
It's not the ok from the jog that causes the queue to continue (this is fed at the end of the queue), it's the jog command from the frontend itself that kicks the queue on. What do you suggest to do? I could clear the queue on each machine connect, so nothing unexpected happens. |
Not sure actually. If you only lost connection (but board didnt reset, so current position is held) you can usually resume queue. In other cases, you will definately need to clear queue. Depends on what happened. Not sure. Perhaps after reconnect, check if a Queue, then warn user: "You just reconnected a machine, which has a queue, would you like to Resume, or Clear?"? Open to discussion here - as i said, i havent even nailed down under exactly which circumstances it happens. I do feel like the jog gets through though, as I had two instances where it disconnected while down in a cut. And i clicked Z+ to back out of the hole: The resulting move when to next point while retracting out of the hole. That was very weird. I hit the emergency stop as soon as that happened (both times unfortunately) as i realised queue resumed, but wasnt sure if i want to or not, so estop was quickest instinct. |
Jog should not be able to jump over an exisitng queue, because I use addQ which adds the command to the end of the queue (see: https://github.com/LaserWeb/lw.comm-server/blob/master/server.js#L2602). |
Just some input: Please let me know if there is a specific test or situation you would like us to try. With respect to what happens after a disconnect, I would think the 'safest' approach would be to alert the users and not continue with the queue. Clearing the queue is the safest. I have always wanted to see a more prominent status shown on the left tab for connection status and queue information. Having it always there and visible regardless of what tab you are in would be very useful. At the moment you need to switch between either COMMS or CONTROL to see whether you are connected to your machine. |
Seconding connection status and button always visible. (;
#bringbacktgetopnav lol
Lpc1769's USB can be temperamental. Wonder if grbl-lpc improves on it? I
have a few hardware fixes to help with that too. Next rev of your pcb (;
…On Jun 28, 2017 12:30 AM, "Domenic Di Giorgio" ***@***.***> wrote:
Just some input:
We have random disconnections reported by a few users. Most of the time it
was solved by switching to a different USB port or computer. We have not
been able to find a common denominator with respect to hardware or O/S
either.
Please let me know if there is a specific test or situation you would like
us to try.
With respect to what happens after a disconnect, I would think the
'safest' approach would be to alert the users and not continue with the
queue. Clearing the queue is the safest.
I have always wanted to see a more prominent status shown on the left tab
for connection status and queue information. Having it always there and
visible regardless of what tab you are in would be very useful. At the
moment you need to switch between either COMMS or CONTROL to see whether
you are connected to your machine.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVr242hfdCefeVPUhrPKfAAKAazJRYoks5sIYKCgaJpZM4OGlyE>
.
|
Since this is widespread I also have had random disconects with my GrBL board. I'm on OSx also but haven't been able to replicate. At some point I thought it was interference on the cable |
Its most likely hardware. Wont be LW. Check your event viewer / dmesg and
you'll see the OS complain lower down the stack
On Jun 28, 2017 12:36 AM, "Ariel Yahni" <[email protected]> wrote:
Since this is widespread I also have had random disconects with my GrBL
board. I'm on OSx also but haven't been able to replicate. At some point I
thought it was interference on the cable
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVr2xn-aKaTyK7rqpJwpBGG3MOl7acWks5sIYP6gaJpZM4OGlyE>
.
|
@cojarbi We also tested this with customers who reported the issue but once again it was not conclusive. We supplied new USB cables with correct ferrites installed but it didn't appear to make a difference. |
@openhardwarecoza Thanks for this info. We will have users check this next time its reported. |
Domenic, are you guys running your 5v rail off the usb power, or from a 5v
PSU onboard? (smoothieboard stock runs off usb power. Unless you solder in
the expensive recom regulator. I find that on USB power it performs worse)
…On Jun 28, 2017 12:41 AM, "Domenic Di Giorgio" ***@***.***> wrote:
@cojarbi <https://github.com/cojarbi> We also tested this with customers
who reported the issue but once again it was not conclusive. We supplied
new USB cables with correct ferrites installed but it didn't appear to make
a difference.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVr2xfZK5aHzz2Hgq1lr-h-DMQfdh4_ks5sIYUMgaJpZM4OGlyE>
.
|
@openhardwarecoza We don't run it off the USB power. |
Has anyone seen this with GRBL-LPC? |
Havent tried grbl-lpc on this yet, but since this particular board is so
wonky, it would make a good test subject. Will install tomorrow (today i
have alu parts to mill that cant be delayed)
Seperate thing, we really need to get LW to support SD card usage more
(ascii upload, list sd, play file) - would also really help. I know upload
will be slow but we havent tested bulk ascii upload yet (in contrast to
m28, it doesnt use line, ok, line. It uses bulk transfer with seri buffer
maxed out, then md5 afterwards to ensure it was successful
…On Jun 28, 2017 1:19 AM, "Todd Fleming" ***@***.***> wrote:
Has anyone seen this with GRBL-LPC?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVr22wjEmEKyxzegLFdYAOEKlu4XNfOks5sIY3qgaJpZM4OGlyE>
.
|
I have started implementing SD card support on backend side (https://github.com/LaserWeb/lw.comm-server/blob/SD_support/server.js#L2157) but got stuck at the frontend part. I could use some help with the frontend from the GUI specialists ;) We need some sort of File Manager popup. |
In the LW3 codebase i had a Upload SD button next to Play (control tab) the
idea was a Modal to list the sd, and a Play button next to gcode files
…On Jul 3, 2017 12:29 PM, "Claudio Prezzi" ***@***.***> wrote:
I have started implementing SD card support on backend side (
https://github.com/LaserWeb/lw.comm-server/blob/SD_support/server.js#L2157)
but got stuck at the frontend part. I could use some help with the frontend
from the GUI specialists ;) We need some sort of File Manager popup.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVr2_4X_OtFsWDmT_AKro2a7f4Nv62nks5sKMJqgaJpZM4OGlyE>
.
|
Button:
https://github.com/LaserWeb/deprecated-LaserWeb3/blob/master/public/index.html#L340
Modal never finished
https://github.com/LaserWeb/deprecated-LaserWeb3/blob/master/public/index.html#L1234
Had working SD in https://github.com/openhardwarecoza/CoPrint though, check
it out
On Jul 3, 2017 1:55 PM, "Peter van der Walt (Gmail)" <
[email protected]> wrote:
… In the LW3 codebase i had a Upload SD button next to Play (control tab)
the idea was a Modal to list the sd, and a Play button next to gcode files
On Jul 3, 2017 12:29 PM, "Claudio Prezzi" ***@***.***>
wrote:
> I have started implementing SD card support on backend side (
> https://github.com/LaserWeb/lw.comm-server/blob/SD_support/
> server.js#L2157) but got stuck at the frontend part. I could use some
> help with the frontend from the GUI specialists ;) We need some sort of
> File Manager popup.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#40 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AHVr2_4X_OtFsWDmT_AKro2a7f4Nv62nks5sKMJqgaJpZM4OGlyE>
> .
>
|
What kind of file manager do you need? |
Upload and List (with play button next to list) will suffice.
Must accommodate subfolders and recursion
…On Jul 3, 2017 2:04 PM, "jorgerobles" ***@***.***> wrote:
What kind of file manager do you need?
Only loading files or uploading, renaming, etc.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVr28mpHRs7rnTG-kZVlmidHP0NJ0Xuks5sKNivgaJpZM4OGlyE>
.
|
Smoothieware reports current directory. You dont need a tree. (up one
level) and (open folder). Clone and run my CoPrint please, point it as a
smoothie and see what i did there
…On Jul 3, 2017 2:20 PM, "jorgerobles" ***@***.***> wrote:
https://github.com/woodpig07/react-nested-file-tree
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVr29JA3W3riKq3uW5DxahlV8xJJZopks5sKNx-gaJpZM4OGlyE>
.
|
@openhardwarecoza If I understand your code correctly, you use the smoothie sd card via the mounted device, not over USB serial commands, right? |
Yes, that was the experiment. Sadly it wasnt the solution, because doing
serial and msd at the same time, corrupts the SD. So using it as the
usb-storage option isnt the way to go. But i did like my file browser,
upload dialogues, etc. For lw4 it just needs to move to a modal i think
(less space available than we had in coprint). And of course using the
correct 'upload' as linked couple replies above
…On Jul 3, 2017 3:53 PM, "Claudio Prezzi" ***@***.***> wrote:
@openhardwarecoza <https://github.com/openhardwarecoza> If I understand
your code correctly, you use the smoothie sd card via the mounted device,
not over USB serial commands, right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVr2-Us8DXWgw1ldDDATMV6PYytzH6Jks5sKPJlgaJpZM4OGlyE>
.
|
Correct upload method: LaserWeb/deprecated-LaserWeb3#138 (comment)
On Jul 3, 2017 3:56 PM, "Peter van der Walt (Gmail)" <
[email protected]> wrote:
… Yes, that was the experiment. Sadly it wasnt the solution, because doing
serial and msd at the same time, corrupts the SD. So using it as the
usb-storage option isnt the way to go. But i did like my file browser,
upload dialogues, etc. For lw4 it just needs to move to a modal i think
(less space available than we had in coprint). And of course using the
correct 'upload' as linked couple replies above
On Jul 3, 2017 3:53 PM, "Claudio Prezzi" ***@***.***> wrote:
> @openhardwarecoza <https://github.com/openhardwarecoza> If I understand
> your code correctly, you use the smoothie sd card via the mounted device,
> not over USB serial commands, right?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#40 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AHVr2-Us8DXWgw1ldDDATMV6PYytzH6Jks5sKPJlgaJpZM4OGlyE>
> .
>
|
Oops, wrong link:: upload as per wolfman
LaserWeb/deprecated-LaserWeb3#138 (comment)
|
https://plus.google.com/+JérémieTarot/posts/HqLcZVv2Vz8
<https://plus.google.com/+J%C3%A9r%C3%A9mieTarot/posts/HqLcZVv2Vz8>
On Jul 3, 2017 3:59 PM, "Peter van der Walt (Gmail)" <
[email protected]> wrote:
… Oops, wrong link:: upload as per wolfman https://github.com/
LaserWeb/deprecated-LaserWeb3#138#issuecomment-253009463
On Jul 3, 2017 3:59 PM, "Peter van der Walt (Gmail)" <
***@***.***> wrote:
> Correct upload method: LaserWeb/deprecated-LaserWeb3#138 (comment)
>
> On Jul 3, 2017 3:56 PM, "Peter van der Walt (Gmail)" <
> ***@***.***> wrote:
>
>> Yes, that was the experiment. Sadly it wasnt the solution, because doing
>> serial and msd at the same time, corrupts the SD. So using it as the
>> usb-storage option isnt the way to go. But i did like my file browser,
>> upload dialogues, etc. For lw4 it just needs to move to a modal i think
>> (less space available than we had in coprint). And of course using the
>> correct 'upload' as linked couple replies above
>>
>> On Jul 3, 2017 3:53 PM, "Claudio Prezzi" ***@***.***>
>> wrote:
>>
>>> @openhardwarecoza <https://github.com/openhardwarecoza> If I
>>> understand your code correctly, you use the smoothie sd card via the
>>> mounted device, not over USB serial commands, right?
>>>
>>> —
>>> You are receiving this because you were mentioned.
>>> Reply to this email directly, view it on GitHub
>>> <#40 (comment)>,
>>> or mute the thread
>>> <https://github.com/notifications/unsubscribe-auth/AHVr2-Us8DXWgw1ldDDATMV6PYytzH6Jks5sKPJlgaJpZM4OGlyE>
>>> .
>>>
>>
|
Yes, I also prefer not to use USB MSD as it's better to switch that off for performance reason (also less disconnect problems). I already have the USB implementation (mostly) ready, I just need a react compatible presentation in the frontend. @openhardwarecoza I will check your frontend solution and also the link @jorgerobles posted. |
Cool, all in agreeance (;
I only keep msd on for that initial config tweaking. (; someday we can
have a Firmware config modal too (;
|
Can Smoothie report if MSD is present so we can warn? |
Perhaps: use config-get commands http://smoothieware.org/console-commands#config-get , check the http://smoothieware.org/troubleshooting#how-to-disable-msd-permanently parameters? |
Oops all this sd talk should've been in #30 Oh well. Sidenote, fixed a little of my random disconnects by throwing out the Nexbook and stealing the wifes old Asus for the workshop. But that has allowed me to reproduce the original issue in this thread reliably: Run a mill job (note still an issue on latest build downloaded this morning, and since its a different PC thats also eliminated some...) The only thing i dont have nailed down is why it doesnt always happen. But its probably two thirds of the time |
Strange. When we abort a job, smoothieware should go to alarm state wating for the alarm clearing by clicking abort again. But it should not accept any moves while in alarm state. |
Typo. Clear all, was Clear Alarm. It doesnt move while in alarm. The first move after taking it out of alarm, has the weird XY in addition to the requested Z |
Ruined another $20 chunk of aluminum today because of this bug :( |
I too am hit with this bug and I have spent time trying every scenario I can think of; it happens whether USB connected, ESP2866 connected or serial (USB<->TTL serial connected to Smoothie running the latest Smoothie firmware. An example from the log file: INFO: Connecting to USB,/dev/cu.usbmodem14211,115200 I am not sure WHY the port was closed, but I am fairly certain LW closes it as Smoothie is not closing it on its side. If is possible for lw to identify why it closed the port??? |
@DouglasPearless The message INFO: Port closed is caused by a close event we get from the driver, which means we don't close the port, it's closed by the os or the other side. I can see from your log, that you are not using the CNC firmware as we expect. Not sure if this makes any difference, but could you try again with the CNC version of Smoothieware? You could also try to disable MSD in config.txt. |
I will try the CNC version and will separately disable the MSD as well, but I won't be able to do that for several days :-) |
@DouglasPearless No problem, take your time. |
Not exactly sure when or why this happens, too random to put a finger on it yet. But has always been an issue for me:
The text was updated successfully, but these errors were encountered: