Block Recovery Protocol (pdf) - Güralp Systems Ltd
Block Recovery Protocol (pdf) - Güralp Systems Ltd
Block Recovery Protocol (pdf) - Güralp Systems Ltd
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Specification<br />
15<br />
14<br />
13 12 11 10<br />
ACK byte: 0x01<br />
9<br />
8<br />
7<br />
6<br />
5 4 3 2<br />
Stream ID LSB<br />
1<br />
0<br />
Ctrl<br />
Sequence ID<br />
Stream ID MSB, little-endian<br />
Table 2.3: ACK packet layout.<br />
Control code Description Digitisers<br />
0x00 Acknowledge, ignore sequence number All<br />
0x13 (^S) Break in to command mode All<br />
0x54 (‘T’) Initiate software trigger CD24<br />
Table 2.4: Control codes that may be used in BRP ACK packets.<br />
by least significant 7 bits of the sequence number. For example, if the transmitter’s<br />
last block was sequence number 0x67, the receiver would ACK it with 0xE7 in<br />
byte 2 of its ACK packet. If the ACK of the previous packet (0xE6) was delayed,<br />
the transmitter would not match the sequence number and would discard the<br />
delayed ACK packet.<br />
2.4 ACK commands<br />
In addition to simply acknowledging correctly received blocks, the ACK packet<br />
can be used to send some special commands. These are detailed in table 2.4. A<br />
special code of 0 will cause the digitiser to accept the ACK packet as long as<br />
the stream ID matches (i.e. the block sequence number is ignored 3 ). To request<br />
terminal passthrough mode on the digitiser, a control code of 0x13 (byte 2 as<br />
0x13) is sent. The CD24 digitiser firmware also recognises a control code of 0x54<br />
to initiate a software trigger.<br />
2.5 NAK packets<br />
Finally, the format of a NAK packet is shown below. The NAK packet contains<br />
a field which tells the transmitter which block sequence number to rewind to.<br />
3 This method of acknowledgement was widely used until later versions of the CD24 and<br />
DM24 firmware. However, the new method of sending the sequence byte with the top bit set is<br />
backwards compatible with the old firmware so it should be used by any new receiver software.<br />
September 27, 2008 7