Files
claudetools/projects/dataforth-dos/session-logs/2026-03-16-session.md
Mike Swanson c3eb709dd5 scc: NWTOC v5.0 - fix test exe deployment, session log
- Added EXE copy from Ate\ProdSW to C:\ATE in NWTOC.BAT
- Added /Y overwrite flag to all COPY commands
- Removed cyclic DATA folder copies from NWTOC
- Session log for 2026-03-16 DF DOS troubleshooting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 18:55:48 -07:00

2.6 KiB

Session Log: 2026-03-16

Summary

Investigated and fixed test station software update issue reported by Kevin at Dataforth. Station TS-8R was not getting 7BMAIN4.EXE updated after running UPDATE and rebooting.

Root Cause Analysis

  1. T:\UPDATE.BAT is a DEPLOY wrapper (initial station setup), not a software updater
  2. NWTOC.BAT (Network-to-Computer) runs on boot to pull updates, but had two issues:
    • Missing EXE copy: NWTOC copied *DATA subfolder contents but never copied EXEs from T:\Ate\ProdSW\ to C:\ATE\ where they actually live on DOS machines
    • No overwrite flag: COPY commands lacked /Y, so existing files would prompt (hang on unattended boot)
  3. Development had staged 7BMAIN4.EXE correctly at Ate\ProdSW\ on AD2, but NWTOC never pulled it

Changes Made

NWTOC.BAT v4.0 -> v5.0

  • Added COPY /Y T:\Ate\ProdSW\*.EXE C:\ATE (new step 2/3) to pull test executables
  • Added /Y flag to ALL COPY commands for silent overwrite
  • Removed all *DATA subfolder copy operations (5BDATA, 7BDATA, 8BDATA, DSCDATA, HVDATA, PWRDATA, RMSDATA, SCTDATA) -- these contain test parameter DAT files that are generated locally on stations and uploaded via CTONW; copying them back down would create cyclic overwrites
  • Removed MD commands for DATA subdirectories (no longer needed)
  • Renumbered steps from 4 to 3

Deployment

  • Deployed NWTOC.BAT v5.0 to AD2 C:\Shares\test\COMMON\ProdSW\
  • Verified CR-LF line endings (DOS compatible)
  • AD2-to-NAS sync will propagate within 15 minutes

Infrastructure Checks

AD2 Ate\ProdSW\ Contents

  • 7BMAIN4.EXE: 283,456 bytes, dated 03/09/2026 (staged by development)
  • 7BDATA subfolder: only DAT files (7BMAIN.DAT, TE1039DT.DAT)
  • All 8 DATA subfolders contain only .DAT files (test parameters, sort tables)

NAS Test Data Transfers (today)

  • 6 stations transferred 73 files (all 7BLOG .SHT format):
    • TS-27 (28), TS-11R (15), TS-3L (11), TS-11L (9), TS-10L (5), TS-10R (5)
  • No TS-8R activity (consistent with Kevin's issue)

TestDataDB (SQLite on AD2)

  • Location: C:\Shares\testdatadb\database\testdata.db (~2.8 GB, ~6.1M records)
  • Import ran today at 18:23, ingested 515 records (Mar 10-13 test dates)
  • No test data from Mar 14-16 (weekend, expected)
  • Backup task running daily at 2:00 AM (successful)
  • NAS sync last ran at 18:45

Pending Actions

  • Kevin to run DEPLOY on TS-8R tomorrow morning (deploys new NWTOC v5.0)
  • After deploy + reboot, NWTOC should pull 7BMAIN4.EXE to C:\ATE
  • T:\UPDATE.BAT (NAS root DEPLOY wrapper) flagged for deletion (not yet removed)

Files Changed

  • projects/dataforth-dos/batch-files/NWTOC.BAT - v4.0 -> v5.0