@ian_ab Observation: if you leave setup open after clicking on Test, Maslow will lose connection after a few seconds

Seems to be consistent. Entering Setup and Test then not closing setup menu causes the connection to be lost after a few seconds. Can anyone confirm? Refreshing allows reconnection.
When in State Ready to Cut

1 Like

I was not able to replicate this.

The thing that comes to mind is that the test function is checking the latest firmware version on github and I wonder if something there could be causing it to time out.

What are you seeing for these lines when you run test?

[MSG:INFO: AutoUpdate: API Content-Length: 214]
[MSG:INFO: AutoUpdate: API redirect location: https://api.github.com/repositories/460089067/releases/latest]
[MSG:INFO: AutoUpdate: Following API redirect to: https://api.github.com/repositories/460089067/releases/latest]
[MSG:INFO: AutoUpdate: API Content-Length: 10697]
[MSG:INFO: AutoUpdate: Already running the latest version or newer (v1.17)]
1 Like

I think you identified it

1 Like

Is it still failing for you? Are you able to make it fail sometimes and not other times?

I wonder if this could be related to some of the other connection issues that we’ve been seeing

Ian Abbott wrote:

Seems to be consistent. Entering Setup and Test then not closing setup menu
causes the connection to be lost after a few seconds. Can anyone confirm?
Refreshing allows reconnection. When in State Ready to Cut

hmm, I don’t see that problem

David Lang

I think it was because I am running a non-standard version and it it’s taking too long reading the website, when that popup is open after clicking the test button. We should probably close that popup anyway after clicking test as you need to see what it returns in the serial log.

1 Like

Close calibration popup when Test button clicked #729

I got copilot to generate this which works the same as the Calibration and Apply Tension buttons to close the popup after 1 second, which seems to have fixed it.
firmware.bin (1.9 MB)
index.html.gz (130.7 KB)

1 Like

Great, I’ll merge that in, but I think that it is concerning that an issue with checking the github can cause a disconnection. I think that ultimately it’s going to be important to track down the root cause there and get it fixed.

This only adds closing popup for Test to the existing functionality, Find Anchors and Apply Tension, it does not affect other buttons. I tested for that.
On the underlying issue, I think it is to do with the API timeout when using non release versions.
I remember it was comparing to V1.15 and passing with a later than that.
Test
Index.html Version: v1.17-29-g0e29c775-dirty
[MSG:INFO: Firmware Version: v1.17-29-g0e29c775-dirty]
[MSG:INFO: I2C Timeout: ]
[MSG:INFO: 10]
[MSG:INFO: All tests passed on Top Left]
[MSG:INFO: All tests passed on Top Right]
[MSG:INFO: All tests passed on Bottom Left]
[MSG:INFO: All tests passed on Bottom Right]
[MSG:DBG: AutoUpdate: Checking for new release…]
[MSG:ERR: AutoUpdate: API request timeout]

This is what I was getting with the other software version

Replace static “Idle” text with clickable state-dependent action buttons #713

Test
Index.html Version: v1.17-30-g03d3dae9-dirty
[MSG:INFO: Firmware Version: v1.17-30-g03d3dae9-dirty]
[MSG:INFO: I2C Timeout: ]
[MSG:INFO: 10]
[MSG:INFO: All tests passed on Top Left]
[MSG:INFO: All tests passed on Top Right]
[MSG:INFO: All tests passed on Bottom Left]
[MSG:INFO: All tests passed on Bottom Right]
[MSG:DBG: AutoUpdate: Checking for new release…]
[MSG:DBG: AutoUpdate: API HTTP Status: 301]
[MSG:INFO: AutoUpdate: API Content-Length: 214]
[MSG:INFO: AutoUpdate: API redirect location: https://api.github.com/repositories/460089067/releases/latest]
[MSG:INFO: AutoUpdate: Following API redirect to: https://api.github.com/repositories/460089067/releases/latest]
[MSG:DBG: AutoUpdate: API HTTP Status: 200]
[MSG:DBG: AutoUpdate: Found tag_name: v1.15]
[MSG:DBG: AutoUpdate: Found firmware.bin asset]
[MSG:DBG: AutoUpdate: Found firmware.bin URL]
[MSG:DBG: AutoUpdate: Found index.html.gz asset]
[MSG:DBG: AutoUpdate: Found index.html.gz URL]
[MSG:DBG: AutoUpdate: Found all required information]
[MSG:DBG: AutoUpdate: Latest release: v1.15]
[MSG:INFO: AutoUpdate: Already running the latest version or newer (v1.17)]

I think this was taking too long to process.