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 + 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.
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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.