Hello aelfwine,
here are some links that can be useful for you:
-
Sources for the nodes FirmataEncode (Devices 2.x) and FirmataDecode (Devices 2.x) written by @jens.a.e.
Also check the innards of of the Arduino (Devices StandardFirmata 2.x).
Hope this helps,
Anton