Skip to content
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

[bug] {X,Y,Z} Axis movement timeout reports from firmware cause FBOS Factory Reset #1105

Open
jsimmonds2 opened this issue Jan 8, 2020 · 10 comments

Comments

@jsimmonds2
Copy link
Contributor

This Forum topic describes the symptoms.

The root problem seems to be in FirmwareReset somewhere, trying to reset the serial device.
Here's a RingLogger snippet showing :farmbot_core app exiting.

image

@RickCarlino
Copy link
Contributor

Thanks for the bug report @jsimmonds2 ! You are two steps ahead of us, it seems. Rory and I noticed this one yesterday- I will be investigating today.

@jsimmonds2
Copy link
Contributor Author

jsimmonds2 commented Jan 9, 2020

Here's more detail from the serial console.
The firmware ( my case farmduino_k14 6.4.2.G commit 1711db1d )

Looks like something ( ? the firmware ) cast a 79 which is not yet handled.
Factory Reset seems a very harsh remedy for this (?)

image

@RickCarlino
Copy link
Contributor

Nice find @jsimmonds2. Fairly certain the first issue is patched up. Will take a look into this one next.

@RickCarlino
Copy link
Contributor

@jsimmonds2 Can you try out v9.0.1-rc3 and see if the issue persists?

@jsimmonds2
Copy link
Contributor Author

@RickCarlino , as soon as AmazonAWS lets me have it, I'll fire up on v9.0.2 Release. Thanks !

@RickCarlino
Copy link
Contributor

How's it looking, @jsimmonds2 ? My device seems to be chugging along after an OTA from 9.0.0 => 9.0.2. Rory noted a "hiccup" of some sort that he could not isolate and which went away after a reboot. Not ideal, but I think that is better than the factory reset issues reported in 9.0.0.

@jsimmonds2
Copy link
Contributor Author

As luck would have it, Amazon AWS currently has some network path issues delivering the v9.0.2 .IMG file to little old me down in AU !

I'll keep on retrying . . also, my attempt to update OTA also failed to run ( quietly ) . . maybe related ?

Thanks for your all-nighter to get a fix out !

@jsimmonds2
Copy link
Contributor Author

jsimmonds2 commented Jan 10, 2020

@RickCarlino , up now on v9.0.2 . . no more crashes if FIND HOME {X,Y,Z} time out,
but CALIBRATE {X,Y,Z} seem to hang forever.

In my case ( just a Raspberry Pi 3 and a Farmduino V1.4 ; no other hardware ) I have TIMEOUT AFTER (SECONDS) set to 10, so it looks like the Axis movement timeout is getting swallowed and not reported or was never issued.
Possibly, the firmware behaves this way if it gets no Encoder data.

Can you test CALIBRATION on a real bot with a shortened movement timeout value ?

My SSH console :

image

@jsimmonds2
Copy link
Contributor Author

Can you test CALIBRATION on a real bot with a shortened movement timeout value ?

@RickCarlino , maybe that's a "never mind" . . I'll go read the firmware code.
Looks like the Farmduino firmware handles CALIBRATE autonomously . . . ( I was sure that command timed out before your v9.0.2 fixes :-| )

@RickCarlino
Copy link
Contributor

Thanks for the updates @jsimmonds2. It seems that you are not the only person experiencing this issue. I did most of my testing on v1.2 (RAMPS) hardware, so it's possible this problem is exclusive to the Farmduino. Details to follow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants