http://ekg.chmurka.net/docs/protocol.html#ch1.1