{
  "schema_version": 1,
  "description": "Read-only public engineering portfolio data",
  "projects": [
    {
      "id": "network-as-code",
      "title": "A network that documents itself",
      "category": "INFRASTRUCTURE / AUTOMATION",
      "summary": "Nautobot, MikroTik, Cisco, configuration backups, and the pursuit of a trustworthy source of truth.",
      "status": "IN PROGRESS",
      "tags": [
        "Nautobot",
        "Python",
        "RouterOS",
        "Nornir",
        "Infrastructure as Code"
      ],
      "problem": "A network with many devices and locations slowly becomes a collection of exceptions unless inventory, addressing, configuration, and monitoring agree.",
      "approach": [
        "Model devices, interfaces, VLANs, locations, and IP allocations in Nautobot.",
        "Established configuration backup through Nautobot Golden Config and Nornir, using the inventory as the source of device identities and metadata.",
        "Integrate real devices with Nornir, NAPALM, and vendor-specific automation, documenting the places where abstractions break down."
      ],
      "lessons": "A successful backup is not the same thing as a reliable automation platform. Credential handling, discovery errors, platform drivers, and inventory accuracy are part of the engineering problem.",
      "technical_heading": "Source of truth to operational configuration",
      "technical_sections": [
        {
          "heading": "The actual inventory",
          "body": "The seed inventory included 187 devices, 34 locations, 61 device types, 30 roles, 21 custom fields, 9 VLANs, 5 prefixes, and 184 DHCP records. Those counts describe the seed snapshot, not a live public API."
        },
        {
          "heading": "Automation stack",
          "body": "Nautobot with Golden Config and Nornir, Netmiko, NAPALM and the napalm-ros RouterOS driver. Golden Config successfully backed up the MikroTik CCR2004. A packaging compatibility issue with NAPALM 5 led to an upstream contribution."
        },
        {
          "heading": "Architecture and boundaries",
          "body": "Nautobot provides an inventory and relationship model for DHCP data, access policies, device configuration and monitoring. Golden Config backups are an implemented part of this workflow; generated policy or configuration delivery is not presented as operational."
        },
        {
          "heading": "Lessons and next experiments",
          "body": "Treat discovery as evidence rather than truth. A bridge-facing hypervisor management address was initially mistaken for a router identity; reconciliation against physical topology and device responses corrected the record."
        }
      ],
      "url": "https://www.jayme.ca/projects/network-as-code/"
    },
    {
      "id": "domain-trust",
      "title": "jayme.ca: trust from DNS to inbox",
      "category": "DNS / EMAIL SECURITY",
      "summary": "Operating a personal domain with Google Cloud DNS, DNSSEC, Google Workspace, strict DMARC, MTA-STS and TLS reporting.",
      "status": "IN SERVICE",
      "tags": [
        "Cloud DNS",
        "DNSSEC",
        "Google Workspace",
        "SPF",
        "DKIM",
        "DMARC",
        "MTA-STS",
        "TLS-RPT"
      ],
      "problem": "A custom domain is a dependency for far more than a website. Name resolution, email delivery, sender authenticity, transport security and certificate issuance must work together without interfering with one another.",
      "approach": [
        "Operate jayme.ca in a Google Cloud DNS managed zone, with DNSSEC zone signing linked to the domain registrar through DS delegation.",
        "Route mail through Google Workspace and publish SPF, DKIM and strict DMARC records for domain-aligned sender authentication.",
        "Publish MTA-STS discovery and a separate HTTPS policy host, with SMTP TLS reporting to surface transport-policy problems.",
        "Control certificate issuers through CAA and manage website changes without disturbing unrelated DNS services or mail delivery."
      ],
      "lessons": "DNSSEC, email authentication and SMTP transport security solve different problems. The engineering is in coordinating those layers, preserving existing dependencies during changes, and validating the behavior beyond the presence of a DNS record.",
      "technical_heading": "A domain as an operational trust system",
      "technical_sections": [
        {
          "heading": "Registrar and authoritative DNS",
          "body": "The registrar delegates jayme.ca to Google Cloud DNS. DNSSEC is enabled at the zone and the matching Delegation Signer (DS) is configured at the registrar, linking the signed zone into the DNSSEC chain of trust. A DS record and generated signatures are different objects with different operational lifecycles."
        },
        {
          "heading": "Mail identity",
          "body": "Google Workspace receives mail via MX records. SPF authorizes Google senders (with ~all softfail), a DKIM public key is published under the domain, and DMARC has p=reject and sp=reject with strict SPF/DKIM alignment (aspf=s, adkim=s). These records express policy; valid outbound signing and alignment are verified in received message headers and reports."
        },
        {
          "heading": "SMTP transport and telemetry",
          "body": "MTA-STS advertises an HTTPS policy through _mta-sts TXT discovery and a separate mta-sts host, while _smtp._tls publishes TLS-RPT report delivery instructions. MTA-STS applies to compliant sending systems and must be checked via its actual HTTPS policy, not inferred from DNS alone. TLS-RPT provides evidence of observed delivery/TLS failures."
        },
        {
          "heading": "Issuance and change control",
          "body": "CAA records limit which certificate authorities may issue certificates for the domain. Web hosting can move independently of Google Workspace: changes to apex/www hosting records must be scoped carefully, and any hostnames that alias the apex need to be reviewed for indirect effects."
        },
        {
          "heading": "Boundary of the claim",
          "body": "These are configured controls, not a promise of perfect deliverability or universal TLS enforcement. DNSSEC authenticates DNS data, not the mail content or its transport. The public case study omits private hostnames, private addresses, tokens and administrative credentials."
        }
      ],
      "url": "https://www.jayme.ca/projects/domain-trust/"
    },
    {
      "id": "wireless-mesh",
      "title": "Making enterprise Wi‑Fi reach the edges",
      "category": "NETWORKING / RF",
      "summary": "A Cisco controller, root and mesh access points, and a practical remote building backhaul.",
      "status": "FIELD NOTES",
      "tags": [
        "Cisco 9800",
        "CAPWAP",
        "802.11",
        "Wireless Mesh",
        "Troubleshooting"
      ],
      "problem": "Extending a network to a detached building means getting the radio link, client VLANs, controller joins, and wired Ethernet bridging to cooperate.",
      "approach": [
        "Configured a Cisco 9800-CL controller and investigated root/mesh access points for a detached shed backhaul.",
        "Troubleshoot CAPWAP join, mesh authentication, policy tags, and bridge-group configuration independently.",
        "Keep the architecture understandable enough to recover when an AP falls out of the controller."
      ],
      "lessons": "Wireless failures often look alike from the client side. Separating control-plane joins, mesh authorization, and data-plane VLAN forwarding produces much faster diagnoses.",
      "technical_heading": "A real control-plane and bridging problem",
      "technical_sections": [
        {
          "heading": "Topology",
          "body": "Cisco 9800-CL controller, root access point in the house and mesh access point at a detached shed. Testing focused on a 2.4 GHz backhaul and the interactions among Ethernet bridging, WLAN policy and VLAN segmentation."
        },
        {
          "heading": "Failure signatures",
          "body": "Captured symptoms included mesh-parent AUTH FAILURE blocklisting, GW UNREACHABLE, CAPWAP state errors, and cases where an AP joined in local mode but failed in Flex+Bridge mode. These are observations from troubleshooting, not proof of a single root cause."
        },
        {
          "heading": "The data plane matters",
          "body": "RAP/MAP bridging configuration, transparent bridging, native/trunk VLAN behavior and the MAP Ethernet ports have to match the intended topology. A healthy radio association does not prove VLAN forwarding works."
        },
        {
          "heading": "Reproducibility",
          "body": "Document firmware versions, AP roles, policy/site tags, backhaul security, wired-uplink settings, join history and controlled packet captures before changing multiple settings at once."
        }
      ],
      "url": "https://www.jayme.ca/projects/wireless-mesh/"
    },
    {
      "id": "jura-coffee",
      "title": "Jura X9: making a commercial coffee machine work for us",
      "category": "EMBEDDED / REVERSE ENGINEERING",
      "summary": "Daily convenience, steam-wand safety, cabinet-aware power control, programmable buttons, and custom espresso routines—built on a reverse-engineered serial interface.",
      "status": "CASE STUDY",
      "tags": [
        "ESPHome",
        "ESP8266",
        "Reverse Engineering",
        "EEPROM",
        "Home Assistant"
      ],
      "problem": "The Jura X9 made excellent coffee but assumed someone would manage its startup, rinse cycles, button sequences and cleaning reminders. A blocked steam wand had already caused two repairs. I wanted to fit the machine into daily routines without giving up its original controls.",
      "approach": [
        "Automate morning power-up so the machine is warm and ready when coffee is wanted.",
        "Monitor steam-wand use and notify when cleaning is needed. Milk residue can clog the wand; that failure had already required repairing the machine twice.",
        "Use cabinet-door state as an intuitive control: opening the doors powers the machine on; closing them triggers a soft shutdown with rinse, rather than simply cutting power.",
        "Sequence back-to-back espresso shots for recipes such as tiramisu.",
        "Make decaf coffee and double decaf espresso for homemade lattes available through one button or voice command instead of multiple manual button presses.",
        "Reprogram the front-panel product keys by decoding and editing the machine’s stored recipe assignments.",
        "Integrate the serial interface with ESPHome and Home Assistant, while retaining visibility into machine state, recipes, and diagnostic memory."
      ],
      "lessons": "The useful result is not voice control for its own sake: the machine fits actual household routines, can be rinsed before shutdown, and makes a previously failure-prone cleaning step visible. Achieving that required understanding both the serial protocol and the appliance’s persistent recipe configuration.",
      "technical_heading": "Why I automated the Jura—and what it took",
      "technical_sections": [
        {
          "heading": "Why automate a coffee machine?",
          "body": "The motivation was practical, not novelty. I wanted the X9 heated and ready in the morning; cabinet doors to act as a natural on/off interaction, including a proper rinse before shutdown; reliably visible steam-wand cleaning reminders after two repairs caused by blockages; and fewer manual steps for decaf coffee, double decaf espresso and back-to-back shots for tiramisu. Reassigning the front-panel keys was equally important: the original layout did not match the drinks we make."
        },
        {
          "heading": "What earlier work provided—and what I added",
          "body": "Existing Jura serial reverse-engineering provided the basis for speaking to the machine. My work built an ESPHome component and Home Assistant entities, a live ESP8266 web console, memory/recipe decoding, persistent-setting experiments, and feedback-driven sequencing. These additions should not be confused with discovery of the entire original serial protocol."
        },
        {
          "heading": "EEPROM recipe layout",
          "body": "Ten recipe/action records occupy EEPROM word addresses 0xD4 through 0xFB, four 16-bit words per record. The physical FA slots are FA:01 through FA:08, FA:00 and FA:09. The first word's high byte identifies the function; its low byte packs grinder balance and temperature. Subsequent fields include powder, milk duration, water quantity and froth duration. Unidentified bits remain explicitly unknown."
        },
        {
          "heading": "Concrete encoding",
          "body": "In the observed recipe format, word 0 low bits 1:0 select temperature (0 low, 1 medium, 2 high); bits 7:4 select a grinder-balance index. Word 2 low byte encodes water as raw value × 5 mL. RAM 0xD6/0xD7 track front-panel light states; EEPROM 0x57 includes scheduled-power-on weekdays. The dashboard distinguishes native RAM byte addresses from EEPROM word addresses."
        },
        {
          "heading": "Function-code mapping",
          "body": "Controlled remapping linked codes such as 0x02 to Double Espresso, 0x09 to Ristretto, 0x0C to Macchiato, 0x0F to Hot Water, 0x11 to Rinse, and 0x15 to a milk-froth hold action. Some codes are locked or unlit on this machine; the site does not offer remote execution."
        },
        {
          "heading": "Deterministic startup and closed-loop brewing",
          "body": "A sent FA command is not a completed drink. The integration observes readiness and machine feedback so repeated espresso sequences and shutdown routines can be coordinated with the physical appliance. The research also documents state transitions and the limits of what memory captures can establish."
        },
        {
          "heading": "Live versus archived",
          "body": "The actual ESP8266 console can read EEPROM/RAM, queue UART commands and display logs on the private network. The public website contains a local, offline decoder and archived screenshots, never a connection to the appliance or its control endpoints."
        }
      ],
      "url": "https://www.jayme.ca/projects/jura-coffee/"
    },
    {
      "id": "urban-cultivator",
      "title": "Urban Cultivator: repairing a locked-down grow cabinet",
      "category": "EMBEDDED / RIGHT TO REPAIR",
      "summary": "Recovering access to an ARM9 Linux controller, repairing hardware, and decoding the serial link to its PIC control board.",
      "status": "FIELD REPORT",
      "tags": [
        "Embedded Linux",
        "ARM9",
        "Qt",
        "Serial Protocol",
        "Right to Repair"
      ],
      "problem": "A surplus Urban Cultivator arrived with a damaged display, inaccessible settings, leaking basin, and unreliable water-level readings. The manufacturer offered an expensive electronics replacement rather than repair information.",
      "approach": [
        "Identified the EmbedSky TQ2440 ARM9 Linux HMI and Qt application; recovered a service-menu entry path from locally installed software without publishing the passcode.",
        "Rebuilt kernel modules for Linux 2.6.30.4, added USB wireless support, and used a Debian armel userspace overlay for instrumentation.",
        "Traced the serial link between the display and PIC-based controller, extracting timestamp, pH, temperature, humidity, and level fields from captured frames.",
        "Identified a replacement KD43G18-40NB-A1 LCD and investigated pneumatic water-level measurement and basin repair."
      ],
      "lessons": "A product that appears proprietary may contain recognizable standard components. Preserving the original controller can be more rewarding—and more sustainable—than replacing everything.",
      "technical_heading": "Right-to-repair research before AI assistants",
      "technical_sections": [
        {
          "heading": "Original investigation",
          "body": "This is earlier hands-on research, predating modern AI assistants, into the control electronics and software of an Urban Cultivator growing appliance. It should be credited as independent work, not retrospectively described as AI-generated."
        },
        {
          "heading": "Controller and software",
          "body": "The controller was identified as an EmbedSky TQ2440 ARM9 platform running Linux 2.6.30.4, with a Qt application at /opt/qt-4.5/bin/cc130908. Analysis involved service access, kernel/module behavior and a recoverable user interface."
        },
        {
          "heading": "Serial investigation",
          "body": "Captures from /dev/tq2440_serial2 supported experiments on controller-to-peripheral communication. Where framing and byte meanings remain unproven, they should be labeled as hypotheses rather than assigned convenient names."
        },
        {
          "heading": "Preservation",
          "body": "The investigation records the observed hardware, operating-system details and serial captures so other repairers can reproduce the findings without inventing undocumented protocol meanings."
        }
      ],
      "url": "https://www.jayme.ca/projects/urban-cultivator/"
    },
    {
      "id": "autel-reverse-engineering",
      "title": "My 0xFF’d Autel Charger",
      "category": "EV CHARGING / REVERSE ENGINEERING",
      "summary": "A 40 A MaxiCharger, OCPP and Modbus experiments, and a strangely precise 0xFF control-pilot ceiling.",
      "status": "ORIGINAL INVESTIGATION",
      "tags": [
        "EVSE",
        "SAE J1772",
        "OCPP 1.6J",
        "Modbus",
        "Firmware",
        "Reverse Engineering"
      ],
      "problem": "A known-fault 40 A Autel MaxiCharger Home AC (W10-N14) would charge a Volkswagen e-Golf at only ~14–15 A. I wanted to isolate the limiting layer while preserving local energy-management control alongside OCPP.",
      "approach": [
        "Used local Modbus TCP at port 502 to find and change charger and connector current limits, establishing that lower-current commands affected charging.",
        "Connected the EVSE to Home Assistant through a local OCPP 1.6J central system and added GetCompositeSchedule as an upstream contribution (PR #2153) to distinguish requested from effective limits.",
        "Captured diagnostic uploads via OCPP GetDiagnostics, including a Python multipart HTTP receiver and a firmware-specific malformed-URL workaround.",
        "Correlated diagnostic pwm=166 with a 10 A profile and pwm=255 with unrestricted ~14.6 A draw: the latter suggests a 25.5% J1772 duty cycle and ~15.3 A advertised current.",
        "Investigated separate ECC and ECP firmware, Android APKs, encrypted Xlog, logcat, local EMS and cloud endpoints, without treating a plausible firmware mismatch as a proven root cause."
      ],
      "lessons": "A precisely repeated boundary can reveal far more than a vague symptom. Here the data supports an exact 0xFF saturation signature in or before the pilot-generation path; it does not identify the responsible controller or prove an 8-bit field.",
      "technical_heading": "The evidence behind the 0xFF ceiling",
      "technical_sections": [
        {
          "heading": "Controlled test",
          "body": "A known-faulty 40 A Autel MaxiCharger W10-N14 was charging at approximately 14–15 A. A 2020 Canadian e-Golf charged above 20 A on a different EVSE, narrowing the fault domain."
        },
        {
          "heading": "Modbus and OCPP",
          "body": "The charger exposed Modbus TCP on port 502 and a newer register map with charger and connector power/current limits. A local OCPP 1.6J server allowed Smart Charging tests; a GetCompositeSchedule service was contributed to the Home Assistant OCPP integration (upstream PR #2153)."
        },
        {
          "heading": "Measured pilot behavior",
          "body": "With a 10 A OCPP request, diagnostic pwm=166 implied 16.6% duty and 9.96 A advertised; observed vehicle draw was about 9.35 A. Without that profile, pwm=255 implied 25.5% duty and 15.3 A advertised; observed draw was about 14.63 A."
        },
        {
          "heading": "What is and is not established",
          "body": "The exact 255 boundary is consistent with saturation or clamping somewhere in the pilot command path. It does not establish a uint8_t overflow, prove a firmware mismatch, or identify which of the Charge Control and Power Control modules imposes the limit."
        },
        {
          "heading": "Firmware and logs",
          "body": "The observed modules were ECC 1.38.00 and ECP 1.22.00. Diagnostic collection used OCPP GetDiagnostics and an HTTP multipart receiver; app investigation used APK inspection, logcat and encrypted Mars Xlog analysis. The original full article preserves commands, captures and caveats."
        },
        {
          "heading": "Next investigation",
          "body": "Verify the firmware pairing, identify the ECC-to-ECP boundary and inspect the Power Control firmware and inter-controller communications. Do not treat a proposed repair as an already confirmed fix."
        }
      ],
      "url": "https://www.jayme.ca/projects/autel-reverse-engineering/"
    },
    {
      "id": "smart-light",
      "title": "A ceiling light that speaks more than one protocol",
      "category": "EMBEDDED / HOME AUTOMATION",
      "summary": "Replacing the factory firmware and blending IR control, ESPHome, local effects, and WLED DDP.",
      "status": "IMPLEMENTATION NOTES",
      "tags": [
        "ESPHome",
        "BK7231N",
        "WLED DDP",
        "IR",
        "C++"
      ],
      "problem": "A feature-rich ceiling light should still operate when the cloud, Home Assistant, or Wi‑Fi is unavailable.",
      "approach": [
        "Replaced the original BK7231N firmware with ESPHome for local control.",
        "Integrated infrared remote commands with persistent local settings, including behavior independent of Home Assistant.",
        "Integrated WLED DDP input and investigated its interaction with power state, color temperature and white channels."
      ],
      "lessons": "Reliability lives at the boundaries: OTA recovery, wireless reconnection, control priority, and persistent settings matter as much as the effect engine.",
      "technical_heading": "A custom light without a cloud dependency",
      "technical_sections": [
        {
          "heading": "Hardware and firmware",
          "body": "An Artika Skyshade fixture built around a BK7231N Tuya module was moved from OpenBeken to ESPHome. The integration retained IR remote operation while exposing local Home Assistant control."
        },
        {
          "heading": "Behavioral requirements",
          "body": "A physical remote must continue working if Home Assistant is offline. Remote buttons have independent configurable actions; power-on restores the light to OFF. Changes should avoid excessive flash writes."
        },
        {
          "heading": "Lighting protocol integration",
          "body": "WLED DDP reception is supported, including behavior when the fixture is nominally off. The goal is for remote OFF and device-group OFF to suppress DDP as appropriate, rather than letting an incoming pixel stream unexpectedly re-light the room."
        },
        {
          "heading": "Engineering constraints",
          "body": "Firmware footprint, OTA partitions, ESP8266 RAM headroom, and color/white-channel handling all affect whether the feature set is maintainable."
        }
      ],
      "url": "https://www.jayme.ca/projects/smart-light/"
    },
    {
      "id": "energy-model",
      "title": "Treating home energy as an engineering system",
      "category": "ENERGY / MEASUREMENT",
      "summary": "Solar production, battery dispatch, Ontario time-of-use rates, and an honest payback model.",
      "status": "MODELING",
      "tags": [
        "Solar",
        "Home Assistant",
        "Energy Storage",
        "Python",
        "Data Modeling"
      ],
      "problem": "An electricity bill does not tell the full story of what a solar and storage system is doing or what each dispatch decision is worth.",
      "approach": [
        "Collected inverter and Home Assistant measurements for generation, consumption, grid import and export.",
        "Model time-of-use energy pricing, delivery charges, and net-metering credits separately.",
        "Use the model to assess savings, battery shift value, and long-run payback."
      ],
      "lessons": "Separating the physical energy flows from the billing rules is essential; otherwise a dashboard can be visually convincing and financially wrong.",
      "technical_heading": "A utility bill as a reproducible model",
      "technical_sections": [
        {
          "heading": "System and data",
          "body": "A Solis S6 12 kW AC inverter and approximately 20 kW DC solar array are monitored through Home Assistant. The model incorporates grid imports, exports, backup loads, generation and an anticipated 16.1 kWh battery scenario."
        },
        {
          "heading": "Rate-plan comparison",
          "body": "TOU, Ultra-Low Overnight (ULO), and tiered billing are modeled simultaneously against the same energy measurements. Imports, delivery charges, loss factors, export credits and the treatment of carried balances are accounted for separately."
        },
        {
          "heading": "Credit expiry and settlement",
          "body": "A positive export balance is not equivalent to cash. The dashboard models credit carry-forward, a rolling expiry horizon and the difference between nominal energy savings and recoverable utility value."
        },
        {
          "heading": "Financial instrumentation",
          "body": "A $40,000 installation baseline, cumulative modeled savings, savings per day, remaining capital to recover and estimated payback date are displayed. Screenshot values are historical examples, not current readings or investment guarantees."
        },
        {
          "heading": "Battery arbitrage",
          "body": "Scenario calculations consider 16.1 kWh usable nominal storage, power limits, charging/discharging efficiencies and the difference between rate periods. An optimized dispatch must also preserve backup reserve and respect equipment limits."
        }
      ],
      "url": "https://www.jayme.ca/projects/energy-model/"
    },
    {
      "id": "testing-protocols",
      "title": "Testing systems that talk in many dialects",
      "category": "SOFTWARE / SYSTEMS",
      "summary": "An evolving test harness for policy APIs, RADIUS, JSON-RPC, and operational state.",
      "status": "ONGOING WORK",
      "tags": [
        "Python",
        "RADIUS",
        "JSON-RPC",
        "CI",
        "API Testing"
      ],
      "problem": "Complex distributed systems can pass isolated tests while failing at protocol and state boundaries.",
      "approach": [
        "Developed repeatable integration tests around API responses, RADIUS exchanges and policy-engine state.",
        "Normalized complex responses to make expected and observed values easier to compare.",
        "Used environment discovery and state snapshots to reduce hard-coded assumptions in diagnostics."
      ],
      "lessons": "A useful test harness is also a diagnostic tool. Readability of failure output matters nearly as much as assertion coverage.",
      "technical_heading": "Protocol tools built from field failures",
      "technical_sections": [
        {
          "heading": "Why protocol fidelity matters",
          "body": "Automotive and embedded interfaces often look standard until timing, initialization or a vendor-specific extension changes the behavior. Logs and reproducible captures are the starting point."
        },
        {
          "heading": "WiCAN and ELM327",
          "body": "Work on a non-Pro WiCAN device explored ELM327 compatibility, service interval resets and the option of a modernized ELM327 protocol mode rather than accumulating brittle special cases in the legacy mode."
        },
        {
          "heading": "Label printing over BLE",
          "body": "A proposed ESP32/ESPHome bridge for a Brother PT-P710BT would receive rasterized label bitmaps from a Home Assistant service, with text, font size and inverse rendering parameters. This is a design project; it is not presented as a completed production integration."
        },
        {
          "heading": "Reproducible artifacts",
          "body": "Capture the byte stream, distinguish observed from inferred fields, and publish parsers/tests without exposing secrets or vehicle-specific identifiers."
        }
      ],
      "url": "https://www.jayme.ca/projects/testing-protocols/"
    }
  ]
}