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
UI stopped updating in the middle of job #134
Comments
Looks like your UI stop updating after sending 13,4xx lines. I just ran your "3D Finish 1.gcode" file using 1.8.17, and the UI is still running well. I will test it again with the electron version. BTW, I noticed a scrolling issue in your G-code widget, I'd recommend you upgrade cncjs to 1.9.0-alpha.3, it includes significant improvements for G-code display, and reduces much CPU usage and improves web performance. |
The query status command (?) will be fired again only when the controller has received status report Related source codes: However, I'm not sure for what circumstances the controller may not receive the status report line. A possible way to workaround this would be to add a timestamp to check the last time it received status report, if it has been last for 5 seconds, it will query status report (?) again to trigger updates. |
@cheton I have to run two more of these jobs today, I will run the first one and try manually sending a ? command. The second I will run in the 1.9.0-Alpha3 release. |
It happened on one of the jobs I ran today. Issuing a ? command did not start the refresh again. |
Sending a ? command from the Console widget to resume status report will take effect only when the server just stopped querying status, which means you cannot see request / response messages from the terminal. You can run If your browser's websocket connection was stopped caused by uncertain reasons, you can try refresh the browser to connect to the server again, it won't stop a running job unless you click on the Close button on the Connection widget. |
Based on issue #133 I would venture a guess that this is hardware related - either interference or faulty cabling/components. I connected my Arduino directly (no USB hub) to my Raspberry Pi with a shielded ferrite-core USB cable (Tripp-Lite U023-006) and all of my similar issues went away. |
@andrewismoody I am not quite sure I would agree. The symptoms between the two issues are quite different. I am not getting the gcode errors you are receiving. Even when the ui stops updating for me in the middle of a long job, the job still completes perfectly, which would mean the sender and arduino are in sync as far as the buffer goes. The usb cable I am using has a ferrite core, and I am connected directly into the tablet I use to run cncjs. As a side note, if you are already using an rpi to run your arduino, you might be interested in this: http://wiki.protoneer.co.nz/Raspberry_Pi_CNC I have version 2.11 of the hat, and started setting up my rpi this weekend. |
I see. Maybe I should have watched your video before making assumptions. |
@liqdfire I forgot to say thanks for the suggestion on the RasPi hat. Currently I run my CNC and 3D Printer from the RasPi, so I think I'm going to keep the Arduino separate for now. Also, it's already set up and I'm trying not fix what isn't broken. There are plenty of broken things that need attention. :) |
This issue should be resolved in v1.9.0-alpha.4. I will publish a new alpha release to NPM later. |
Great, I should be able to give it a run this weekend. |
I ended up switching out my windows 10 tablet for an rPi setup. I did install beta-1 and had no issues with the UI not updating. |
Running 1.8.16, Electron version
Windows 10
Running a 2 part 3d job. The roughing pass completed perfectly, though only a 10 minute job.
Part way through the 2 hour finishing job the ui stopped updating.
Here is a video, shows the job is still running and the ui not updating: https://www.dropbox.com/s/jodkg7hvcffocwj/2017-02-18%2019.40.50.mp4?dl=0
Here are the two gcode files:
https://www.dropbox.com/s/k82m5ba359gantn/3D%20Roughing%201.gcode?dl=0
https://www.dropbox.com/s/m1ybu9ui1a1lo2a/3D%20Finish%201.gcode?dl=0
The text was updated successfully, but these errors were encountered: