Jump to content

Landis+Gyr Residential Meter

From RECESSIM, A Reverse Engineering Community

Landis+Gyr Meter Examples

Early Generation Dual Board based on M16C processor


Generation 4 based on M16C processor

Generation 4 hardware

These notes come from the M16C firmware and the schematic of the Focus AX board PCB 24-1082 rev AE pictured above.

Main parts: Renesas M16C/62P processor (M30626FHPGP), AT45DB081D DataFlash (see Landis+Gyr EEPROM Storage Map), TI CC1020 900 MHz radio (see Landis+Gyr GridStream Protocol), a Teridian metering chip and an Ember EM250 ZigBee radio.

Test mode
File:LandisGyr PCB 24-1082 RevAE TestMode.jpg
Grounding the processor side of R1 (M16C pin 89) to enter test mode. Photo to be added.

The meter enters test mode when processor pin P10.5 (pin 89 of the M16C) reads low at power-up. The pin sits on a net named "Debug Mode" that resistor R1 (10 kΩ) pulls up to 3.3 V; there is no header pin for it. To enter test mode, hold the processor side of R1 to ground while powering the meter up. A meter that has no LAN / WAN address also starts in test mode on its own.

Test mode runs a reduced boot and starts the debug console (the console reports this input as "Jumper 2").

Debug console

The console uses the processor's UART1, the same serial port as the optical port and the M16C flash programmer. Connect to it on header J6 (the standard Renesas M16C programming header) with a 3.3 V TTL USB-serial adapter (not RS-232 levels), at 9600 baud, 8N1:

J6 pin Signal Connect to
4 RXD1 (M16C pin 30) Adapter TX
10 TXD1 (M16C pin 29) Adapter RX
7 GND Adapter GND
1 VCC 3.3 V Nothing: the meter powers itself
2, 3, 5, 6, 8, 9 Programmer controls (BUSY, SCLK, CE, EPM, RESET, CNVSS) Leave open

Warning: leave pins 2, 3, 5, 6, 8 and 9 alone. Driving CNVSS or EPM can put the processor into its serial-programming boot mode.

Configure Mode

The console's Configure Mode sets the meter's identity and network settings, including the network ID (labelled "CRC Adder" on the console; the frame CRC seed is derived from it, see Checksum). Each change is saved to the DataFlash immediately and survives leaving test mode. The meter also keeps a separate factory copy of these settings, which is rewritten only in test mode; outside test mode, "reset to defaults" brings back that older factory copy.

Optical port

The optical port is an ANSI C12.18 interface served from the same UART1 as the console. The schematic does not show how the infrared parts connect to UART1, so that wiring is not yet confirmed.


Generation 5 smart meter based on ARM Cortex-M processor (FCCID R7PEG1R1S6)


Firmware and Data Storage

The meter generations above split by processor, which also determines how the meter stores its configuration and keys:

  • Early / Generation 4 — Renesas M16C. Configuration and the RF network key can be read directly from an EEPROM/DataFlash dump.
  • Generation 5 — Microchip ATSAM4C32 (ARM Cortex-M). The DataFlash is encrypted at rest and must be decrypted before the same records can be read.

For the on-device layout, the key record, and the v4-vs-v5 decrypt process (no key values), see Landis+Gyr EEPROM Storage Map. For the over-the-air packet format, see Landis+Gyr GridStream Protocol.