farmbot_os icon indicating copy to clipboard operation
farmbot_os copied to clipboard

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

Open jsimmonds2 opened this issue 4 years ago • 10 comments

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

jsimmonds2 avatar Jan 08 '20 09:01 jsimmonds2

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.

RickCarlino avatar Jan 08 '20 15:01 RickCarlino

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

jsimmonds2 avatar Jan 09 '20 04:01 jsimmonds2

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

RickCarlino avatar Jan 09 '20 13:01 RickCarlino

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

RickCarlino avatar Jan 09 '20 19:01 RickCarlino

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

jsimmonds2 avatar Jan 09 '20 23:01 jsimmonds2

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.

RickCarlino avatar Jan 10 '20 00:01 RickCarlino

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 avatar Jan 10 '20 00:01 jsimmonds2

@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 avatar Jan 10 '20 01:01 jsimmonds2

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 :-| )

jsimmonds2 avatar Jan 10 '20 05:01 jsimmonds2

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.

RickCarlino avatar Jan 10 '20 13:01 RickCarlino