Communication Protocols
Table 8-1 Example of Routine to Calculate CRC
unsigned short calccrc(char *message)
{
unsigned short crc = 0;
for ( ; *message != (char)0; +)
crc = updcrc(*message & 0xff, crc);
return (crc);
}
Table 8-2 Example of Routine to Calculate CRC-CCITT without Lookup Table
#define BITS_PER_CHAR 8
unsigned short updcrc (unsigned short ch, unsigned short crc)
{
register short counter = BITS_PER_CHAR;
register short temp = crc;
while (--counter >= 0)
if (temp & 0x8000) {
temp <<= 1;
temp += (((ch <<= 1) & 0x0100) != 0);
temp ^= 0x1021;
}
else {
temp <<= 1;
temp += (((ch <<= 1) & 0x0100) != 0);
}
return(temp);
}
8-15
Summary of Contents for SmartPass AI1611
Page 4: ......
Page 17: ...A Glossary...
Page 18: ......
Page 22: ...SmartPass Integrated Reader 2450 MHz High Voltage System Guide A 6...
Page 23: ...B System Specifications...
Page 24: ......
Page 26: ...SmartPass Integrated Reader 2450 MHz High Voltage System Guide B 4...
Page 27: ...C Wiring Tables...
Page 28: ......
Page 32: ...SmartPass Integrated Reader 2450 MHz High Voltage System Guide C 6...
Page 33: ...1 Introduction...
Page 34: ......
Page 40: ...SmartPass Integrated Reader 2450 MHz High Voltage System Guide 1 8...
Page 41: ...2 Preparing the Site...
Page 42: ......
Page 52: ...SmartPass Integrated Reader 2450 MHz High Voltage System Guide 2 12...
Page 53: ...3 Quick SmartPass Test...
Page 54: ......
Page 63: ...4 Installing Tags on Vehicles...
Page 64: ......
Page 71: ...5 Installing SmartPass...
Page 72: ......
Page 90: ...6 General Software Information...
Page 91: ......
Page 99: ...SmartPass Integrated Reader 2450 MHz High Voltage System Guide 6 10...
Page 100: ...7 Modes of Operation...
Page 101: ......
Page 106: ...8 Communication Protocols...
Page 107: ......
Page 124: ...9 Commands...
Page 125: ...SmartPass Integrated Reader 2450 MHz High Voltage System Guide 9 2...
Page 174: ...10 Troubleshooting...
Page 175: ......
Page 179: ...SmartPass Integrated Reader 2450 MHz High Voltage System Guide 10 6...