EEPROM Configurationπ
The EEPROM allows for persistent configuration of the motor controller.
Fieldsπ
All values (including f32 and u32 values) are little-endian. Divide values by their scaling in order to retrieve the true value.
Field ID |
Field Name |
Field Description |
Datatype |
Scaling |
Bounds |
Units |
|---|---|---|---|---|---|---|
0 |
NumberOfBoots |
Number of boots of the device total. (pending implementation) |
f32 |
1 |
||
1 |
ResolverOffsetDegrees |
Offset from measured resolver angle to electrical angle in degrees. |
f32 |
1 |
[-360.0, 360.0] |
\(E\degree\) |
2 |
LoopIqPGain |
P (proportional) gain in the Iq PID loop |
f32 |
1 |
\(\mathrm{A} / \mathrm {V} \) |
|
3 |
LoopIqIGain |
I (integral) gain in the Iq PID loop |
f32 |
1 |
\(\mathrm{A} \cdot \mathrm{s} / \mathrm {V} \) |
|
4 |
LoopIqDGain |
D (derivative) gain in the Iq PID loop |
f32 |
1 |
\(\mathrm{A} / \left(\mathrm {V} \cdot \mathrm{s} \right)\) |
|
5 |
LoopIqTGain |
Gain for integral anti windup in the Iq PID loop |
f32 |
1 |
||
6 |
LoopIdPGain |
P (proportional) gain in the Id PID loop |
f32 |
1 |
\(\mathrm{A} / \mathrm {V} \) |
|
7 |
LoopIdIGain |
I (integral) gain in the Id PID loop |
f32 |
1 |
\(\mathrm{A} \cdot \mathrm{s} / \mathrm {V} \) |
|
8 |
LoopIdDGain |
D (derivative) gain in the Id PID loop |
f32 |
1 |
\(\mathrm{A} / \left(\mathrm {V} \cdot \mathrm{s} \right)\) |
|
9 |
LoopIdTGain |
Gain for integral anti windup in the Id PID loop |
f32 |
1 |
||
10 |
TorqueConst |
Torque constant for the motor. Units Newton-Metres per Ampere. This torque constant is relative to Q-Axis current. The physical interpretation is roughly Nm/A where current is the amplitude of the torque generating phase current. |
f32 |
1 |
\(\mathrm{Nm/A}\) |
|
11-22 |
Current Scaling and Offsets |
The user should not touch these, calibrated at factory. |
f32 |
1 |
||
23 |
LoopVelPGain |
P (proportional) gain in the velocity control loop. |
f32 |
1 |
\(\mathrm{Nm \cdot s / E\degree}\) |
|
24 |
LoopVelIGain |
I (integral) gain in the velocity control loop. |
f32 |
1 |
\(\mathrm{Nm / E\degree}\) |
|
25 |
LoopVelDGain |
D (derivative) gain in the velocity control loop. |
f32 |
1 |
\(\mathrm{Nm \cdot s^2 / E\degree}\) |
|
26 |
LoopVelTGain |
Gain for integral anti windup in the velocity control loop. |
f32 |
1 |
||
27 |
MaxTorqueSlewRate |
Maximum torque slew rate in Newton-Metres per s. |
f32 |
1 |
>= 0.0 |
\(\mathrm{Nm/s}\) |
28 |
OvercurrentThresholdAmps |
Maximum allowable phase current magnitude (in Apk) |
f32 |
1 |
[0.0, 1500.0] |
\(\mathrm{A_{pk}}\) |
29 |
OvertempThresholdCelsius |
Maximum allowable temperature in the inverter |
f32 |
1 |
[0.0, 200.0] |
\( \degree\mathrm{C}\) |
30 |
MotorPolesPerResolverPole |
Number of motor poles per resolver pole. Sign indicates resolver inversion. |
f32 |
1 |
||
31 |
MaxNpCapacitorVoltage |
Maximum allowable voltage across either neutral-point capacitor |
f32 |
1 |
<= 700.0 |
\(\mathrm{V}\) |
32 |
EnableHvilAlarm |
Set to 1 to prevent operation if any HV connectors are unseated. Set to 0 to disable this check. |
u32 |
1 |
[0, 1] |
|
33 |
ExtTempSensorType |
This value controls what is reported in the 0x31C (External RTD interface). Options:
|
u32 |
N/A |
[0, 3] |
|
34 |
DeviceIdentifier |
Lower 7 bytes of the 20-byte device identifier (little endian). The device identifier as printed on the unit is shown in base 36. |
7 bytes |
N/A |
||
35 |
DeviceIdentifier2 |
Middle 7 bytes of the 20-byte device identifier (little endian) |
7 bytes |
N/A |
||
36 |
DeviceIdentifier3 |
Upper 6 bytes of the 20-byte device identifier (little endian) |
6 bytes |
N/A |
||
37 |
HardwareRevision |
Internal revision number for sensing and control circuitry. |
u32 |
N/A |
||
38 |
DisconnectedPhaseVoltageThresholdVolts |
If the applied phase-to-neutral voltage exceeds this threshold⦠|
f32 |
N/A |
\(\mathrm{V}\) |
|
39 |
DisconnectedPhaseCurrentThresholdAmps |
β¦ and if the measured current magnitude is below this threshold, a disconnected phase fault will be triggered |
f32 |
N/A |
\(\mathrm{A}\) |
|
40 |
UndervoltageThresholdVolts |
If the DC bus voltage drops below this value while the motor controller is enabled, an undervoltage fault will be triggered. |
f32 |
N/A |
\(\mathrm{V}\) |
|
41 |
CanTimeoutMs |
If more than this many milliseconds elapses between command packets on the CANBus, the motor controller will fault. |
u32 |
N/A |
\(\mathrm{ms}\) |
|
42 |
DefaultMaxDcDischargeCurrent |
Maximum DC current allowed into the inverter (positive, in Amps). The inverter will automatically limit torque in order to remain within the DC bus current limits. |
f32 |
N/A |
>= 0 |
\(\mathrm{A}\) |
43 |
DefaultMaxDcChargeCurrent |
Maximum DC current allowed out of the inverter (negative, in Amps) |
f32 |
N/A |
<= 0 |
\(\mathrm{A}\) |
44 |
NumberOfMotorPolePairs |
Number of motor pole pairs in the motor. This is strictly used for converting from mechanical RPM in CAN packets to electrical RPM |
u32 |
N/A |
>= 1 |
|
45 |
CurrentFbLpfHz |
Corner frequency (Hz) of the low-pass filter on the current feedback into the current regulator. Important to prevent exciting LC resonance on the DC bus. |
f32 |
1 |
[10.0, 2000.0] |
Hz |
46 |
FirmwareVersion |
First 4 bytes of the firmwareβs git commit SHA. Read-only β the only way to change the firmware version is to bootload an update. |
u32 |
1 |
Read-only |
|
47 |
ReleaseDate |
Firmware release date, big-endian BCD (2025-04-12 reads as 0x20250412). Read-only; served from flash rather than stored in EEPROM. |
u32 |
1 |
Read-only |
|
48 |
LdInductanceHenries |
D-axis inductance of the motor. |
f32 |
1 |
\(\mathrm{H}\) |
|
49 |
LqInductanceHenries |
Q-axis inductance of the motor. |
f32 |
1 |
\(\mathrm{H}\) |
|
50 |
FluxWeakeningEnabled |
Enable the flux-weakening controller. With it disabled, the drive holds \(i_d = 0\) and cannot be commanded past base speed on the bus. |
u32 |
1 |
[0, 1] |
|
51 |
FluxWeakeningDisableTorqueNm |
Torque commanded while winding down out of flux weakening, on a disable or an undervoltage fault. The drive keeps switching in torque control at this value until the flux-weakening controller has released the d axis, then disables or faults. Signed the same way as a torque command. |
f32 |
1 |
\(\mathrm{Nm}\) |
|
52 |
ResolverTwelveBit |
Sets the bit depth of the resolver. (1 = 12-bit, 0 = 10-bit). Setting the resolver to 10-bit resolution increases maximum speed, but also increases torque ripple. |
u32 |
1 |
[0, 1] |
|
53 |
ResolverExcitationFrequencyHz |
Sets the excitation frequency of the resolver. |
u32 |
10000 |
[2000, 20000] |
\(\mathrm{Hz}\) |
54 |
DcRejectEnabled |
Apply the stationary-frame DC current regulator (1 = on, 0 = off). It nulls the DC phase current the dq regulator cannot see above ~80 Hz electrical. It acts on the measured DC, so a current-sensor zero error becomes the same real DC, 1:1, up to 5 V divided by the DC-path resistance, where the correction sits on its limit. Anything other than exactly 1 reads as off. |
u32 |
1 |
[0, 1] |
Reading/Writing to EEPROMπ
There are 2 ways to configure the EEPROM. You can manually send CAN messages using whatever tool you prefer, or you can use Steinmetzβs tool which will autoformat and set that for you. The mechanism of configuration is the same for both manually sending CAN messages or the tool, the benefit of the tool is it will perform checks and formatting for you.
Using Provided Toolπ
Steinmetz provides a command-line tool to configure Avalanche EEPROM as well as manage firmware updates.
At this time, Steinmetz only provides a tool that works on Linux systems.
By default, the tool communicates over the can0 socketcan interface, although this can be changed with the --can flag.
Readingπ
The config tool can be used to read individual config values, or to dump all config values. Individual config values can be read like so:
$ ./steinmetz_tool config read ResolverOffsetDegrees
ResolverOffsetDegrees: 0
The list of all config values can be show with the --help flag:
$ ./steinmetz_tool config read --help
Read the value of a single configuration parameter
Usage: steinmetz_tool config read [OPTIONS] <KEY>
Arguments:
<KEY>
Possible values:
- NumberOfBoots
- ResolverOffsetDegrees: Resolver offset (in degrees)
- LoopIqPGain: kP for the q-axis current controller
- LoopIqIGain: kI for the q-axis current controller
- LoopIqDGain: kD for the q-axis current controller
- LoopIqTGain
- LoopIdPGain: kP for the d-axis current controller
- LoopIdIGain: kI for the d-axis current controller
- LoopIdDGain: kD for the d-axis current controller
- LoopIdTGain
- TorqueConst: Torque constant (in Nm/Amps)
- PhaseACoarseHallOffsetVolts
- PhaseBCoarseHallOffsetVolts
- PhaseCCoarseOffsetVolts
- PhaseACoarseVoltsPerAmp
- PhaseAFineHallOffsetVolts
- PhaseBFineHallOffsetVolts
- PhaseCFineOffsetVolts
- PhaseAFineVoltsPerAmp
- PhaseBCoarseVoltsPerAmp
- PhaseCCoarseVoltsPerAmp
- PhaseBFineVoltsPerAmp
- PhaseCFineVoltsPerAmp
- LoopVelPGain: kP for closed-loop velocity controller
- LoopVelIGain: kI for closed-loop velocity controller
- LoopVelDGain: kD for closed-loop velocity controller
- LoopVelTGain
- MaxTorqueSlewRate: Maximum allowable slew rate for torque controller (in Nm/s)
- OvercurrentThresholdAmps: Maximum allowable phase current magnitude (in Apk)
- OvertempThresholdCelsius: Maximum allowable temperature in the inverter
- MotorPolesPerResolverPole: Number of motor poles per resolver pole. Sign indicates resolver inversion
- MaxNpCapacitorVoltage: Maximum allowable voltage across either neutral-point capacitor
- EnableHvilAlarm: Enable HVIL alarm
- ExtTempSensorType: Type of temperature sensor connected to external temp port
- DeviceIdentifier: The device identifier uniquely identifies a device and ties it back to pre-delivery acceptance testing data
- HardwareRevision
- DisconnectedPhaseVoltageThresholdVolts: If a phase has more than this phase-to-neutral voltage applied, then it should have more current than [`DisconnectedPhaseCurrentThresholdA`] flowing through it. Otherwise, it may be disconnected
- DisconnectedPhaseCurrentThresholdAmps: Threshold for phase current to be considered abnormally low (in A)
- UndervoltageThresholdVolts: Threshold for undervoltage alarm (in Volts)
- CanTimeoutMs: CAN bus communications timeout (in milliseconds)
- DefaultMaxDcDischargeCurrent: Maximum DC current allowed into the inverter (positive, in Amps)
- DefaultMaxDcChargeCurrent: Maximum DC current allowed out of the inverter (negative, in Amps)
- NumberOfMotorPolePairs: Number of motor pole pairs (i.e. half the number of magnetic poles)
- CurrentFbLpfHz: Corner frequency (Hz) of the low-pass filter on the current feedback into the current regulator. Used to help prevent exciting LC resonance on the DC link
- FirmwareVersion: Firmware version: the first 4 bytes of the git commit SHA, big-endian, matching the value the bootloader reports
- ReleaseDate: Firmware release date, big-endian BCD (e.g. 2025-04-12 -> 0x20250412)
- LdInductanceHenries: D-axis inductance (in Henries). Used by the flux-weakening controller, together with `LqInductanceHenries`, to place the MTPA / flux-weakening current angle
- LqInductanceHenries: Q-axis inductance (in Henries). Used by the flux-weakening controller. On an IPMSM this is the larger of the two; equal to `LdInductanceHenries` means a non-salient machine, for which MTPA is the q axis
- FluxWeakeningEnabled: Enable the flux-weakening controller. With it off, the drive holds `i_d = 0` and is limited to base speed on whatever bus it has
- FluxWeakeningDisableTorqueNm: Torque (in Nm) commanded while winding down out of flux weakening, on a disable or an undervoltage fault. The drive keeps switching in torque control at this value until the flux-weakening loop has released the d axis, then disables or faults. Signed the same way as a torque command
- ResolverTwelveBit: AD2S1210 resolver-to-digital converter resolution. 1 = 12-bit, 0 = 10-bit. The 10-bit setting tracks faster (4100 Hz bandwidth vs 1700 Hz) at 4.88 rps per velocity LSB instead of 0.488. Read once at boot: power cycle the unit after changing it
- ResolverExcitationFrequencyHz: Resolver excitation frequency in Hz. The AD2S1210 steps it in 250 Hz increments, so the value is rounded down to a multiple of 250. The datasheet recommends 10-20 kHz at 10 bits and 6-20 kHz at 12 bits. It should not be a multiple of the switching frequency, or the velocity reading picks up switching noise. Read once at boot: power cycle the unit after changing it
- DcRejectEnabled: Apply the stationary-frame DC current regulator. 1 = on (default), 0 = off. It nulls the DC current the dq regulator cannot see at speed (a once-per-revolution resolver error drives 30-170 A of it); it acts on *measured* DC, so a current-sensor zero error becomes the same real DC, 1:1, up to 5 V / R. Off, it costs the control loop one branch
Options:
--can <CAN>
[default: can0]
-h, --help
Print help (see a summary with '-h')
Writingπ
The tool can similarly be used to write values to EEPROM:
$ ./steinmetz_tool config read ResolverOffsetDegrees
ResolverOffsetDegrees: 0
$ ./steinmetz_tool config write ResolverOffsetDegrees 20.0
Successfully Written ResolverOffsetDegrees: 20.0
$ ./steinmetz_tool config read ResolverOffsetDegrees
ResolverOffsetDegrees: 20
Dumpingπ
For efficiently reading the entire configuration (e.g in preparation to provision backup units), one may also dump the entire config:
$ ./steinmetz_tool config dump
NumberOfBoots: 0
ResolverOffsetDegrees: 0
LoopIqPGain: 0.2
LoopIqIGain: 3.5
LoopIqDGain: 0
LoopIqTGain: 0
LoopIdPGain: 0
LoopIdIGain: 0.005
LoopIdDGain: 0
LoopIdTGain: 0
TorqueConst: 1
PhaseACoarseHallOffsetVolts: 0
PhaseBCoarseHallOffsetVolts: 0
PhaseCCoarseOffsetVolts: 0
PhaseACoarseVoltsPerAmp: 0.0010475637
PhaseAFineHallOffsetVolts: 0
PhaseBFineHallOffsetVolts: 0
PhaseCFineOffsetVolts: 0
PhaseAFineVoltsPerAmp: 0.0049652187
PhaseBCoarseVoltsPerAmp: 0.0012792114
PhaseCCoarseVoltsPerAmp: 0.0010765707
PhaseBFineVoltsPerAmp: 0.004703099
PhaseCFineVoltsPerAmp: 0.004901238
LoopVelPGain: 0.005
LoopVelIGain: 1
LoopVelDGain: 0
LoopVelTGain: 0
MaxTorqueSlewRate: 65
OvercurrentThresholdAmps: 300
OvertempThresholdCelsius: 75
MotorPolesPerResolverPole: 1
MaxNpCapacitorVoltage: 450
EnableHvilAlarm: 0
ExtTempSensorType: 0
DeviceIdentifier: ffffffffffffffffffffffffff
HardwareRevision: 2
DisconnectedPhaseVoltageThresholdVolts: 30
DisconnectedPhaseCurrentThresholdAmps: 5
UndervoltageThresholdVolts: 75
CanTimeoutMs: 1000
DefaultMaxDcDischargeCurrent: 1000
DefaultMaxDcChargeCurrent: -1000
NumberOfMotorPolePairs: 1
CurrentFbLpfHz: 350
FirmwareVersion: 12345678
ReleaseDate: 20250412
LdInductanceHenries: 0
LqInductanceHenries: 0
FluxWeakeningEnabled: 0
FluxWeakeningDisableTorqueNm: 0
ResolverTwelveBit: 1
ResolverExcitationFrequencyHz: 10000
DcRejectEnabled: 1
To simplify the provisioning of fresh units, it is possible dump config to a file and restore it later.
$ ./steinmetz_tool config dump --output eeprom_contents.txt
$ ./steinmetz_tool config restore-dump eeprom_contents.txt
Warning: skipping 'NumberOfBoots' (factory-only field)
Restored ResolverOffsetDegrees = 0
Restored LoopIqPGain = 0.2
Restored LoopIqIGain = 3.5
Restored LoopIqDGain = 0
Restored LoopIqTGain = 0
Restored LoopIdPGain = 0
Restored LoopIdIGain = 0.005
Restored LoopIdDGain = 0
Restored LoopIdTGain = 0
Restored TorqueConst = 1
Warning: skipping 'PhaseACoarseHallOffsetVolts' (factory-only field)
Warning: skipping 'PhaseBCoarseHallOffsetVolts' (factory-only field)
Warning: skipping 'PhaseCCoarseOffsetVolts' (factory-only field)
Warning: skipping 'PhaseACoarseVoltsPerAmp' (factory-only field)
Warning: skipping 'PhaseAFineHallOffsetVolts' (factory-only field)
Warning: skipping 'PhaseBFineHallOffsetVolts' (factory-only field)
Warning: skipping 'PhaseCFineOffsetVolts' (factory-only field)
Warning: skipping 'PhaseAFineVoltsPerAmp' (factory-only field)
Warning: skipping 'PhaseBCoarseVoltsPerAmp' (factory-only field)
Warning: skipping 'PhaseCCoarseVoltsPerAmp' (factory-only field)
Warning: skipping 'PhaseBFineVoltsPerAmp' (factory-only field)
Warning: skipping 'PhaseCFineVoltsPerAmp' (factory-only field)
Restored LoopVelPGain = 0.005
Restored LoopVelIGain = 1
Restored LoopVelDGain = 0
Restored LoopVelTGain = 0
Restored MaxTorqueSlewRate = 65
Restored OvercurrentThresholdAmps = 300
Restored OvertempThresholdCelsius = 75
Restored MotorPolesPerResolverPole = 1
Warning: skipping 'MaxNpCapacitorVoltage' (factory-only field)
Restored EnableHvilAlarm = 0
Restored ExtTempSensorType = 0
Warning: skipping 'DeviceIdentifier' (factory-only field)
Warning: skipping 'HardwareRevision' (factory-only field)
Restored DisconnectedPhaseVoltageThresholdVolts = 30
Restored DisconnectedPhaseCurrentThresholdAmps = 5
Restored UndervoltageThresholdVolts = 75
Restored CanTimeoutMs = 1000
Restored DefaultMaxDcDischargeCurrent = 1000
Restored DefaultMaxDcChargeCurrent = -1000
Restored NumberOfMotorPolePairs = 1
Warning: skipping 'CurrentFbLpfHz' (factory-only field)
Warning: skipping 'FirmwareVersion' (factory-only field)
Warning: skipping 'ReleaseDate' (factory-only field)
Restored LdInductanceHenries = 0
Restored LqInductanceHenries = 0
Restored FluxWeakeningEnabled = 0
Restored FluxWeakeningDisableTorqueNm = 0
Warning: skipping 'ResolverTwelveBit' (factory-only field)
Warning: skipping 'ResolverExcitationFrequencyHz' (factory-only field)
Restored DcRejectEnabled = 1
hint: run `./steinmetz_tool config unlock` first to restore factory-only fields, then re-run `restore-dump`
The text format of the dump contains a umber of <key>: <value> pairs, where <key> is one of the possible values emitted by ./steinmetz_tool_x86_64 config read --help.
The file does not need to exhaustively list every key.
Keys that have since been renamed are still accepted under their old names (e.g. ResolverPolesPerMotorPole, now MotorPolesPerResolverPole), so dumps taken with older versions of the tool can be restored as-is.
Example:
NumberOfBoots: 0
ResolverOffsetDegrees: 0
LoopIqPGain: 0.2
LoopIqIGain: 3.5
LoopIqDGain: 0
LoopIqTGain: 0
LoopIdPGain: 0
LoopIdIGain: 0.005
LoopIdDGain: 0
LoopIdTGain: 0
TorqueConst: 1
PhaseACoarseHallOffsetVolts: 0
PhaseBCoarseHallOffsetVolts: 0
PhaseCCoarseOffsetVolts: 0
PhaseACoarseVoltsPerAmp: 0.0010475637
PhaseAFineHallOffsetVolts: 0
PhaseBFineHallOffsetVolts: 0
PhaseCFineOffsetVolts: 0
PhaseAFineVoltsPerAmp: 0.0049652187
PhaseBCoarseVoltsPerAmp: 0.0012792114
PhaseCCoarseVoltsPerAmp: 0.0010765707
PhaseBFineVoltsPerAmp: 0.004703099
PhaseCFineVoltsPerAmp: 0.004901238
LoopVelPGain: 0.005
LoopVelIGain: 1
LoopVelDGain: 0
LoopVelTGain: 0
MaxTorqueSlewRate: 65
OvercurrentThresholdAmps: 300
OvertempThresholdCelsius: 75
MotorPolesPerResolverPole: 1
MaxNpCapacitorVoltage: 450
EnableHvilAlarm: 0
ExtTempSensorType: 0
DeviceIdentifier: ffffffffffffffffffffffffff
HardwareRevision: 2
DisconnectedPhaseVoltageThresholdVolts: 30
DisconnectedPhaseCurrentThresholdAmps: 5
UndervoltageThresholdVolts: 75
CanTimeoutMs: 1000
DefaultMaxDcDischargeCurrent: 1000
DefaultMaxDcChargeCurrent: -1000
NumberOfMotorPolePairs: 1
CurrentFbLpfHz: 350
FirmwareVersion: 12345678
ReleaseDate: 20250412
LdInductanceHenries: 0
LqInductanceHenries: 0
FluxWeakeningEnabled: 0
FluxWeakeningDisableTorqueNm: 0
ResolverTwelveBit: 1
ResolverExcitationFrequencyHz: 10000
DcRejectEnabled: 1
Over CANπ
Writingπ
We will go through the example of writing the ResolverOffsetDegrees to be 10 degrees.
Step 1. Prepare CAN Packetπ
Begin by crafting the Write EEPROM CAN Packet as per the format described in 0x01a (EEPROM Set Parameter). ResolverOffsetDegrees is Field ID: 1. We want to write 10 degrees. If convert 10 to little-endian f32 we get [0x00, 0x00, 0x20, 0x41]. So we want to transmit a Standard CAN packet with ID 0x1a and data field as shown below:
Step 2. Transmit CAN Packetπ
Ensure the motor controller is powered on and in the ReadyToSwitch state, see State Machine. Transmit the CAN packet.
Step 3. Validate ACK Packetπ
When you recieve the ACK packet as described in 0x01c (EEPROM Set Response), you should check it to validate the write was performed correctly. The data we should recieve back per this example is shown below.
Reading.π
We will go through the example of reading back the LoopIqPGain, for our case we will assume LoopIqPGain is 0.5.
Step 1. Prepare CAN Packetπ
Begin by crafting the Read EEPROM CAN Packet as per the format described in 0x01b (EEPROM Get Parameter). LoopIqPGain is field: 2. So we prepare the CAN packet data as shown below.
Step 2. Transmit CAN Packetπ
Ensure the motor controller is powered on and in the ReadyToSwitch state, see State Machine. Transmit the CAN packet.
Step 3. Validate Response Packetπ
When you recieve the response packet as described in 0x01d (EEPROM Get Response), you should check it to validate the write was performed correctly. The data we should recieve back per this example is shown below.