-
Notifications
You must be signed in to change notification settings - Fork 4
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
no able to use with GRBL 1.1 #27
Comments
I do not have experience with grbl but I think I will need to flash it on something to test it better with sandypi... (#21) I searched online and I can see error:9 may be related to homing problems... Are you sure the board is working correctly? If you didn't already try to use another software like repetier host. This way I can be sure the problem is within sandypi and not about your build settings |
Hello. No my GRBL works perfectly. I use it with cncjs already. I don't know what don't work but normaly, after the connection, Grbl send to the uart all $ code and his value! and that I cannot show with sandypi |
Ok, I will have a look when I can. Thank you for reporting 😃 |
I've got some time to check it out. I created a new branch with a fix. If you can test it for me, I will merge it to the master when I'm sure it's working. To run the new code version from the branch:
Furthermore, looks like grbl doesn't require the checksum for the line. I added a checkbox to disable it directly from the sandypi settings, next to the port/baudrate Still the software is not setup for thr files so I think you won't be able to use sandypi yet. Let me know if you can make it work with some manual gcode commands (like homing, G0 Xsomething, etc) |
Hu. You're a master...If I'm able to put the new branch with commande line
(I'm not a master in commande line) I will test it tonight!
No I you GCODE file. But because I'm using a scara robot, I need to export
thr file from sandify and run a small python software to make a .gcode file
compatible for scara. So yes I will be able to work with sandypi. Just the
small widget will not work but that is not a priority....
Will keep you in touche if it’s work😀
Le dim. 31 janv. 2021 à 13:55, Luca Tessaro <notifications@github.com> a
écrit :
… I've got some time to check it out.
I installed plain grbl 1.1 on an Arduino UNO i had around but I couldn't
try the real hw, only the communication with the board.
I documented myself about grbl a little bit more and I can see it uses
special commands that starts with "$".
The problem was that the software was adding always the line number, also
for the $ commands.
I created a new branch with a fix. If you can test it for me, I will merge
it to the master when I'm sure it's working.
To run the new code version from the branch:
(env) $> git pull
(env) $> git checkout grbl_support
(env) $> git pull
(env) $> sudo sh install.sh
(env) $> sudo python3 start.py
Still the software is not setup for thr files so I think you won't be able
to use sandypi yet.
I might have some spare time this week. I will see if I can at least start
to have a look at them... I think it will not require enourmous changes...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#27 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANLNNJ3ZE7SEXU3P3SWEG63S4VHLRANCNFSM4WZQZXBA>
.
|
Hello Bellow is what I have done: I think the installation was ok but may be you can see something. I have done it 2 time to be sure! |
So, I had a look at the log and it is quite strange.... Try to run If this is not working try with:
Let me know if one of the two works... Additional detail: if the server starts, the interface may not load and it will get stuck on a gray page... In this case clear the browser cache and data or follow the instruction in the "Update" section of the readme |
Yes, the sw sends some periodics command to check the status of the device (only solution I found to fix a problem I found some time ago)... I think the first problem here is the checksum: in the first picture (settings page) on the left of "save and connect" there is a switch: turn it to be grey to disable the chechsum (first problem should be fixed: you should not get error:20 anymore) Then, when you write a command like "G1 X2" to move an axis, do not put the dollar sign but write it as I did here. If you get error:9 I think you need to use "G28" or "G92 Xsomething Ysomething" to home the axis before sending the G1 command... Like this it should work... Let me know |
So First I disable the checksum but I have still error 20 that come sometimes Second: I will test now a drawing |
so puting F20 in the box "command before drawing" All start good. but after few time "40sec" it stop and in the manual command line I see it's because error 20 is showing! this Gcode works well so it don't come from there! The strange thing is the drawing restart by itself after few sec/min.... the checksum is desable! this is the Gcode: and this is a copie of the command line from sandypi hope it help you |
UPDATE:
Tell me if I can help by doing some test Here is a guide line for grbl |
Thank you for the testing! 😄
I think it makes sense... I wanted to keep separate options because the system may be more flexible. On the other hand, it is not only the checksum as you sad (emergency stop, etc...) so to make it easier for the user I will put a select menu from which it is possible to choose the firmware and that will setup everything (I will prepare Marlin and grbl for the moment, in the future it will be easy to add more) I'm planning also to put a select to choose between cartesian, polar, scara and other options... This will require some work to create a correct drawing preview both for the uploads and the manual control... Not something I will be able to do in only few days...
I had a look at the file and I think the last line may have something to do with the machine stopping... It includes a comment in the command but my software is not setup to recognize it (it checks only full line commands, not in line commands)... I will add a check to remove possible inline commands before sending the gcode
I think I know already where is the problem... I will fix it as soon as possible and let you know to try out if it fixes the other problems (drawing reliability and start of next drawing of the queue)
I put them there in the first version of the frontend but now that it is written in react I think I forgot to test them even on Marlin 😬 I will try to put it to work together with the select button fix... Let me some time to arrange the fixes, I will let you know when and how to test the changes 😉 |
Hi. Thanks for your reply. For your information, even after erasing the last line, at the end if the drawing, sandypi keep in stat now drawing and stop drawing doesn't work! Thank again for your work |
Ok, I think I fixed everything in the list (up to this moment at least) When you have the time, can you try the update for me? I'm still using a hardware-less board so I don't know really if it is working correctly 100%. I fixed the stop issues and now it is working correctly also with the playlists.
I hope this one fixed by itself with the other stuff because otherwise I don't know what I can do without real HW. In the future I will for sure put together something (maybe a scara or polar build?) To run the new update:
If it is running but it doesn't show up in the browser clear the site cached data or run |
Hello Thank you for all the work. Bit I have a problem to test: So I have reinstall all the raspberry from the standard image, and install you installation following the master branch. Connection was ok. but after maked the installation again of the grbl-support, the wer server doesen't work again.... Have you touch something here? of course I have tested to clear the cache and test on many laptot! bellow the code when I try to start the server:. pi@raspberrypi:~/sandypi $ sudo python3 start.py
To run the server use 'ip:5000' in your browser with one of the following ip adresses: ['127.0.0.1', '192.168.178.102'] Logger 'app' level: 30 (WARNING) Error: While importing "server", an ImportError was raised: Traceback (most recent call last): |
Can you explain better what you do and what happened? With picture also if it happen again if you can To fix the error above use |
HI https://www.youtube.com/watch?v=hU4Mf-n0wJ0 UPDATE: |
Really strange!
I will update the requirements file and let you know to try again (that way
it must work)
One last try if you want is to run "pip3 install dotmap" without the sudo
word (or python3 -m pip install dotmap)
You can also wait for the update... I will do it this evening when I get
back home
Il mer 3 feb 2021, 08:31 vincentbraillard <notifications@github.com> ha
scritto:
… HI
So I test install manualy dotmap but no success to strat the server... I
have made a screenshot video so you can check what happen. it's a little
bit long but you can scroll the video...
https://www.youtube.com/watch?v=hU4Mf-n0wJ0
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUZZGYQRRMQSI2WANVCOV3S5D3WJANCNFSM4WZQZXBA>
.
|
Hi. don't take to much time for that, I make it work now.... |
I was on my phone when I answered and I couldn't see very well the video... No I had a look at the commit and the file is correct actually. I think the problem is in the "sh install.sh" command. I need to update the readme file to use "sudo sh install.sh" instead I think.
How did you manage to fix it? |
Hi. So: -Stop drawing: work well now even if we need to refresh the page to clear the "now drawing"
DO YOU WANT SOME MORE TEST?
Thank again and tell me if you want some particular test. I will continue test with new short usb cable! The following draw has been done with sandypi and scara |
Thank you man! You are doing a great job! 😄 From what I can see in the video I think it is really a comunication issue. Not sure if it could be the cable or if the serial communication is not managed correctly by the software. The drawing stops because sandipy is waiting for the buffer to be cleared but it doesn't receive all the acks and the messages accumulates. My build is much more reliable under the communication point of view (don't know why really). It happens sometimes that one message is lost and the buffer get stuck but it happens rarely. On the other hand, on Marlin I cannot ask for a status report (or better, I looked for it but I didn't find a way of doing it) so the only thing I can do (at least at the moment) is to manage the buffer with the acks that means I need to keep a longer timeout to avoid having errors of full buffer. For sure I need to experiment more with the part of the software that feeds the gcode but it is not really easy and it requires to have the hw on hand (which can be difficult with my job, I travel a lot). I will add a check to the firmware type and reduce the timeout value for grbl (for the moment at least). For the moment I updated the timeout in the last commit. Should be enough to run:
If after this one the board is drawing without stopping I will close the pull request and the issue (to be consistent with the issue title) I updated the instruction in the readme file (only in the branch at the moment) to use the sudo command on the installation part. I looked around and it is really related to how sudo works and there are some workarounds but they require some testing and at the moment I prefer to focus on making the sw usable (at least for you with grbl 😉 )
I will have a look
I'm going to ask him if I can use it in sandypi to load the files directly there. I will add the name temporarily.
Already on the list 😉
I will put a button in the queue page
NICE! 🔝 |
Thank man... If you want to see the python code to make a scara from thr file so you may be use it to make a reverse to draw! Will make some more test following days concerning serial issues! |
I changed my mind already... The fix I did yesterday it's going only to
shorten the time the board is stopped... I will fix it better this evening.
About converting thr files I see jeff is adding it directly to sandify... I will just include the preview selection, not the conversion...
https://forum.v1engineering.com/t/polarsandtisch/20102/61?u=texx
Il mer 3 feb 2021, 23:30 vincentbraillard <notifications@github.com> ha
scritto:
… Thank man...
If you want to see the python code to make a scara from thr file so you
may be use it to make a reverse to draw!
thrToGcodeforScara.py.txt
<https://github.com/texx00/sandypi/files/5921925/thrToGcodeforScara.py.txt>
Will make some more test following days concerning serial issues!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUZZGYSJVJTLIHDX33HTLTS5HE6ZANCNFSM4WZQZXBA>
.
|
Hi. so even better ;-) I don't know how to pull new request so I Write it here! I forgot to tell you yesterday some interesting feature to add!
Thank, I will test yours update this night! |
I have news! I finally managed to add a preview for scara robots... I did this in another branch because I didn't know if the grbl branch was good enough... You can test the new changes with:
I added some additional settings that needs to be setup correctly to work with the scara... I put the values from the conversion script as a default. I will add some desciription and a wiki about how to set those settings in the coming days, but first I need to upgrade the settings page in the background and fix the pagination which sucks at the moment. Let me know if it works! I did also some small changes to the connection with the board... Let me know if it works better or not... (when you have some time of course, no hurry) EDIT: quick note: I removed the thr support for the moment. You still need to use the converter to load the file as a gcode file. |
Hello Sorry for the small delay. I have done a lot of test to try to understand why it's doesn't work. For the GRBL serial issues. SO the last update Was no very better. When the drawing stop, it is impossible to restart, May be it was better when it restart by itself like before. On thing stange may be can give you a idea is when connecting, GRBL sand always the GRBL version follow with all parameter value. And this I don't see when I connect. On the manual control windows, I still see every 10 sec around an "error 24 - More than one g-code command that requires axis words found in block." Will try now the drawing |
I have been working on the communication today... Today I reworked quite a lot the part about the connection: it was a little messed up but with marlin it was working fine. Now it is much more under control and in my case with grbl is giving only few errors now and then but I think the problem there is really comunication issues due to the communication and I cannot improve them more than this unless I build a piece of hw to test it out better. Nonetheless, with this update the result should be much better! (I hope at least). I fixed also the stop button. The problem with grbl is that it doesn't have a checksum like marlin does. For this reason it is much more difficult to handle communication errors... If it happens again that the controller doesn't get a value correctly it will still use it moving the axis in the wrong position. Anyway, this update should be much better I hope... I had some troubles with small geometries before also on marlin but with this version it's much more stable/smoother/faster. Still the scara configuration uses a lot of commands in a short time so I think it may be even more sensitive to this problem so let me know... I published the update to the previous branch:
In this update I fixed also some other bugs: I hope the installation is going to be successful (I tested it on my raspberry so it should work fine)
Don't worry! Do this only when you have the time, it's not urgent, there is no life in danger 😉 |
Hello So I install and test the drawing_preview branch. And GRBL communication work way better. I test it this afternoon. I don't know will installing the drawing_preview branch it modify also the GRBL communication but it work way better. Sometime it cut during less than 1sec and restart. Concerning Drawing:
I thing you can merge to master all improvement because it work well now! And so you can keep going you todo list! Tank you again |
Perfect! If you find more bugs please let me know...
Good idea! I need to change few things to make it work though...
You are right, at the moment it is possible to do this from the drawing list but not from the playlist directly... I will think about it.
I will have a look |
UPDATE I Have restart the Raspberry and GRBL doesn't work anymore. Don't now if we need to restart it at each update butnow during a GRBL drawing, it stop. in manual windows there is no error and in the command windows I can see that when it stop! ERROR:werkzeug:Error on request: PLEASE STILL DON'T MERGE |
Hello again
I wanna to test with my board GRBL and it seem to no work. Following error is showing:
N2 M110 N2 *93
N3 M220 *0
Grbl 1.1h ['$' for help]
[MSG:'$H'|'$X' to unlock]
error:9
The text was updated successfully, but these errors were encountered: