#internal error on G28 command

35 messages · Page 1 of 1 (latest)

normal sonnet
#

Hi, guys, I'm back again! 😫

I've calibrated my probe, but now when I try to home Z I'm getting an internal error on the G28 command.
Scanning the web, I've seen a coupe of articles about this, and one where the solution was the homing speed of Z - this was back from 2019 though, and my printer would home fine before installing the idm scanner.

Could someone please have a look over my klippy log with me and try to find the issue?

TIA

rare zodiac
#

so there are a couple of different tracebacks in that log

#
  File "/home/mks/klipper/klippy/gcode.py", line 211, in _process_commands
    handler(gcmd)
  File "/home/mks/klipper/klippy/extras/safe_z_home.py", line 79, in cmd_G28
    self.prev_G28(g28_gcmd)
  File "/home/mks/klipper/klippy/extras/homing.py", line 271, in cmd_G28
    kin.home(homing_state)
  File "/home/mks/klipper/klippy/kinematics/corexy.py", line 64, in home
    homing_state.home_rails([rail], forcepos, homepos)
  File "/home/mks/klipper/klippy/extras/homing.py", line 188, in home_rails
    hmove.homing_move(homepos, hi.speed)
  File "/home/mks/klipper/klippy/extras/homing.py", line 85, in homing_move
    wait = mcu_endstop.home_start(print_time, ENDSTOP_SAMPLE_TIME,
  File "/home/mks/klipper/klippy/extras/idm.py", line 1334, in home_start
    trsync.start(print_time, self._trigger_completion, expire_timeout)
TypeError: start() missing 1 required positional argument: 'expire_timeout'```

This one, which is complaining you're missing a timeout statement for the IDM
#

and then this one

Internal error on command:"G28"
Internal Error on WebRequest: gcode/script
Traceback (most recent call last):
  File "/home/mks/klipper/klippy/webhooks.py", line 256, in _process_request
    func(web_request)
  File "/home/mks/klipper/klippy/webhooks.py", line 436, in _handle_script
    self.gcode.run_script(web_request.get_str('script'))
  File "/home/mks/klipper/klippy/gcode.py", line 229, in run_script
    self._process_commands(script.split('\n'), need_ack=False)
  File "/home/mks/klipper/klippy/gcode.py", line 211, in _process_commands
    handler(gcmd)
  File "/home/mks/klipper/klippy/extras/safe_z_home.py", line 79, in cmd_G28
    self.prev_G28(g28_gcmd)
  File "/home/mks/klipper/klippy/extras/homing.py", line 271, in cmd_G28
    kin.home(homing_state)
  File "/home/mks/klipper/klippy/kinematics/corexy.py", line 64, in home
    homing_state.home_rails([rail], forcepos, homepos)
  File "/home/mks/klipper/klippy/extras/homing.py", line 188, in home_rails
    hmove.homing_move(homepos, hi.speed)
  File "/home/mks/klipper/klippy/extras/homing.py", line 85, in homing_move
    wait = mcu_endstop.home_start(print_time, ENDSTOP_SAMPLE_TIME,
  File "/home/mks/klipper/klippy/extras/idm.py", line 1334, in home_start
    trsync.start(print_time, self._trigger_completion, expire_timeout)
TypeError: start() missing 1 required positional argument: 'expire_timeout'
MCU 'PITB' shutdown: Command request```

which is more or less complaining about the same thing
#

some of this points to the IDM module perhaps being out of date

normal sonnet
#

Thanks - I found this bit in the log and looked up the type error on google - it said about missing parenthesis, so I tried adding them around expire_timeout and it didn't change anything. I wish I understood these logs and the coding behind it 🤣

normal sonnet
rare zodiac
#

it's just a theory from having seen this error before, i'm afraid

normal sonnet
#

I like theories, it's something to work with! 😄 I will try to update the software, however, my IDM scanner is showing as V3 which is the lastest one as far as I'm aware

rare zodiac
#

do you have a link to the IDM code? all i can find at the moment is 404ing

normal sonnet
#

https://github.com/Killajoedotcom/IDM?tab=readme-ov-file#3-configure-klipper-for-idm This is one source, another is https://cartographer3d.com/ and from looking at the top of the idm.py file they've stolen the Beacon code

Cartographer3D

The future of 3D printing, The Cartographer Probe. Designed for the discerning 3D printing enthusiast and professional alike, our Eddy Current displacement sensor elevates your printing experience by delivering unparalleled accuracy when scanning your 3D printer’s bed surface. Achieve print perfection every time.

GitHub

The translated instructions for the IDM-Scanner AliExpress Knockoff - Killajoedotcom/IDM

rare zodiac
#

yeah, the github repo that first link points to for the install is empty/gone/hidden

#

and yes, carto lifted the beacon code without attribution initially

normal sonnet
rare zodiac
#

i think it's probably worth attempting an update as best you can

normal sonnet
#

Do you think it would be a good idea to remove all the IDM stuff on my Pi side of the printer and redownload from the link I was given? I'm struggling to find any information on updating the USB version, so thinking I should reinstall from the source and see what happens

rare zodiac
#

i think that's reasonable, as long as you have a good backup

normal sonnet
#

Ah sod the backup, at this point I just want to pull it out and stick it back in again as it were hahahaha

#

to uninstall would I just use the rm -rf command?

rare zodiac
#

targeting the idm directory, yes

normal sonnet
#

Thanks

#

Right, I've reinstalled it using the gitee link, I'm now just waiting for it to reboot

#

Same error!

rare zodiac
#

the other thing may be updating the firmware on the probe itself

normal sonnet
#

Yeah, which a) I don't know how to do and b) they say to download from the cloud drive, but I have no idea what they're on about - can't see a link to it

rare zodiac
normal sonnet
#

That describes updating for CAN - I have a USB version

#

Managed to find the mainfirmware - the last update to that on the Gitee was 6 months ago, as previoulsy mentioned V3 is the latest and that's what my scanner is showing in Mainsail

rare zodiac
#

Hmm. I've seen you made a post over on the carto server. will have to see if you get responses there, or if someone with direct experience is looking here

normal sonnet
#

yeah, I found their Discord and added myself earlier after seeing on here someone had the same issue but received no response - I wasn't expecting anyone to jump on in here, so thanks for at least trying - I really appreciate your time and input!! 😄

#

Just had the most vague response in history from the Cartographer 'designer'

normal sonnet
#

Yeah, no help there - been told to speak to my vendor 😤 so this, as of current, remains open

normal sonnet
#

SOLVED - if anyone else ends up with this problem - check for a line in your idm.py file stored in klipper/klippy/extras/ that has "expire_timeout" without a closed parenthesis. It's probably indented on the line below, this will need to be placed directly after expire_timeout and then it will home 🙂

rare zodiac
#

Ooo good find