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>
This commit is contained in:
@@ -1,48 +1,33 @@
|
||||
@ECHO OFF
|
||||
REM Network to Computer - Download software updates from network
|
||||
REM Version: 4.0 - No IF EXIST checks, direct COPY
|
||||
REM Last modified: 2026-03-12
|
||||
REM Version: 5.0 - Added EXE copy, removed DATA folder copies (avoid cyclic overwrites)
|
||||
REM Last modified: 2026-03-16
|
||||
|
||||
ECHO.
|
||||
ECHO ==============================================================
|
||||
ECHO NWTOC v4.0 - Download Updates from Network
|
||||
ECHO NWTOC v5.0 - Download Updates from Network
|
||||
ECHO ==============================================================
|
||||
ECHO.
|
||||
|
||||
REM Create local directories (MD is harmless if they exist locally)
|
||||
MD C:\BAT
|
||||
MD C:\ATE
|
||||
MD C:\ATE\5BDATA
|
||||
MD C:\ATE\7BDATA
|
||||
MD C:\ATE\8BDATA
|
||||
MD C:\ATE\DSCDATA
|
||||
MD C:\ATE\HVDATA
|
||||
MD C:\ATE\PWRDATA
|
||||
MD C:\ATE\RMSDATA
|
||||
MD C:\ATE\SCTDATA
|
||||
MD C:\NET
|
||||
|
||||
ECHO (1/3) Copying batch files to C:\BAT...
|
||||
COPY T:\COMMON\ProdSW\*.BAT C:\BAT
|
||||
COPY /Y T:\COMMON\ProdSW\*.BAT C:\BAT
|
||||
ECHO.
|
||||
|
||||
ECHO (2/3) Copying ATE data folders to C:\ATE...
|
||||
COPY T:\Ate\ProdSW\5BDATA\*.* C:\ATE\5BDATA
|
||||
COPY T:\Ate\ProdSW\7BDATA\*.* C:\ATE\7BDATA
|
||||
COPY T:\Ate\ProdSW\8BDATA\*.* C:\ATE\8BDATA
|
||||
COPY T:\Ate\ProdSW\DSCDATA\*.* C:\ATE\DSCDATA
|
||||
COPY T:\Ate\ProdSW\HVDATA\*.* C:\ATE\HVDATA
|
||||
COPY T:\Ate\ProdSW\PWRDATA\*.* C:\ATE\PWRDATA
|
||||
COPY T:\Ate\ProdSW\RMSDATA\*.* C:\ATE\RMSDATA
|
||||
COPY T:\Ate\ProdSW\SCTDATA\*.* C:\ATE\SCTDATA
|
||||
ECHO (2/3) Copying test executables to C:\ATE...
|
||||
COPY /Y T:\Ate\ProdSW\*.EXE C:\ATE
|
||||
ECHO.
|
||||
|
||||
ECHO (3/3) Copying network files to C:\NET...
|
||||
COPY T:\COMMON\NET\*.* C:\NET
|
||||
COPY /Y T:\COMMON\NET\*.* C:\NET
|
||||
ECHO.
|
||||
|
||||
ECHO ==============================================================
|
||||
ECHO NWTOC v4.0 Download Complete
|
||||
ECHO NWTOC v5.0 Download Complete
|
||||
ECHO ==============================================================
|
||||
ECHO.
|
||||
|
||||
|
||||
52
projects/dataforth-dos/session-logs/2026-03-16-session.md
Normal file
52
projects/dataforth-dos/session-logs/2026-03-16-session.md
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user