Commit Graph
118 Commits
Author SHA1 Message Date
Cryan209 84fc3ed474 Test secondary codec exchanges latch INT3 without consuming ADC samples 2026-09-21 08:41:24 +12:00
Cryan209andClaude Opus 5 329bbfa8a9 The transmit array holds audio the bridge never reads
_final_line_tx_scan reads the core's whole m_line_tx at the end of a run and
agrees with the core's own counters exactly: A has 5,176 nonzero samples,
peak 22,748, starting at index 27,412 (3.81 s). The bridge consumed indices
0..216,002 of that same array - which includes 27,412 - and saw a peak of
zero.

The same disagreement is on the audible end: B's array peaks at 28,040 while
the bridge only ever saw 17,188, which is also b-tx.wav's peak. The bridge's
view matches the wire in both cases; the array carries values it never read.

Ruled out by measurement: no core rebuild (core_rebuilt_at 0, bootstraps 1),
no trimming (one clear(), no erase/resize/pop_front), not the resampler (the
peak is zero before the conversion), not an out-of-range read, and neither of
the two causes settled earlier.

A vector does not change an index it has already written, so one of the two
measurements is not measuring what it appears to. Not a datasheet question.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 13:11:25 +12:00
Cryan209andClaude Opus 5 f59a824865 Budget a linked pair on line frames; A is still silent with the peer alive
--line-frames N on run and link stops each side once it has exchanged N line
frames. Bridge.line_frame_budget trips Machine.request_stop from
_service_line_frame, so both ends leave at the same point in call time and
--instructions is only a ceiling.

300 frames on a 403 pair: both ends reach exactly 30.00 s of codec time
against 22.82 s and 15.89 s before, both still connected at exit, two
samples left in each buffer. The divergence and the dead-socket drop are
gone.

It changed nothing about the audio. Over 30 s with the peer alive
throughout, a-tx is 240,000 zeros and line_tx_nonzero is 5,176 - the same
count as the truncated run. So the previous commit's conclusion, that A's
silence followed from producing its audio after B had exited, is refuted.
The truncation was real and worth fixing and was not the cause.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 13:04:52 +12:00
Cryan209andClaude Opus 5 a97f71f288 The originate early return fires zero times; the pair stops at different times
Instrumented every branch of _service_line. originate_return is 0 on both
ends, so the guard proposed in the previous commit is exonerated - that
inference was wrong.

What the counters show instead: A calls _service_line_frame 228 times and
only 158 reach the peer, with line.connected False and "the far end closed
the line". The missing 70 frames are exactly 7.00 s, the shortfall measured
before and misexplained as an unshipped tail. A's buffer ends with 126
samples in it, so nothing was stuck.

Both ends stop at 85M x86 instructions, which is 22.82 s of codec time on A
and 15.89 s on B - a 44% divergence in instruction-to-sample ratio. B exits
first and A talks to a closed socket. The answer tone lands at 12.03-15.01 s,
so every nonzero sample A produces is generated after B has gone, which is
why a-tx is silent end to end rather than merely late.

Harness fault, not firmware. A linked pair budgeted on instructions gives the
two ends different clocks on a shared wire.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 13:00:16 +12:00
Cryan209andClaude Opus 5 0925e22b30 Capture the audio: B reaches A sample-exact, A transmits pure silence
b-tx and a-rx are identical - 23,841 nonzero samples, peak 17,188, running
96,273 to 120,113 (12.03 s to 15.01 s), which is the answer tone. The line
transport is not the problem in that direction.

a-tx is 127,200 frames of zero. The core says side A's DSP wrote 5,176
nonzero samples into m_line_tx, so the samples exist and none reached the
wire.

The shortfall is the shipping rate, not the conversion: A's codec produced
182,531 line-equivalent samples and shipped 126,400 of them, 69.2%, leaving
a 7.02 s tail unsent, where B shipped 99.4% and left 0.09 s. A's nonzero
output is 3% of its stream and arrives late, so the whole of it is in the
tail that never went out.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 12:57:16 +12:00
Cryan209andClaude Opus 5 f97b451512 Aim the V.8 counter at the loaded image, gate the overlay publication
The core no longer hard-codes 2.1/2.2's c418: Bridge._v8_dispatch_addresses
finds every copy of the dispatcher by signature over the resident bank and
each declared overlay, and set_v8_dispatch_pcs hands them to the core, which
now also reports which one fired as v8_dispatch_pc.

_find_call_overlay requires the candidate to be pre-linked for the
destination - first branch target == 0xc418 + 0x0d. 2.1/2.2's stored copy
satisfies it; the self-linked resident copies on 302/403 do not, so nothing
is published there any more.

Measured on a 403 linked pair against the old behaviour as a control: every
V.8 number identical, only call_overlay_available moves, so the gate changed
nothing observable. The dispatcher does run, at 0xba0b, 22,471 times - but
@48, @4a and @4d are all zero, so every entry branches to program 0, and
v8_rx_peak and the audio rms are zero on both sides in the baseline too.

Artifacts in artifacts/v8-dispatcher-403-01/.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 12:53:08 +12:00
Cryan209andClaude Opus 5 94b21e3a90 Carry the call-state mailbox measurement into the harness
The port table held one state and called it idle, with a docstring admitting
everything in it was sampled on hook. It now carries the three states the
board has actually shown, and says what 0x58 is: a latch of the last tag the
DSP published, which is why it reads 0x31 after query 07, 0x69 after 62,
0x44 once a call has ended and 0x20 while one is up. 0x60 reads 0x0a against
0x61 the same way.

The idle capture replays through the booted DSP and matches step for step,
the 07-62-07 alternation included, which the earlier capture never ordered
that way. The online capture does not match, and the report says so rather
than smoothing it: a harness with no call publishes the reply a real board
withholds. Why the board withholds it is unmeasured - the sender may be the
datapump's, or the completion may never be serviced - so that half is a
comparison and not yet a model.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 00:52:22 +12:00
Cryan209andClaude Opus 5 ef870fa97e Measure the mailbox reply path idle, against the same board online
Idle on the 4.03d board the replies reproduce the 2026-09-09 values -
0031:0000 for query 07, 0069:0015 for 62 - and alternate, so each is fresh.
Online the request still lands and the reply does not appear at all. Port
0x58 separates the two states on its own, 44 idle against 20 during a call,
and port 0x60 reads 0a against 61.

The link came back with ATD on the originator rather than ATZ, DTR held.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 00:47:34 +12:00
Cryan209andClaude Opus 5 de1c557755 Separate the mailbox request path from the reply path during a call
On the 4.03d board, online, a queued request is delivered - pointers step
0x01B6 to 0x01BC and the ff00 0007 0000 frame sits in the ring - while
ports 0x50 to 0x7f come back byte-identical before and after, and again
across three samples seconds apart. The holding registers are frozen for
the duration of the call, so delivery and reply are worth measuring
separately. Idle, the same board alternated its reply tags, which is what
the eight-hex section above recorded.

The 7.6.7 unit differs here on identical DSP 3.1.2: it moved port 0x58 to
0x31 online. One observation each, and the supervisors are what differ.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 00:41:51 +12:00
Cryan209andClaude Opus 5 0771a37ffc Check the prefix finding against the 4.03d board the port now holds
The FT port came back from the power cycle carrying a different unit -
serial 0009540034268322, the 4.03d board - so the same two commands went to
it. Bare ATG00070000 answers OK there and ATGLK200070000 answers OK too,
which is the other half of the parser finding: 4.03d treats the prefix as
optional where 7.6.7 requires it.

Online, its queue drains to tail = head = 0x01B6 while port 0x58 stays
0x20, where the 7.6.7 unit moved that port to 0x31 and gave the tag. One
observation, and port 0x58 reads 0x20 on both boards whenever a call is up.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 00:38:08 +12:00
Cryan209andClaude Opus 5 6018ff552f Reach the DSP mailbox on 7.6.7, and find what query 62 costs online
The G command is there on the open board's firmware; it just will not
answer without the LK2 prefix, where 4.03d treats that prefix as optional.
The handler is otherwise byte-equivalent. With the prefix, query 07 queues
and answers during a live V.34 call - the frame appears at 0x0198, the
pointers advance six bytes, and the reply tag matches the idle board - so
the concurrency question the doc left open is settled for that query.

Query 62 is another matter: it dropped the call and left the supervisor
refusing AT until power cycled. Recorded as one occurrence.

The subcommand letters are disassembled too, which corrects an earlier
reading here: I is an I/O port read, so the queue pointers it appeared to
return were unmapped ports floating the address low byte. R reads memory.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 00:34:28 +12:00
Cryan209andClaude Opus 5 189adea0ce Restore the stored profile an AT&W overwrote, and the link with it
Writing S0=0 to NVRAM stored the whole running profile, which had drifted
from the original eleven settings - S27 001 to 048 among them, the
bit-mapped register the handshake reads. That is why neither end could
train afterwards, through a power cycle included. The opening capture had
recorded the original NVRAM page, so it went back setting by setting, and
the pair trains again: 33600/33600 V.34+, no blers, no retrains.

Two things the pair taught us on the way. Held DTR is what puts these ends
off hook, &D0 notwithstanding: every attempt that let it drop never
reached the line. And ATI5 prints S00=001 for a stored zero, which ATS0?
and the value surviving a reset both contradict.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 00:20:01 +12:00
Cryan209andClaude Opus 5 5a8e6699c8 Correct the ATG reading, and stop the capture tool reconfiguring the modem
Idle on the same 7.4.16 end, ATG still answers ERROR, so the earlier
commit's conclusion - that an active call was what refused it - is wrong.
Bare ATG is refused too: these two V.Everything supervisors have no G
command at all, and the eight-hex form belongs to the 403 board the
original measurement used. The mailbox holding registers do read live
state: 0058 went 20 to 44 and 005C 0E to 00 when the call dropped.

The tool caused the second finding. These units autobaud, so walking a
rate list left one end at 9600, and an unconditional +++ makes a modem
already in command mode swallow the line after it. It now sends a bare CR
first, escapes only when that draws nothing, asserts DTR and RTS, and can
drop RTS/CTS flow control - both ends hold CTS low while off hook, which
stalls every flow-controlled write.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 00:00:57 +12:00
Cryan209andClaude Opus 5 18d39e7c9c Ask both ends for DSP mailbox state while the call is up
The ATG eight-hex form was only ever measured on an idle board, which
left connected-call concurrency open. Online, both ends refuse it - the
7.4.16 supervisor the original measurement used included - while the
mailbox holding registers stay readable. The short forms are refused too,
so this is the call state and not the digit count.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 23:43:21 +12:00
Cryan209andClaude Opus 5 6bc2d57f6c Capture both ends of the leased-line pair as they sit online
The two Couriers are wired back to back and connected; read their own
account of the link rather than inferring it. The tool escapes with +++,
runs the ATI query set, and hands the modem back to data mode with ATO,
so the capture costs the link nothing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 23:39:58 +12:00
Cryan209andClaude Opus 5 7b1e718f1e Add the two 11430 flash capture attempts
Both units report 20.16 MHz in their own ATI7, which is what the timebase
model later checks its board identification against. The captures themselves
are incomplete - no page is verified in either - so they stand as the record
of the attempt rather than as a usable image.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 22:54:49 +12:00
Cryan209 f364b01531 Add Australian Courier firmware captures 2026-09-14 21:22:11 +12:00
Cryan209 19313a03ef Model C51 8K boot ROM and split SARAM mapping 2026-09-13 23:10:10 +12:00
Cryan209andClaude Opus 5 f00f6e1637 Read the whole 8K again from SARAM: identical
Every ROM reading taken here ran from a kernel at program 0x8000, off-chip, which
is the first item on TI's program-memory protection exclusion list. Two windows
had been spot-checked from a gadget staged in SARAM; this does all eight.

Same sha256, d57bc46e, across all 8192 words. Protection is not suppressing
anything on this part and the off-chip reads are the real ROM.

DARAM is not a usable alternative and the artifact says why: B0 is itself on the
exclusion list, and B1/B2 cannot be reached from program space at all - only B0
maps there, via CNF at 0xFE00-0xFFFF. SARAM at program 0x2000-0x23FF is the only
on-chip site that is both executable and unnamed by the exclusion list.

Recorded with what the null result cannot show: it does not separate "protection
is off" from "protection is on but SARAM is exempt". A read hosted in DARAM B0
would, and is not run, because nothing depends on the distinction.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 22:52:52 +12:00
Cryan209andClaude Opus 5 08cf5400a9 The 20 MHz board's full 8K, and the 0x0F80 block is not mask content
Both boards now read in full. The 20.16 MHz unit's memory test is word-for-word
identical to the 25 MHz one - PMST 00b0, MP/MC 0, 0x0800 and 0x1800 ignoring a
write and 0x2400 following it - so both parts are 'C51.

The programmed ROM is byte-identical on the two parts. The entire difference
between the two 8K images is 96 words at 0x0F9D-0x0FFC: the 25 MHz part answers
from 0x0F80 with a copy of the block at 0x1F80, and this part returns pure array
pattern there.

That corrects the previous commit, which read the two copies on the 25 MHz board
as the mask placing one at the end of each 4K page. It does not - the mask
carries the block once, at 0x1F80. Neither reading is a fluke: each board was
read through a kernel at external 0x8000 and through a gadget staged into on-chip
SARAM, and on each board the two paths agree. A decode difference on the top row
of the array is the likely shape and is not established; nothing depends on it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 22:32:22 +12:00
Cryan209andClaude Opus 5 e04d307142 Note the sweep's clobbered first sample
The 21-address sweep writes to data 0x1000, which is ROM_DUMP_BUFFER, so its
PMST-as-found sample is overwritten by the test pattern. One word; the address
rows are unaffected and run-a/run-b carry the real PMST.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 22:05:47 +12:00
Cryan209andClaude Opus 5 ec9f179200 Unprogrammed, checked from SARAM rather than assumed
Every ROM read here ran from a kernel at program 0x8000, off-chip, which is
precisely what TI's program-memory protection blocks from reading on-chip program
memory. So "the rest of the ROM is unprogrammed" was not yet a safe claim.

Re-read from on-chip code. --via-saram existed for this and was recorded as
returning nothing; the reason is now clear. Its gadget sat at 0x0900, picked when
the part was believed to be a 'C50 with 9K of SARAM from 0x0800, and on a 'C51
that address is ROM - the gadget was never written and the call ran ROM.
ROM_DUMP_GADGET moves to 0x2000, which is where the SARAM actually is.

0x0000-0x03FF and 0x0C00-0x0FFF both come back byte-identical to the off-chip
reads. The first is the positive control: a gadget that had not landed would have
hung on garbage instead of returning the vector table. Protection is not hiding
anything, and the empty span is mapped rather than absent - 0x0F80 and 0x1F80
answer with stable code inside it.

The sweep that placed the SARAM is its own result. Writing data 0x0800 and
reading it back from program 0x2000, and data 0x0A00 from program 0x2200, puts
the 1K SARAM at program 0x2000-0x23FF and data 0x0800-0x0BFF - two addresses for
one physical memory, which is the 'C51 map and independent confirmation of the
part. External RAM in both spaces from 0x2400. Adds --memory-test-addresses so
the sweep is repeatable.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 22:05:34 +12:00
Cryan209andClaude Opus 5 fb24e98939 The DSP is a 'C51: 8K of on-chip ROM, measured
The stability test this repository recommended for 'C50 vs 'C51 cannot work. It
expected two reads of 0x0800 to differ on a 'C50 because that is the firmware's
live SARAM scratch, but the probe resets the DSP and takes it over, so nothing is
running underneath to move. It scores every part as 'C51.

What separates them without needing the firmware alive is whether the region
accepts a write: SARAM seen from both spaces is one physical memory, so a write
through data space must read back through program space, and ROM cannot. New
kernel build_memory_test_probe, wired as probe_transport --memory-test, two
patterns per address so a constant cannot pass by coincidence. Run twice on the
25 MHz board, identical both times:

  0x0800  write lands in data space, program space unaffected
  0x1800  same
  0x2400  program space follows the write exactly

With MP/MC=0 and PMST.RAM=1 a 'C50 maps 9K of SARAM into program space over
0x0800-0x2BFF and all three would follow. That split is the 'C51 map instead - 8K
of ROM at 0x0000-0x1FFF winning over SARAM in program space, writable memory
above. The same kernel run against the emulator fixture, which maps a 4K ROM at
0x0000-0x0fff, reports the opposite split, so a null result would have shown.

MP/MC has now been read directly, discharging the caveat on every ROM reading
here: PMST is 00b0, so MP/MC=0, microcomputer mode - the opposite of the MP/MC=1
that board.md and board-parts.md assumed. PMST also has RAM and OVLY already set
on entry, so the opl @07,#0030 in every kernel has never changed anything.

The remaining three quarters of the ROM are now read. The full 8K is mostly
unprogrammed: 1920 words of boot code at 0x0000-0x077F, a 128-word mailbox block
the mask carries twice at 0x0F80 and 0x1F80, and 6016 words of a 32-word
FFFF/0000 array pattern. 0x0780-0x07FF is that same pattern, so the old 2K
capture ran off the end of the programmed part rather than stopping at a
boundary.

The memory-map rows in board.md are left flagged rather than reworked: they were
written against MP/MC=1 and a 2K ROM and both are now known wrong.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 21:51:46 +12:00
Cryan209andClaude Opus 5 e23c5954be The 25 MHz board's DSP has the same mask, and the C50/C51 test is broken
Flashed the 2806 from stock 7.3.14/3.0.13 to ID_SDL v4.03d to get ATGLK2W on it,
then re-ran the on-chip ROM read. Program 0x0000-0x07FF comes back byte-identical
to the 20.16 MHz unit's dump, same sha256. Same mask across both generations.

Picking the image mattered more than it looks: the two ID25_403.XMD in the tree
differ in 107,812 bytes, nearly all of it DSP overlay, and only ID25D403 matches
the 4.03d board this is being compared against - 98.79% of its flash, against
78.23% for the C build.

The C50/C51 discriminator recorded in probing.md does not work. It expected two
reads of 0x0800 to differ on a 'C50 because that is the firmware's live SARAM
scratch, but the probe resets the DSP and comes up with PMST.RAM=0, so no SARAM
is mapped into program space on either part and the scratch is gone before the
first word is read. Both reads are identical, and what they return is not memory:
a 32-word square wave, 16 x FFFF then 16 x 0000, which also occupies 0x0780-0x07FF
of the ROM dump and crosses the 0x0800 boundary without a seam. Real ROM content
ends at 0x077b.

Left open rather than guessed at: 0x1C00-0x1FFF is that same square wave except
for 112 words of kernel-shaped code at 0x1F90.

Adds the 7.4.16/3.1.2 at 25 MHz entry to flash_dump.TARGETS - ID25D403's own
application anchor over the 2806's stock reset vector, which AT~X! leaves alone.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 21:27:27 +12:00
Cryan209andClaude Opus 5 b5527d78db Rewrite the two 403 status docs to what is currently true
Both were research narratives that kept every wrong turn inline and appended
corrections at the tail, so the sections a reader reaches first were stale -
board-verified-403 still said the speaker was unidentified after asic-pinout
and the 2806 trace had moved it to the DSP side, and the datapump gate doc
still carried the 'ATI7 parameter sector' gap and the 403-vs-302 framing the
EEPROM offset finding retired.

Wrong turns that stop a mistake being repeated are kept, condensed, under
'Ruled out'. The rest is in git.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 20:07:16 +12:00
Cryan209andClaude Opus 5 dc1c4e4f03 Map what the 2806 touches in its EEPROM, measured
The NVRAM model already traces every Microwire command, so a boot under it is
a map of use rather than of pins. The 2806 capture reads 243 of 256 words and
writes one: word 0 read, and because it is blank the firmware write-enables,
writes 0x0000 and write-disables; then words 94..102, the datapump block, as a
separate earlier errand; then a linear sweep to 0xf2. The top thirteen words
are never read.

That the firmware writes word 0 on a blank part matters for every fixture in
the repository - a blank EEPROM is not a state the firmware leaves alone.

Records a discrepancy rather than a correction: idsdl-extended-registers.md has
AT&W programming words 0x00-0x22, measured on the 302 image with a persistent
--nvram file, and that could not be reproduced here on either image, through
the same CLI route, or with ATE0&W / ATS0=3&W / AT&F&W in case the write needed
a changed setting. &W1 answers ERROR so the parser is reached. It bears on the
7E1 question, since &W is what stores the DTE format.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 19:33:48 +12:00
Cryan209andClaude Opus 5 638772c3af The 2806's firmware runs, and always could
Given tick_ms=5, board_id=7 and the EEPROM fixture - the setup rom-dte-path.md
already documents - the board's own flash capture boots and prints its
profile: supervisor 7.3.14, DSP 3.0.13, Clock Freq 25 Mhz, Flash ROM 512k, Ram
64k. No 25 MHz mode, no loader change, no paging model.

The UC_ERR_INSN_INVALID this file was built around was the harness starving
the firmware of its timebase. tap_run.py passes no tick, and machine.py says
the tick is not driven by default; the 20.16 MHz 4.03d capture stops at
5,689,414 instructions under the same conditions against this one's 5,684,093.
Two boards, two generations, the same wall.

That the ASIC is shared between the old and middle generations is what should
have made a board-specific explanation suspect from the start. The paging
finding stands as hardware; it is not what broke the run.

Rewrites the note around the result and keeps the three wrong premises with
what settled each, since each was reached by a plausible route. Adds the boot
artifact.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 19:12:35 +12:00
Cryan209 f4af76c80b Pace live SIP DSP from the wall clock 2026-09-13 19:08:35 +12:00
Cryan209 bc8c7c1c8a Support inbound SIP calls over the BRI audio bearer 2026-09-13 17:21:02 +12:00
Cryan209 17583d1c37 Route external AT commands through the attention receiver 2026-09-13 00:28:35 +12:00
Cryan209andClaude Opus 5 7429a026e8 Dump the 25 MHz Courier, and learn that the clock picks the build
The board at /dev/cu.usbserial-FT4TQOFT is a 25 MHz V.Everything
reporting supervisor 7.3.14 / DSP 3.0.13 - the same revision pair the
flash dumper already knew from the 20.16 MHz board, and a different
image. Its leading jump displacement is 0f93 rather than 0f7c, and its
reset vector enters at fc00:1bbf rather than fc00:11e9, so the recorded
anchors rejected it.

So the clock frequency joins the key rather than being asserted: TARGETS
is now (supervisor, dsp, clock) and validate_identity reads the reported
frequency instead of requiring 20.16. The clock goes last so every
caller's target[0]/target[1] keeps meaning what it did.

The new entry's anchors come from this same board, which makes them a
self-consistency check across the sweep rather than independent
confirmation of the build; the comment says so.

512 KiB captured, 2048 pages, two agreeing reads each, no failed
attempts, anchors unchanged on the recheck. Note that every page
terminated with ERROR rather than OK on this build, consistently and
with well-formed rows; that is unexplained and not yet modelled.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-12 22:36:38 +12:00
Cryan209andClaude Opus 5 70943e941d Explain the NO CARRIER, and sweep ATI through ATI30
The NO CARRIER is not a mis-indexed result table: ATI2 answers a plain OK,
so index 0 is reachable and the firmware asks for index 3 on purpose. The
chain, with every step named by the firmware's own text:

  a8067  the go-idle epilogue answers OK only when the recorded
         disconnect cause [d08b] is 1 and [d2a1] & 47 is set; otherwise
         a8096 loads 3
  ab329  records that cause from an inline byte after the call, first
         writer wins
  a4e1e  is the site that records 0x17 - and it sits inside a400:0e0d,
         which a4de5 and a4dfb install in [c922], the callback the serial
         ISR's received-data handler calls for every character

So typing is what records the cause. ATI6 names 0x17 itself - "Disconnect
Reason is Keypress Abort" - and the reason table at 0xc1abb puts Keypress
Abort at index 23, with "DTR dropped" at the index 1 that OK requires.

Which leaves the real cause, and it is ours. ATI12 prints "Physical
Interface: Inactive / Data Link Layer: Inactive", because am79c30.py's
DEFAULT_READS is empty and LIU_LSR reads 0. The S/T line never activates,
so the modem is never idle-with-a-line. Answering LIU_LSR with an
activated value would change the result code without modelling anything,
so it is not done: this belongs to the ISDN front end, which is already on
the missing list.

tools/imodem_at_probe.py reproduces the chain, watching a8067 and ab33b
alongside the transcript.

The ATI sweep is in artifacts/imodem-at/ati-sweep.json and tabulated in the
doc. ATI4 and ATI5 dump the settings and NVRAM including S00-S83, ATI6 the
link diagnostics, ATI10 dial security, ATI11 the physical layer, ATI12 the
ISDN switch settings, ATI15 party numbers, ATI16 Turbo PPP, ATI17 a
diagnostics page. ATI7 is the firmware describing its own board and it
agrees with what this repository has read off the hardware: 20.16 MHz,
768 KiB EPROM, 256 KiB RAM, options V32bis,x2,V.90.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 20:28:17 +12:00
Cryan209 089056e3e0 i modem work 2026-09-11 19:25:28 +12:00
Cryan209 a539584caa Clarify I-modem payload entry-point interpretations 2026-09-11 18:58:07 +12:00
Cryan209 6369173a41 Defer PCM activation until DSP ROM boot completes 2026-09-11 13:45:59 +12:00
Cryan209 6b1f229441 Document x2 server, symmetric, and V.90 DSP findings 2026-09-10 21:04:47 +12:00
Cryan209 2d5a03a781 v90x2 work 2026-09-10 16:59:12 +12:00
Cryan209 dd292e9aec Add resident-driven V-series answer signal rendering 2026-09-10 15:38:45 +12:00
Cryan209 0748551a07 Implement Quad C50 digital PCM and stock DSP audio paths 2026-09-10 15:26:16 +12:00
Cryan209andClaude Opus 5 bbdc8ecc79 Keep the Quad probe results, filter the images they rebuild
Every .bin under the Quad artifact directories is reproducible from
tracked source: probe_quad_identify.py and the bring-up probe rebuild the
flash and RAM dumps from docs/x2/Qf060003.zip, and probe_quad_c50.py
rebuilds the DSP stream from those. That is about 6 MB of images derived
from 363 KB of source, so .gitignore excludes them on the same reasoning
it already gives for the per-page responses/ and blocks/ intermediates,
and the JSON, JSONL, markdown and probe scripts beside them are kept.

Kept here: the AT terminal transcript, the identification and diagnostic
replies for 43 commands, the bring-up and blocker findings, the SDL
receive measurement, and the C50 endpoint run. Also qdinstal.pdf as
vendor source material, alongside the other vendor packages in docs/.

tmp/ is ignored as scratch.

Anything reading the dumps runs probe_quad_identify.py first, which
writes them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 11:46:08 +12:00
Cryan209andClaude Opus 5 97076c470e Recover the C50 host-link handshake: it is a five-word window
Running the captured resident with no CPU attached settles the request and
acknowledge protocol that quad-c50-overlay-loader.md left open.

The steady state is one cycle repeated 1,768 times in 200,000 steps: write
0x57 = 0x0300 at pc 0x8313, then read 0x57, 0x58, 0x59, 0x5a and 0x5b. Every
one of those reads is at pc 0x23f1 - the fetch stub's lamm * with ar1
auto-incrementing - so it is one instruction walking a five-word window from
0x57, not five instructions polling five registers: a status word and four
data words.

That is why seeding 0x57 alone never advanced the loop. The stub always
reads all five words, so the issue was the width of the window rather than
an extra handshake bit.

Four data words per request is the CPU's burst size, so the lanes map one
for one: 0xc0 to 0x58, 0xc4 to 0x59, 0xc8 to 0x5a, 0xcc to 0x5b. Ports
0x5c..0x5f are never touched, so the CPU's second lane group at 0xd0
addresses a second device rather than a second window in this one.

This also explains the previous commit's zero pulls: that endpoint presented
one word at 0x58 and counted single reads, against a DSP that takes four
words at four addresses per request.

Which bit of the status word means "fresh burst" is still open - standalone,
0x57 reads back whatever the DSP last wrote, so this run cannot separate the
two directions.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 11:17:15 +12:00
Cryan209andClaude Opus 5 65739f6875 Decode and capture the Quad's CPU-side C50 download
The card spends its whole run streaming DSP code. This decodes that
transport from QF060003 and captures what it sends.

Eight 16-bit lanes at ports 0xc0, 0xc4 ... 0xdc, low byte at the port and
high byte at the port + 2. [0x9d38] picks the lane group - 0xc0 for the
path at 0xced05, 0xd0 for the one at 0xced12 - and [0x9d37] is that
group's strobe, 1 or 2, written to 0x98 after each four-word burst and
waited on at 0xced9e. The final word comes from [0x9d3a], strobed with 4
and acknowledged on bit 2. 0xcec72 writes 0xffff to 0x98/0x9a and
0x9c/0x9e and polls both pairs back as a reset presence check.

Captured over four million instructions the stream is five complete
copies of the resident, byte for byte, each preceded by the eight
0x0083 lane-init words: 62,544 bytes at a 62,560-byte stride, matching
row one of the load table in docs/quad-c50-overlay-loader.md - source
paragraph 0x2000, length 0xf450, destination 0x8000.

It repeats because nothing answers. The transfer is not failing: across
a twelve million instruction run 0xced12 returns carry-clear on 23 of 24
loads, with no timeout and no give-up, because the unmodelled 0x98 floats
high and every readiness poll passes. A supervisor at 0xede01/0xeddb1
then drives the load again. The missing direction is DSP to CPU.

This is the tap, not the endpoint. It is fed from a run's recorded port
writes rather than wired into the machine's port handlers, so it cannot
change timing, and it neither executes the captured image nor answers on
the DSP's behalf. Making the link answer means running the resident on
the C5x core, and the 0x57/0x58 request and acknowledge protocol that
needs is still open in quad-c50-overlay-loader.md.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 10:24:44 +12:00
Cryan209andClaude Opus 5 394951f3e6 Measure what each of the Quad's six settings records controls
Sweeps each of the six settings-EEPROM records one at a time against an
otherwise-zeroed part and records the ATI7 profile the firmware renders,
so the mapping is measured rather than read off the disassembly.

Setting 1 is a country index, not a bit field: a plain index into the
118-byte-per-entry table at 0xe6560, populated for 0..22 (US/Canada
through Malaysia) and rendering garbage from 23 up. Setting 2 is the
feature mask, and bit 5 is the x2/V90 bit - x2,V90 is one combined list
entry at 0xdf47a, so this firmware cannot report either alone. Bit 6
switches the ISDN line to the PIAFS variant. Setting 3 bit 0 is the only
observable fax bit, selecting Class 1/Class 2.0; the standalone Class 1
and Class 2.0 strings are unreachable, as all three tests at 0xdf4c8,
0xdf4d4 and 0xdf4e0 test the same bit. Setting 4 bit 0 adds the MSK
product suffix and bits 5 and 6 are the two cellular entries. Settings 5
and 6 change nothing in the profile; the boot decode at 0xc0940 never
reads them.

The options printer walks one null-terminated string list, so each set
mask bit emits the next string rather than a fixed one. The doc gives the
measured mask-to-list pairs rather than a bit-per-feature table, because
the list is positional and a bit table would misrepresent it.

Also records the transport (Microwire on the 186EB PIO lines, frame
builders at 0xc16f7 and 0xc15e4, addressing as (di - 0x8632) >> 1), the
absent-part failure mode that made ATI7 report the XOR constant 0x1d as a
feature set, that ATY14 prints settings 6,5,4,3,2,1, and the second
writer at 0xf88fc that can raise the same bits at runtime over the
EEPROM baseline.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 10:04:22 +12:00
Cryan209 10a6fd3a2f image 2026-09-09 21:45:23 +12:00
Cryan209andClaude Opus 5 6274cc04f8 Recover the firmware from the SDL packages, and identify the Sportster
The DOS loaders embed the image as 16-byte binary download records with a
sum-to-zero checksum, which is what identifies the format rather than a
coincidence: 13,193 consecutive records validate in SDL.EXE. The .XMD
files are the same firmware under a flat XOR 0x55 behind a 64-byte header
that stays undecoded.

Using that, the Sportster Vi DSVD package in docs/usrdl/ turns out to be a
cut-down Courier: 77.6% of its strings are shared, the ATI7 layout and the
result-code table are the same table in the same order, and its
product-name table still carries both Courier and Sportster. What is gone
is the premium set - HST, Dial Security, Remote Access, dipswitch display,
serial number, ASL statistics. What is added is the DSVD voice path.

The recovered images are not flash-accurate: the record addresses are
16-bit and wrap, so segment breaks are reported rather than resolved. They
are not tracked and must not be handed to the emulator as flash images.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 20:02:12 +12:00
Cryan209andClaude Opus 5 d2fe9b2a2c &L1 alone is inert on the board
Sampled for 20 s with &L1 live: [0x04f2] holds 1 throughout, but [0x0d28]
never moves and [0x0192] never leaves 0110, the idle state. &L1 selects
leased-line mode without starting a connection, so the board sits idle with
the setting armed.

That agrees with the emulator rather than contradicting it: both emulator
&L1 runs included a connection attempt, and the overlay id was written on
that attempt. The cells therefore move only inside the window the DTE
cannot read. Line released, &L0 restored.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 17:29:55 +12:00
Cryan209andClaude Opus 5 1aaa4eeaa7 &T on the board: predicted errors hold, the flag was not caught
AT&T2 gives ERROR - entry 2 of the router's table is the stc; ret reject,
matching &T2 being unused on USR modems - and AT&T3 gives ERROR because
a6b1a rejects 3, 6 and 7 when [0x0237] & 1, which the board reads as 01.
Two rejections predicted for two different reasons, one static and one from
a runtime cell, confirm the ampersand identification independently of &L.

AT&T1 returns no result code and a following &T0 gave NO CARRIER, so a test
starts, but no sample caught [0x057c] bit 0 set. That is inconclusive rather
than negative: with no result code to synchronise on and the test's own
traffic delaying the drain, the earliest sample was seconds late, and the
cell has three clearers in the same code cluster. &L1 remains the
demonstrated route to opening the CF gate.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 17:09:04 +12:00
Cryan209andClaude Opus 5 95f24910c5 AT$ is HELP; retract the letter mapping
$ is not a prefix - AT$ prints the command quick reference, captured in
full. The complete command set has no L and no N, which is why ATL0-3 moved
nothing, and lists T as Tone Dial, which is why ATT did too.

The listing also refutes the mapping: E, O, Q and V are documented commands
but land on the 0x1960 reject stub under the a6685 base. So entries 11, 13
and 19 are not L, N and T, and the prediction that ATL1 would open the CF
gate is withdrawn. The dispatch at a4f63, the router at entry 19, and the
two CF gate writers at entries 11 and 13 all stand; the index does not.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 17:00:33 +12:00
Cryan209andClaude Opus 5 6c6bfb5b7c Measure the board's supervisor state trajectory
Sampled [0x0192], [0x03ff] and the gate cells across an ATDT9099; dial. The
state pointer moves 0110 idle -> 5742 off-hook -> 0110 released: the first
direct observation of the board's state machine, and a baseline the
emulator can be compared against. [0x03ff] stays 0000, so the router is
never installed on this path.

Corrects the capture's linear column: a4e2:0110 is real code but a4e2:5742
is garbage, so [0x0192] does not always carry an a4e2 offset.

The idle handler dispatches through a 24-entry table at a701f whose reject
filler 0x1960 is the same stub filling three entries of the a669b handler
table. The two tables belong to one command system, which is the first
positive evidence that the router's family is live rather than orphaned.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 16:47:59 +12:00
Cryan209andClaude Opus 5 91b2ac0d69 ATX1 gives a real handshake window; the escape aborts it
9898 is a busy-tone number and X7 detects it in about 15 s, so the earlier
attempts never handshook. ATX1 drops busy detection and the modem signals
for the whole S7 window instead. But +++ mid-handshake returns NO CARRIER:
the firmware treats DTE input during handshake as an abort, not an escape,
so the samples that follow are teardown state and say nothing.

The mid-handshake route is now closed rather than untried. Line released,
X7 restored from the recorded ATI5.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 16:34:33 +12:00