Engineering Specification Communication Protocol

PDF Publication Title:

Engineering Specification Communication Protocol ( engineering-specification-communication-protocol )

Previous Page View | Next Page View | Return to Search List

Text from PDF Page: 011

Capstone Turbine Corporation 6025 Yolanda Avenue Tarzana, CA 91356 sending the message. Each transmission packet sent is considered a query. Syntax for issuing commands via the RS232 query protocol is provided below. Capstone where, -> -> ASCII character 01h -> number of bytes transmitted -> 16-bit CRC calculation of all data. Transmit low order byte first. -> ASCII character 04h 1.3.2.1 CRC-16Calculation Calculating a CRC16 is performed using the following method: 1) Initialize the 16-bit CRC value to 0xFFFF 2) Exclusive-OR (XOR) the byte with the 16-bit CRC 3) When low bit of 16-bit CRC is 1 shift the entire word right 1-bit, Exclusive-OR (XOR) with 0xA001, and proceed to step 5 4) Repeat step 3 for all 8 bits of each byte 5) When low bit of 16-bit CRC is 0 shift the entire word right 1-bit 6) Repeat from step 2 for each byte in sequence The 16-bit CRC is appended to the message low-byte first followed by high-byte. (NOTE: performing a CRC16 calculation on a stream of bytes with its CRC16 value appended will always result with the value 0x0000). Sample C Code: The following is sample C-code for the CRC error checking. static UWORD crc_add (UCHAR *data, UWORD length, UWORD crc_reg) { int i; while (length--) { crc_reg ^= *data++; for (i = 0; i < 8; ++i) if (crc_reg & 1) } crc_reg = (crc_reg >> 1) ^ 0xa001; else crc_reg >>= 1; return crc_reg; } Table 3 - Sample C-code for CRC error checking. 1-4

PDF Image | Engineering Specification Communication Protocol

PDF Search Title:

Engineering Specification Communication Protocol

Original File Name Searched:

ES0325_DPC_User_Maint_Comm_Maint.pdf

DIY PDF Search: Google It | Yahoo | Bing

Capstone Turbine and Microturbine: Capstone microturbines used and new surplus for sale listing More Info

Consulting and Strategy Services: Need help with Capstone Turbine, sizing systems, applications, or renewable energy strategy, we are here to assist More Info

Container Lumber Dry Kiln: Since 1991 developing and innovating dry kilns using standard shipping containers More Info

Supercritical CO2 Lumber Dry Kiln: Compact fast drying in 3 days or less for small amounts of wood and lumber drying More Info

BitCoin Mining: Bitcoin Mining and Cryptocurrency... More Info

Publications: Capstone Turbine publications for microturbine and distributed energy More Info

FileMaker Software for Renewable Energy Developing database software for the renewable energy industry More Info

CO2 Gas to Liquids On-Demand Production Cart Developing a supercritical CO2 to alcohol on-demand production system (via Nafion reverse fuel cell) More Info

Stranded Gas for low cost power Bitcoin Mining Using stranded gas for generators may provide breakthrough low power costs for cryptocurrency miners. More Info

CONTACT TEL: 608-238-6001 Email: greg@globalmicroturbine.com (Standard Web Page)