Ask php under the CRC-16 code, urgent !!! Sending data to the device requires a crc 16-bit verification code. google hasn't found the crc16 code written in Php for half a day. Php comes with the crc32 () function, which can only generate 32-bit verification code, but I need a 16-bit verification code because the device only knows the 16-bit verification code. Environment is UBUNTU + APACHE2 + PHP5 + MYSQL5 + ADODB. if there are other languages to write the CRC16 algorithm, than the php under the CRC-16 code, urgent !!!
Sending data to the device requires a crc 16-bit verification code. google hasn't found the crc16 code written in Php for half a day.
Php comes with the crc32 () function, which can only generate 32-bit verification code, but I need a 16-bit verification code because the device only knows the 16-bit verification code.
The environment is UBUNTU + APACHE2 + PHP5 + MYSQL5 + ADODB.
If there are CRC 16 algorithms written in other languages, such as VB, how can I use php to generate a 16-bit verification code and return it to php?
------ Solution --------------------
Is that what you want?
Http://www.lammertbies.nl/forum/viewtopic.php? T = 1005
If it is written in other languages, you can convert it into executable files, and then use the system function in php to call this program to obtain the return value.