Commit Graph

10 Commits

Author SHA1 Message Date
8e3b7a29e5 Cold-boot: 4 optimisations cutting bbctrl listen by ~8s on the Pi
Measured on onefinity.local (Pi 3, Raspbian Stretch, bbctrl 1.6.7).

Before -> after:
  bbctrl listen           boot+20.6s  ->  boot+12.4s   (-8.2s)
  host -> /api/config/load    28.2s   ->     22.5s    (-5.7s)

The 4 changes (each independently revertable):

1. scripts/bbserial-rebind.service: do the bbserial unbind + reload
   in a dedicated unit ordered Before=bbctrl.service, instead of in
   rc.local AFTER bbctrl is already listening on the serial port.
   Eliminates a full bbctrl restart mid-boot.

2. scripts/bbctrl.service: drop "After=network.target". bbctrl talks
   to the AVR on a local serial port and to the LCD on I2C; it does
   not need DHCP / network-online to come up. Also adds explicit
   ordering after the new bbserial-rebind unit.

3. scripts/rc.local.fast: trimmed rc.local that no longer touches
   bbserial and backgrounds 'startx' so chromium launches in
   parallel with bbctrl rather than after rc.local finishes.

4. src/py/bbctrl/Planner.py: lazy-import camotics.gplan. Costs ~130ms
   on cold cache, deferred from import-time to ctrl.mach init.

5. (bonus) src/py/bbctrl/Log.py: tolerate FileNotFoundError in
   _rotate(). The improved boot path exposed a pre-existing log
   rotator bug that crashed bbctrl on first start when bbctrl.log.16
   was missing.
2026-05-01 10:07:23 +02:00
David Carley
3710a3e1f6 Fixed a disconnect but, and unhoming on failed probe 2021-10-21 19:25:27 -07:00
David Carley
a35890e15a Checkpoint 2021-10-10 18:42:14 -07:00
OneFinityCNC
c56b290c05 Merge pull request #47 from dacarley/fusion-motion-control
Fixed issues with fusion gcode motion control
2021-03-31 23:29:33 -04:00
David Carley
e63d8db595 Fixed issues with fusion gcode motion control 2021-03-30 11:34:48 -07:00
David Carley
a46230656e Made it far less likely for the UI to lock up 2021-03-23 21:19:45 -07:00
David Carley
df4137b1ce Tweak to homing procedure 2021-03-04 12:51:11 -08:00
David Carley
1b32eeacc4 A little dead code cleanup 2021-03-02 10:20:16 -08:00
OneFinityCNC
a0ae0a4e30 1.0.6 Firmware release. More Github cleanup. 2021-02-28 00:58:19 -05:00
OneFinityCNC
24dfa6c64d Verison 1.0.3 Release
Based on Buildbotics 0.4.14
2020-08-27 23:20:27 -04:00