stpihkal
stpihkal copied to clipboard
InnoTek FieldPro protocol and example code
The InnoTek FieldPro uses 27,145MHz FM FSK and forward error correction, and is very picky about there being no jitter in the pulses. Hence the code uses a Si5351 clock chip with two PLLs, each set for '0' or '1' bits, and toggles between them when transmitting.
Best viewed in monospace font..
// contains a whole constructed packet to be sent // preamble //14ms 21 40 59 spacer byte packet[] = { 0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,0,0,1,1,1, 1,1,0,1,0,1,0,1,1,1,1,0,0,1,0,0,0,0,0, 0,1,1,0,0,0,0,0,1,0,0,1,1,1,0,1,1,1,1, 0,1,0,0,1,1,1,0,0,1,1,0,0,0,0, 0,0,0,0,0,0,0,0,1, // 83 (packet 2, same as packet 1) preamble 1 ID error correction balancing 01 ID COMMAND e/c bal 01 COMMAND e/c trailer 0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,0,0,1,1,1, 1,1,0,1,0,1,0,1,1,1,1,0,0,1,0,0,0,0,0, 0,1,1,0,0,0,0,0,1,0,0,1,1,1,0,1,1,1,1, 0,1,0,0,1,1,1,0,0,1,1,0,0,0,0, 0,0,0,0,0,0,0,0 };