On this page
I own an Intracom INT 200 payphone, bought on Vinted. It's missing a good chunk of its parts and I doubt it will ever run again. What I do have is a dump of its firmware chip, and from that I built a server that an emulated phone calls, authenticates against, takes settings and a dial plan from, and uploads its call records to. It's called int_manager. Everything it does has been checked against the real firmware, and none of it against a real phone.
This is how that came together, including what went wrong. Most of the grunt work (disassembly, cross-referencing, test scaffolding) was done by LLMs. I chose what to chase and checked what came back, and a short list of their mistakes is further down.
What I started with
The INT 200 is a card-operated payphone made by Intracom. The marketing material and the firmware dump are in a repository. The dump comes from an AT29C020 flash chip (256 KiB). It looks like noise until you swap data bits D4 and D5 in every byte, after which it's Motorola 68HC11-family code with strings in Romanian, English, French and German. The scrambling is its own inverse and comes from the board wiring. scramble.py does the swap.
That sticker, R4R1C, is the only version label I have, and it doesn't mean much. The phone's firmware can be replaced remotely, so what's in the chip is whatever was last downloaded, and it doesn't have to match the sticker. The string R4R1C isn't anywhere in the image, and neither is a version number, a build date or a model name. The closest thing to an identity is a four-byte identifier in a data block, which the firmware compares against a stored copy at boot to decide whether to replicate the image, and an additive checksum of everything past the first 2 KiB that a diagnostic command displays. Either changes with an update.
The update mechanism explains the other odd thing about the dump, which is that its two 128 KiB halves are identical. The phone appears to keep two images. A server stages 256-byte pages into a buffer, commits each one with a 16-bit checksum, and the phone activates the idle half on the next reset. I could test this in the emulator but never on hardware, so "appears to" stays.
The firmware talks on the 68HC11's serial port in frames that start with 0x32, then a type byte, a length, a payload and a CRC-16/ARC. I checked the CRC routine against all 256 entries of the lookup table in the firmware, which is a good way to stop arguing with yourself about the polynomial. The frame for "write parameter 4 to 65" looks like this:
32 | 17 | 00 06 | 01 00 04 02 00 65 04 | F6 0E
marker, type (write), length, payload, CRC
Types 15 and 16 read settings and 17 and 18 write them, with values in packed BCD. The ROM has a descriptor for each of 700 parameter slots with storage location, length, access mask and validator. Which of them mean anything is another matter, and I'll get to that.
The modem I couldn't identify
I haven't managed to identify the modem chip on the board. The marketing material says the phone has a built-in V.23 modem, and the firmware's serial setup fits 1200 baud, so V.23 is my working assumption. Nothing I've seen confirms it on a real line. When I wanted to know if the firmware swaps channel direction mid-call, the trace showed the UART staying at its 1200 baud setting for the whole session while an external device on a control address got a byte before every transmission and another after it. That tells me the phone treats the link as half-duplex and nothing about the modulation, so the direction question is open.
Building a phone out of a ROM
With no working phone to listen to, the ROM had to run somewhere. The first emulator, written in Python, executed 68HC11 code with bank switching, a UART and an LCD. Soon it could transmit a frame through the firmware's own serial driver and receive one back, which proved the protocol work and nothing else. I put TCP behind a simulated modem, wrote a small dashboard and then admitted to myself what the dashboard didn't show: the phone wasn't booting, there was no keypad, and the service switch didn't exist.
Booting it took three bugs and some stubbornness:
- The emulator ignored the timer prescaler. The firmware selects divide-by-16, and without it timer interrupts starved the startup tasks. The display said
NU FUNCTIONEAZA, "not working". - The EEPROM model accepted one byte after unlocking. The firmware writes 64-byte pages.
- Once those were fixed the ROM passed its memory test and showed
Initwith a spinner, then registered a keypad handler.
Reaching the PIN prompt needed an input line held low through reset. On the board that's most likely the switch labelled SW700, which puts the phone into service mode; I haven't traced it, so that's an inference from the photo and the firmware's behaviour. The keypad scanner drives four columns, reads four row bits over SPI and decodes with the string 123A456B789C*0#D. Sixteen keys, all tested through the real firmware.
Two technician PINs are hard-coded in the firmware and give different access levels.
What the phone says to a server
Most of the work was the unglamorous kind: pick a message, run the real handler in the emulator, see what comes out, write it down. The results that held up:
Call records are 26 bytes. A sequence number, the dialed digits, a timestamp packed into month, day, hour and minute bit fields, and three accounting counters. I found the serialiser and traced each field to its source. The phone uploads them in batches of eight and commits each batch only when the server's acknowledgement has the right sequence number. A wrong one makes it retransmit; a corrupted one doesn't double-commit.
Updates go through staging. Types 1F and 21 write into a buffer at $1C00, and type 29 commits a page: 256 bytes plus a 16-bit additive checksum. I sent a deliberately wrong checksum and watched the phone refuse. A full image is 512 pages, 131,072 bytes, half the dump.
The emulator model for this assumes a flash address line is switched by a CPU pin. I couldn't confirm that on hardware, so the A/B scheme is a strong hypothesis. What I could do was run both outcomes. A good image boots, gets copied over the other half, and ends in a state reading 4. A failed write ends in 5, and the next reset keeps the half it downloaded rather than rolling back. A fresh download from state 5 recovers it. That's also why the sticker proves so little: a phone in the field can be running an image that was never on the chip I read.
Authentication is DES. My first reading, from the instructions around parameters 297 and 298, was a challenge-response with an XOR. The real thing is plainer and worse: the phone mangles the eight bytes of 298 into a DES key and encrypts the eight bytes of 297 with it. The server never sends a challenge, so the response is the same on every call and a recording of one replays. I tested the ROM's DES routine against the standard known-answer vectors. That's not a complaint about the design so much as a reason not to treat it as security. A blank phone gets those two values on its first call, group 1, which skips authentication entirely. The phone then uses them from the second call on.
Checking the claims
The loop was always the same. Make a claim about the firmware, test it by running the ROM, and write the claim down only if the run agreed. The documents carry three confidence labels (verified in the emulator, traced in the disassembly, hypothesis) and I tried to keep to them.
The LLMs got a lot wrong and caught most of it themselves when I pushed. A few examples from the transcripts:
EROARE 520was blamed on the card reader. It's a generic timeout from a "post a request and wait for the reply" routine nobody answered.- A function at
$CA19was called the parameter write handler. It's never reached by the remote protocol, and the real write path shares code with reads. - A routine at
$7D79was described as a dispatcher. It compares 32-bit values. - A running sequence counter in a call record turned out to be an upload buffer address.
One rule helped more than any other. When I asked for a completed phone-initiated call, the answer was that it wouldn't count patched program counters or intercepted dial calls as success. It then spent a long stretch adding what the ROM was actually waiting for. A two-wire bus on a port, with a device at address 0x32 that has to ACK. A real-time clock. A controller status reply. A line that goes low followed by the bytes 06 30 before the carrier routine stops timing out with error 790. At the end the phone dialed, authenticated and took a setting without anything skipped, and the screen showed OK.
Provisioning from a blank EEPROM
The next question was whether a technician could take a blank phone and end up with a working one. The emulated ROM initialises its own empty EEPROM. From there the sequence is: PIN, set a terminal ID, clock and two server numbers, then 930#. The phone dials and announces group 1. The server writes the two authentication values and reads them back. After a reboot the follow-up call carries a DES response and the server sends the rest.
Then the phone had to take a customer call. This needed a card range provisioned over an authenticated call, the ROM accepting a synthetic card, a dialed number, a hang-up and a debit. It went from credit 100 to 99, generated its own call record and uploaded it. No record bytes came from my test harness.
Rates
How does it know what's free? In three steps: the dialed number gets a category, the category has charging rules, and the rules debit the card. The first step is a prefix table that the server downloads. The built-in table treats 0800 as paid category 1, and a table downloaded over an authenticated call makes it free, with or without a card. A number the table doesn't list is paid category 0, not refused. The built-in table does bar some prefixes, 97123 among them.
I only found the next part by testing. A downloaded table gets a positive response even when it's invalid, so in the ROM I ran a successful reply proves nothing about flash. After sending a plan, the server has to push test numbers through the firmware's own classifier and compare the answers. Mode 4 charges when a key is pressed after dialing, B or C depending on a setting. Low credit gives a partial final debit, so a card with 1 unit left pays 1 against a price of 2.
Calling the server on a schedule
The phone calls the server. I looked for the reverse and found one receive-first mode, gated by setting 091, that starts the serial port without dialing when an input goes low during a short window after reset. I got a frame out of it. I found no evidence the phone answers an ordinary incoming call, so the server can't dial a phone and expect it to pick up.
Scheduled calls were harder than I expected. The firmware sets an alarm on the real-time clock, executes STOP and sleeps. Routing the alarm to the CPU's XIRQ input lands in an unhandled-interrupt fault. What works in the emulator is a cold reset with the alarm flag on scanner input 8, and I don't know that it's what the board does. With that, the phone woke at 10:02, called, and a simulated server failure left its record pending. At 10:04 the retry fired. A silent server makes it wait 220 receive windows, five times over, around 550 modelled seconds.
The fault system has 13 entries. Eleven could be provoked in the emulator, and most of those were reported to the server model through the original ROM. Two, 575 and 576, have no producer in any path I audited, so they might be unused in this version, though I can't prove they can't be reached. A fault report the server rejects isn't resent, and the next call sends an empty list. A technician clears them with the second PIN.
The server
I wanted something like my fork of mm_manager, the server I use for Nortel Millennium phones: a command, a .env file, text configuration and logs you can follow. int_manager is a single Go program with no web UI and no database. It has two commands that matter, int_manager check, which reads every file and names the line that's wrong, and int_manager serve.
Each phone gets a folder named after its ten-digit terminal ID. The folder is the whole state:
phones/0102030405/
phone.conf settings and keys, written by hand
applied.json settings the phone confirmed
calls.csv decoded call records
status.csv fault reports and clears
uploads.log every upload verbatim, as hex
A phone.conf is plain text:
@name = lobby
@auth297 = ...
@auth298 = ...
maintenance_time_a = 03:30
upload_call_records = on
The two @auth lines are the DES inputs, redacted here. Settings can be the parameter number or a name, and values read the way you'd say them: 03:30, on, 0212345679, paid categories as 0,1,5-7. Defaults, groups and phones layer on top of each other. A setting counts as applied once the phone has read back what the server wrote, and after that a call sends only the difference. A rates file holds the dial plan and the charges per category, and @rates = lobby sends it.
Settings go out in batches, up to 16 to a write packet, because a test showed the firmware accepts 16 parameters at once and none at 17. That takes four rate fields from 16 frames to 4. A call can arrive three ways: a raw TCP socket for a modem bridge or the emulator, a serial modem, or SIP with a V.23 softmodem. The serial path has only been tested against a fake modem.
This is what a first call looks like in the log. The phone is the original ROM in the emulator, calling over SIP, and the line is trimmed to the fields that matter. The call record was placed in the emulated phone's memory beforehand, so it isn't a real customer call, and the times are wall clock because the emulated ROM is slow.
09:27:19 INF call connected via=sip
09:27:25 INF phone identified terminal=0123456789 phone=lobby settings=1 to_write=1
09:28:01 INF upload kind="status-2 ids" count=0
09:28:09 INF upload kind="call records" records=1 new=1
09:28:09 INF call record seq=1234 dialed=123456789012 phone_time="11-12 13:45" status=02
09:28:18 INF setting applied id=4 name="pulse dialing timing/control" value=65
09:28:24 INF call complete settings_written=1 call_records=1 dial_plan_sent=false took=1m5.361s
With INT_LOG_LEVEL=debug you also get each stage of the call: capabilities, authentication, uploads, the write and its read-back, the schedule for the next call, termination. Setting INT_PACKETS=true prints each frame decoded next to its raw bytes, INT_PCAP_DIR saves a pcap per call, and a Wireshark dissector is in the repository:
09:37:07.707 0123456789 server -> phone 17 write setting (13 bytes, crc ok)
write 4 (pulse dialing timing/control) = 65 (wire 00 65)
32 17 00 06 01 00 04 02 00 65 04 f6 0e
Testing the audio path
For an independent check on the softmodem I used SpanDSP, which has V.23 channels of its own. The emulated ROM ran through the V.23 bridge to the server over SIP and RTP, and the opening token travelled as audio rather than as injected UART bytes.
The first run failed. I'd configured the server to receive at 1200 and transmit at 75, and standard V.23 for the answering side is the opposite. SpanDSP told me before the ROM did. After that, a poll and a provisioning call both passed, one with µ-law and one with A-law. A call takes about a minute, because the Python emulator is slow.
So the emulator got a rewrite in Go, in its own repository, intracom-emulator. A boot plus PIN plus 935# plus dialing went from 61 seconds to 0.5. A full call against int_manager over a TCP bridge runs in 0.5 to 1.6 seconds. That's roughly 43,000 instructions a second becoming 5 million, and I haven't tuned it.
What's solid and what isn't
The firmware, the protocol and the server logic have all been exercised against the real ROM. That includes provisioning from a blank EEPROM, authentication, writes and read-back, downloads of dial plans and images, call records, faults and scheduled calls.
Everything outside the CPU is simulated. The modem, the card reader, the clock, the controller on the two-wire bus and the line itself are my models, built from what the firmware asks of them. A real phone could disagree with any of them. The V.23 direction, the wake wiring and the service switch are the open questions I'd want a working board for, and the serial modem backend has never touched hardware.
A few smaller gaps: the card-range row sent to the phone is 32 bytes and I only understand 19 of them, so int_manager sends the whole row you give it and marks it as sent, never verified. And 97 of the 245 stored parameters have no known meaning. Every meaning I do have was worked out from the ROM dump, by seeing what the firmware does with a value. None of it comes from documentation.
The firmware dump is in the documentation repository, but neither int_manager nor the emulator ships it. The emulator builds its image from a chip dump you supply.
Where next
I just got a very cheap INT 100, in OTE blue, and I'm hoping it's in a state where it can run. If it does, the first thing I'll try is one call from a real phone to int_manager, which would settle more than another week of emulation.
The other thing I'm after is paper. If you have manuals, service guides, CSMS documentation or anything else from the phones' makers, especially anything that explains the configuration parameters, I'd like to read it. A table of what each parameter does would replace a lot of guesswork, and would show where my emulator-derived names are wrong.
Sources
- intracom-payphones: the firmware dump, Intracom's marketing material and the reverse engineering notes, with confidence labels, that most of the claims above come from. The Python emulator and its raw research notes aren't published, so the timings and test counts I quote come from my own session logs.
- int_manager: the server, with its docs and the example logs trimmed above.
- intracom-emulator: the Go emulator and its dashboard.
- mm_manager: my fork of the Nortel Millennium server that int_manager's layout is modelled on.
- SpanDSP: the V.23 modem implementation used as an independent check on the softmodem.