Stephan3 / dwc2-for-klipper

A translator between DWC2 and Klipper
GNU General Public License v3.0
160 stars 38 forks source link

"RETRACT" and "EXTRUDE" buttons disabled #52

Closed tealbrains closed 4 years ago

tealbrains commented 4 years ago

Hi Stephan,

Thanks for the excellent work. I have just installed yesterday klipper +dwc2 on an Orange Pi Zero Plus and it is working so far with the usual "beta" issues.

I know that this was brought up in #7 , but I am not sure if that was solved or if it just died because the OP never reported back.

I think this issue is purely related to dwc2 for the following reasons: 1) R&E buttons worked this morning (the temperature of the extruder was 220degC) 2) R&E buttons no longer worked this afternoon (the temperature of the extruder was 220degC) 3) Tried restarting klipper, the printer. Nothing worked. 4) Issuing gcode to extrude 20mm worked using the top bar. 5) After messing with the html code of the buttons by changing styles ( "disabled" and "v-btn-disabled" I think it was), and then refreshing the browser brought the buttons back, and they work again as expected. I don't think it is a coincidence but I could be wrong.

If you need more info let me know. Happy to help.

tealbrains commented 4 years ago

If there is a function that looks at the temperature of the extruder to block these that would be my suggestion. The dashboard was showing the right value, but maybe it gets corrupted somewhere?

Stephan3 commented 4 years ago

@tealbrains

  1. & 2. once webif restarts and or had state "off"(klipper shutdown/mcu failure) the webif needs reload to make buttons work. this has nothing to do with the translator or i did not find the issue. So if you findout which data is missing during "OFF" i can add that. During Off i provide rr_status0 i kept it readable for humans: https://github.com/Stephan3/dwc2-for-klipper/blob/05f75e86b7fcb59ce7d11024eab449cce373c084/web_dwc2.py#L594

  2. restarting klipper works. RESTART and FIRMWARE_RESTART works just as ecxpected

tealbrains commented 4 years ago

@Stephan3 Could this have anything to do with something I read about gcode execution acknowledgement? Today I observed a different behaviour where I pressed "EXTRUDE" once and it worked, but then it kept spinning so I was unable to click again. This could be a different problem to the first post but could be related? I will try running RESTART and FIRMWARE_RESTART to see if that solves the problem and report. Reloading the website solves this issue I just mentioned though, so not sure it's an mcu issue.

killisch commented 4 years ago

I've got the same issue using @blackstumps klipper image for the replicape. not sure how to get it to show the buttons. but the extruder is controlled correctly from a gcode file and i can start a print.

Stephan3 commented 4 years ago

You can add things to the ack needers and chack. Cant tell out the top of my head what commands this botton sends. Try to find a elegant way to send a ack to that button.

https://github.com/Stephan3/dwc2-for-klipper/blob/f2b8ebbc72896c216bb26029c7409ae4edbe4933/web_dwc2.py#L1184

reefwarrior commented 4 years ago

Hi! I seem to have the same problem of not being able to extrude through the web interface :( Any help/update with regards to this? (Both extrude and retract are greyed out)

Stephan3 commented 4 years ago

Try what stated one post above

reefwarrior commented 4 years ago

Try what stated one post above

Brilliant, thank you, it worked. I saw there was a misplaced '""' or something in the line - took the 'wrong' one(s) out, and it works! :)

Stephan3 commented 4 years ago

indeed there is one :D thanks for pointing it out -> fixed