Trimble Outdoors Part Number 45005-00-ENG TV Antenna User Manual


 
A-136 Acutime 2000 Synchronization Kit User Guide
Trimble Standard Interface Protocol
A
To issue command packet 0x41 to request software version from the
ACE UTC GPS use the following routine.
/* Request software version */
void cmd_0x1F(void)
{
TSIPPKT cmd;
cmd.cnt = 0;
cmd.code = 0x1F;
send_cmd(&cmd);
}
Handling incoming TSIP packet 0x45
Report routines handle incoming receiver packets. They call the
routine end_of_rptpkt() which accumulates from the serial buffer,
unstuffs these bytes, and checks whether the end-of-packet sequence
<DLE><EXT> has been received.
#define FALSE 0
#define TRUE !FALSE
#define INCOMPLETE 0
#define HAVE_DLE 1
#define COMPLETE 2
#define MAXEND_RPTBUF 256
/* Read bytes until serial buffer is empty or a complete report has
* been received; end of report is signified by DLE ETX.
*/
short end_of_rptpkt(TSIPPKT *rpt)
{
short this_byte;
for (;;) {
this_byte = getb();
if (this_byte == -1) {
return(FALSE);
}
if (rpt->status == HAVE_DLE) {
switch (this_byte) {
case DLE: /* DLE-stuffed, so it’s a data byte */
break;