link starts both sides of a dedicated line over a UNIX socket. Each side hands
the far end one 100 ms frame of hook state and line audio and blocks for the
far end's frame, which keeps two independently executing runs on the same
emulated clock without either knowing how fast the other goes. The far end
going off hook is the whole of call setup on a dedicated line, so the link
drives each side's DAA line state directly and supersedes --daa-line.
Both sides answer, both see the other seize the line, both qualify the line
detector, and both exchange the same frame count. Neither connects, and the run
localises why: over 40M instructions each C52 wrote 271,869 line samples that
were all zero while its command poll at port 0x50 read 0xffff every time. The
datapump never receives a command, so there is no carrier for the far end to
train against. That is the same supervisor-to-C52 runtime latch protocol the
live SIP call already stalled on, now reproducible without a PBX.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Every board option switch was re-derived by pulling one input bit low and
diffing the profile ATI4 prints. That found two switches the model was
missing - 0x12 bit 0x20 clears S14, whose bit 0 gates DTR-loss handling, and
0x14 bit 0x04 clears the &C setting - and corrected three names: [0x08de] is
S0, so the switch called profile-source is the auto-answer switch, and the
switches called verbose and echo both disable those settings when closed.
--dip-preset dedicated-line closes the pair a modem with no DTE needs.
Latch 2 bits 0x01 and 0x80 are the carrier-detect pair 0x5de57 drives from
that same &C setting, asserted low like the hook relay, and input port 0x12
bit 0x40 is DTR.
The ring detector on input port 0x14 bit 0x02 is now modelled instead of
floating high, which read as a ring that never ends and parked the answer
machine at 0x70fb4 in its first state. --ring drives a cadence converted
through the firmware's own 180-tick qualification window. With #CID set the
answer machine qualifies bursts and posts its ring messages; nothing consumes
them yet, so the modem still does not answer on its own.
ATA reaches the same 0x5dbe7 detector wait as ATD, so an answering seizure now
qualifies on a connected line rather than waiting for a dial tone that will
never arrive. ATA into a quiet line reports NO CARRIER instead of NO DIAL TONE.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Dumping the real parameter flash is not practical, so build one the
firmware accepts. The rest of the sector layout beyond the six ATY14
fields is now recovered: the serial number is twelve ASCII characters at
0x0a17 and 0x0a20, the packed config at 0x0a23 expands through the
(shift, mask) table at 0x63f8d into 0x0932..0x0955, and the working
profile image at 0x0a36 scatters to 0x08de plus the offsets at 0x63fd6.
The checksum is CRC-16/CCITT, reimplemented from the per-byte update at
0x72930 and checked against values the firmware computed itself.
Seeding the packed config and profile image with the firmware's own
power-on defaults means a synthesised sector changes only the fields the
caller sets. A sector built for an x2-enabled unit makes ATY14 print
000,000,030,007,031,000, ATI7 render the full configuration profile with
the serial number, and ATI report 5608 - the product-code branch at
0x82e7d reached through a real feature byte rather than a forced flag.
The board straps also select the enclosure ATI7 reports: capability 0x22
is External, 0x14 Rackmount, 0x28/0x29 Internal.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The option switches are input bits on the latch ports, sampled once at
0x63e10..0x63ec2 with the same call form the identification straps use,
and read inverted: a closed switch presents a low bit. Model them behind
--dip and report their state in the panel block.
That retires the [0x092f] patch. 0x63e2e only clears the quiet setting
when the result-code switch reads closed, so the old direct write was
standing in for a switch position. Closed is the default, since a
directly attached DTE wants result codes; --dip none leaves every switch
open and the modem is then genuinely silent, which is the real behaviour.
Also record why a synthesised parameter sector appeared to hang. The
whole record is copied to 0x0a06 one-for-one, and bytes 0x1d..0x2f are a
packed config expanded at 0x64044 through the (shift, mask) table at
0x63f8d into 0x0932..0x0955. [0x0941] is src+5 & 0x0f and is a test-mode
selector: 0x5bc57 and 0x5bc8d send anything >= 6 to the diagnostic
dispatcher at 0x7a59:0000, which loops forever by design. An 0xff filler
decodes to 15, so the firmware was obeying a test mode rather than
stalling. A sector with a sane packed config boots through to main-loop.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Recover three board devices the harness had been leaving unmodeled, and
fix the transmit path that hid the diagnostic command output.
NVRAM: the settings store is a 93C66-class Microwire EEPROM bit-banged on
board latch 0 (port 0x10), driven by 0x5ccc0..0x5cdf9. The command frame
at 5b5e:17c6 clocks one pad bit, a start bit, two opcode bits, and an
eight-bit address, which fixes the part at 256 x 16. Add a file-backed
device behind --nvram, tested by replaying the firmware's own bit-bang
sequence.
Panel: every board output goes through one latch driver at 0x5e2b0 with
its port table at 0x5e31c and shadows at 0x064d. Both entry points swap
their bodies for signal 0x0408, so the hook relay is asserted by driving
its latch bit low. Report latch state, named signals, and a change trace.
Straps: 0x5bfc6 identifies the board over four latch lines and input port
0x14 bit 0x08, and 0x5c05c stores the capability byte at 0x0a02. Floating
lines yield code 15 and a zero capability, which 0x667cb maps straight to
result code 4 - the trailing ERROR on ATI1/ATI2/ATI3/ATI7/ATZ/ATS30?.
Drive the straps with --board-id, defaulting to the lowest code that
describes a board with an EEPROM and no fatal fault.
Transmit: 5b5e:184b branches back to its own entry while the integrated
UART reports busy, so capturing at 0x5ce2b recorded one copy of the
pending byte per spin and filled the 64 KiB cap with carriage returns.
Capture at 0x5ce66 where the byte is accepted, report the seven data bits
the framing actually carries, and report the UART ready so the routine
can retire the byte at all. ATI4 now renders its real settings page.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>