# crc16

##### 如何在python3中计算ANSI CRC16多项式（0x8005）？(how to calculate ANSI CRC16 polynomial (0x8005) in python3?)

2021-09-13 21:07:54    分类:技术分享    python   python-3.x   crc   crc16

##### how to calculate ANSI CRC16 polynomial (0x8005) in python3?

I tried to calculate ANSI CRC16 polynomial (0x8005) using this code import crcmod crc16 = crcmod.mkCrcFun(0x8005, 0xffff, True) but I got this error message ValueError: The degree of the polynomial must be 8, 16, 24, 32 or 64

2021-09-05 10:57:23    分类:问答    python   python-3.x   crc   crc16

##### Javascript CRC16 sample code or implementation

can anybody share a link or sample code to implement checksum for string in javascript? Thanks a lot in advance

2021-09-02 04:00:22    分类:问答    checksum   crc16

##### CRC 16 -DECT with poly x^16 + x^10 + x^8 + x^7 + x^3 + 1

believe me I have tried to code this, tried Google, and haven't had any luck. I'm trying to implement a CRC16 using this poly x^16 + x^10 + x^8 + x^7 + x^3 + 1 using the C language. Since I understand PHP better I'm trying to get a function going, but I'm not getting the right answer of 28713. This code is generating a CRC of 32713. function crc16(\$string,\$crc=0) { for ( \$x=0; \$x<strlen( \$string ); \$x++ ) { \$crc = \$crc ^ ord( \$string[\$x] ); echo \$crc.'<br />'; for (\$y = 0; \$y < 8 ; \$y++) { if ( (\$crc & 0x0001) == 0x0001 ) \$crc = ( (\$crc >> 1 ) ^ 0x10589 ); else \$crc = \$crc >> 1; } } return

2021-09-01 07:56:11    分类:问答    php   c   crc16

##### Java中多项式x^16 + x^12 + x^5 + 1计算CCITT标准CRC(Calculation of CCITT standard CRC with polynomial x^16 + x^12 + x^5 + 1 in Java)

2021-09-01 02:13:46    分类:技术分享    java   calculator   polynomial-math   crc16

##### CCITT CRC 16 位起始值 0xffff(CCITT CRC 16 Bit Start Value 0xffff)

2021-08-14 05:48:46    分类:技术分享    c++   checksum   crc   crc16

##### CRC-CCITT 到 CRC16 Modbus 实现(CRC-CCITT to CRC16 Modbus implementation)

2021-08-12 04:33:46    分类:技术分享    php   Modbus   crc16

##### CRC-CCITT to CRC16 Modbus implementation

I am having a lot of trouble on generating a modbus CRC16 code using PHP. I have found a lot of different codes over the internet but i have tried them and for some reason i didnt get right results. I have found a PHP code for generating CRC16-CCITT. I have chenge the look up table to the modbus CRC corresponding table but the result is still not the right one. The code is bellow. What do i need to do more in order to transform a CRC16-CCITT code into CRC16-MODBUS code. <?php /************************************************************************* * phpCrc16 v1.1 -- CRC16/CCITT

2021-07-31 16:12:07    分类:问答    php   Modbus   crc16

##### C#中的CRC-ITU计算(CRC-ITU calculation in c#)

2021-07-09 13:13:32    分类:技术分享    c#   gps   crc16

##### 16bit CRC-ITU calculation for Concox tracker

I am creating C# code for a server program that receives data from a Concox TR06 GPS tracker via TCP: http://www.iconcox.com/uploads/soft/140920/1-140920023130.pdf When first starting up, the tracker sends a login message, which needs to be acknowledged before it will send any position data. My first problem is that, according to the documentation, the acknowledge message is 18 bytes long, yet the example they provide is only 10 bytes long: P.s. in the table above, the "bits" column I'm pretty sure should be labelled "bytes" instead... Now, my main problem is in calculating the Error Check

2021-07-02 21:34:35    分类:问答    c#   gps   crc   crc16